2023-02-06 00:48:53 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
|
2023-11-05 05:52:22 +00:00
|
|
|
<head>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
<title>Indie Wiki Buddy</title>
|
|
|
|
<style>
|
|
|
|
/* ELEMENTS */
|
|
|
|
html {
|
|
|
|
max-width: 600px;
|
|
|
|
}
|
2023-06-29 07:12:05 +00:00
|
|
|
|
2023-11-05 05:52:22 +00:00
|
|
|
body {
|
|
|
|
width: max-content;
|
|
|
|
max-width: min(100%, 600px);
|
|
|
|
background-color: #005799;
|
|
|
|
margin: 0px;
|
|
|
|
font-family: Helvetica, Sans-Serif;
|
|
|
|
font-size: .9em;
|
|
|
|
}
|
2023-02-06 00:48:53 +00:00
|
|
|
|
2023-11-05 05:52:22 +00:00
|
|
|
a {
|
|
|
|
text-decoration-style: dotted;
|
|
|
|
text-decoration-thickness: 1px;
|
|
|
|
color: #005799;
|
|
|
|
}
|
2023-02-06 00:48:53 +00:00
|
|
|
|
2023-11-05 05:52:22 +00:00
|
|
|
a:visited {
|
|
|
|
color: #005799;
|
|
|
|
}
|
2023-02-06 00:48:53 +00:00
|
|
|
|
2023-11-05 05:52:22 +00:00
|
|
|
h1 {
|
|
|
|
font-size: 1.3rem;
|
|
|
|
margin: 8px 0;
|
|
|
|
}
|
2023-02-06 00:48:53 +00:00
|
|
|
|
2023-11-05 05:52:22 +00:00
|
|
|
hr {
|
|
|
|
height: 1px;
|
|
|
|
border: none;
|
|
|
|
color: #005799;
|
|
|
|
background-color: #005799;
|
|
|
|
margin: 1em 0;
|
|
|
|
}
|
2023-07-01 06:33:11 +00:00
|
|
|
|
2023-11-05 08:58:02 +00:00
|
|
|
fieldset {
|
|
|
|
background-color: #f5fbff;
|
|
|
|
border: 1px solid #ccc;
|
|
|
|
border-radius: 5px;
|
2023-11-05 19:46:45 +00:00
|
|
|
padding: 0 12px 12px 0;
|
2023-11-05 08:58:02 +00:00
|
|
|
margin: 0;
|
|
|
|
margin-bottom: .5em;
|
|
|
|
font-size: .9em;
|
2023-11-05 10:17:44 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2023-11-05 10:24:42 +00:00
|
|
|
gap: .5em;
|
2023-11-05 08:58:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fieldset>div {
|
2023-11-05 10:17:44 +00:00
|
|
|
margin: 0 .5rem;
|
2023-11-05 08:58:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fieldset>span {
|
|
|
|
margin: .8rem 0 .4rem;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
legend {
|
|
|
|
font-weight: 600;
|
2023-11-05 10:24:42 +00:00
|
|
|
margin-bottom: .6em;
|
2023-11-05 08:58:02 +00:00
|
|
|
}
|
|
|
|
|
2023-11-05 19:46:45 +00:00
|
|
|
input,
|
|
|
|
label,
|
|
|
|
select {
|
2023-11-05 09:53:39 +00:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* GENERIC CONTROL CLASSES */
|
2023-11-05 08:58:02 +00:00
|
|
|
.text-sm {
|
|
|
|
font-size: .85em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.center {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2023-11-05 05:52:22 +00:00
|
|
|
/* HEADER */
|
|
|
|
#header {
|
|
|
|
line-height: 1.5em;
|
2023-11-05 09:53:39 +00:00
|
|
|
padding: .3em 1em;
|
2023-11-05 05:52:22 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
background-color: #005799;
|
|
|
|
color: #fff;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2023-02-06 00:48:53 +00:00
|
|
|
|
2023-11-05 05:52:22 +00:00
|
|
|
#header .settingToggle label {
|
|
|
|
background-color: #fff;
|
|
|
|
border-radius: 20px;
|
|
|
|
height: fit-content;
|
|
|
|
width: fit-content;
|
|
|
|
}
|
2023-02-06 00:48:53 +00:00
|
|
|
|
2023-11-05 09:53:39 +00:00
|
|
|
/* NOTIFICATION BANNER */
|
2023-11-05 05:52:22 +00:00
|
|
|
#notificationBannerContainer {
|
|
|
|
background-color: #f8f3d6;
|
|
|
|
font-size: .9em;
|
|
|
|
line-height: 1.3em;
|
|
|
|
}
|
2023-02-06 00:48:53 +00:00
|
|
|
|
2023-11-05 05:52:22 +00:00
|
|
|
#notificationBannerContainer span {
|
2023-11-05 08:58:02 +00:00
|
|
|
padding: .5rem 1rem;
|
2023-11-05 05:52:22 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2023-11-05 17:35:03 +00:00
|
|
|
#notificationBannerContainer span[style]~span[style] {
|
2023-11-05 05:52:22 +00:00
|
|
|
border-top: 1px solid #005799;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* POWER TOGGLE */
|
|
|
|
#power {
|
|
|
|
cursor: pointer;
|
|
|
|
width: fit-content;
|
|
|
|
vertical-align: middle;
|
|
|
|
float: right;
|
|
|
|
padding-top: .2em;
|
|
|
|
}
|
|
|
|
|
|
|
|
#power>label {
|
|
|
|
display: inline-block;
|
|
|
|
cursor: pointer;
|
|
|
|
background-color: #fff;
|
|
|
|
border-radius: 20px;
|
|
|
|
width: 30px;
|
|
|
|
height: 30px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
#power>input {
|
|
|
|
height: 0;
|
|
|
|
width: 0;
|
|
|
|
margin: 0;
|
|
|
|
border: none;
|
|
|
|
appearance: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#power img {
|
|
|
|
position: relative;
|
|
|
|
top: 50%;
|
|
|
|
transform: translateY(-50%);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* CONTENT */
|
|
|
|
#content {
|
2023-11-27 03:00:08 +00:00
|
|
|
padding: .5em 1em;
|
2023-11-05 05:52:22 +00:00
|
|
|
background-color: #e5f4ff;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
#links {
|
2023-11-05 09:53:39 +00:00
|
|
|
background-color: #ceeaff;
|
|
|
|
padding: .5rem 1rem;
|
2023-11-05 05:52:22 +00:00
|
|
|
}
|
|
|
|
|
2023-11-05 09:53:39 +00:00
|
|
|
/* SETTINGS */
|
2023-11-05 05:52:22 +00:00
|
|
|
.options {
|
|
|
|
box-sizing: border-box;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
user-select: none;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2023-11-27 03:00:08 +00:00
|
|
|
.options label {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
2023-11-05 09:53:39 +00:00
|
|
|
.settingToggle {
|
|
|
|
cursor: pointer;
|
|
|
|
width: fit-content;
|
|
|
|
vertical-align: middle;
|
2023-11-05 05:52:22 +00:00
|
|
|
}
|
|
|
|
|
2023-11-05 08:58:02 +00:00
|
|
|
.radioGroup {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
gap: 1em;
|
2023-11-05 09:53:39 +00:00
|
|
|
line-height: 1.5rem;
|
2023-11-05 08:58:02 +00:00
|
|
|
}
|
|
|
|
|
2023-11-05 09:53:39 +00:00
|
|
|
#breezewikiHost {
|
|
|
|
display: none;
|
2023-11-27 03:00:08 +00:00
|
|
|
padding: 0 0 0 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
#breezewikiHost label {
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
|
|
|
|
#breezewikiHost button {
|
|
|
|
background: #3174f1;
|
|
|
|
border: 1px solid #333333;
|
|
|
|
color: #fff;
|
|
|
|
border-radius: 5px;
|
|
|
|
padding: .3em;
|
|
|
|
font-size: .9em;
|
|
|
|
}
|
|
|
|
|
|
|
|
#breezewikiHost button:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
background: #ffffff;
|
|
|
|
border: 1px solid#3174f1;
|
|
|
|
color: #3174f1;
|
|
|
|
}
|
|
|
|
|
|
|
|
#breezewikiHost label+label {
|
|
|
|
margin-top: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#breezewikiCustomHost {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#breezewikiCustomHostStatus {
|
|
|
|
display: block;
|
|
|
|
padding-top: .4em;
|
|
|
|
font-size: .9em;
|
2023-11-05 05:52:22 +00:00
|
|
|
}
|
|
|
|
|
2023-11-05 09:53:39 +00:00
|
|
|
/* SETTINGS BUTTON */
|
|
|
|
#openSettingsContainer {
|
|
|
|
width: 100%;
|
|
|
|
text-align: center;
|
2023-11-05 05:52:22 +00:00
|
|
|
}
|
|
|
|
|
2023-11-05 09:53:39 +00:00
|
|
|
#openSettings {
|
|
|
|
background: #3174f1;
|
|
|
|
border: 1px solid #333333;
|
|
|
|
color: #fff;
|
|
|
|
border-radius: 5px;
|
|
|
|
padding: .4em;
|
2023-11-27 03:00:08 +00:00
|
|
|
margin: .2em 0 0 0;
|
2023-11-05 09:53:39 +00:00
|
|
|
font-size: 1.3em;
|
2023-11-05 05:52:22 +00:00
|
|
|
}
|
|
|
|
|
2023-11-05 09:53:39 +00:00
|
|
|
#openSettings:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
background: #ffffff;
|
|
|
|
border: 1px solid#3174f1;
|
|
|
|
color: #3174f1;
|
2023-11-05 05:52:22 +00:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div id="header">
|
|
|
|
<div id="power">
|
|
|
|
<input id="powerCheckbox" type="checkbox" />
|
|
|
|
<label for="powerCheckbox">
|
|
|
|
<img id="powerImage" src="" alt="" width="20" />
|
|
|
|
</label>
|
2023-04-12 05:01:06 +00:00
|
|
|
</div>
|
2023-11-05 05:52:22 +00:00
|
|
|
<h1>Indie Wiki Buddy</h1>
|
|
|
|
</div>
|
2023-11-05 08:58:02 +00:00
|
|
|
<div id="links">
|
2023-11-05 09:03:57 +00:00
|
|
|
<a href="guide.html" target="_blank">Guide</a>
|
2023-11-05 08:58:02 +00:00
|
|
|
|
|
|
|
<a href="https://getindie.wiki" target="_blank">Website</a>
|
|
|
|
|
|
|
|
<a href="https://getindie.wiki/changelog/" target="_blank">Changelog</a>
|
|
|
|
|
|
|
|
<a href="https://getindie.wiki/#submit" target="_blank">Submit a Wiki</a>
|
|
|
|
|
|
|
|
<a href="https://github.com/KevinPayravi/indie-wiki-buddy" target="_blank">Source Code</a>
|
|
|
|
</div>
|
|
|
|
<div id="notificationBannerContainer">
|
|
|
|
<span id="notificationBannerChromeBug">
|
2023-11-05 09:54:37 +00:00
|
|
|
Chromium users: Due to a <a href="https://bugs.chromium.org/p/chromium/issues/detail?id=1498035"
|
2023-11-05 08:58:02 +00:00
|
|
|
target="_blank">browser bug</a>,
|
|
|
|
this extension may stop working after an update. If this happens, try turning the extension off
|
|
|
|
and on via your browser's extension settings (chrome://extensions/).
|
|
|
|
<a id="chromeBugHideLink" href="#">Hide this message</a>
|
|
|
|
</span>
|
|
|
|
<span id="notificationBannerOpera">
|
|
|
|
Opera users: By default, Opera will block extensions from running on search engines.
|
|
|
|
Search engine access can be enabled per-extension by going to "about:extensions"
|
|
|
|
and selecting the "Allow access to search page results" option under Indie Wiki Buddy.
|
|
|
|
<a id="operaPermsHideLink" href="#">Hide this message</a>
|
|
|
|
</span>
|
|
|
|
</div>
|
2023-11-05 05:52:22 +00:00
|
|
|
<div id="content">
|
2023-11-05 08:58:02 +00:00
|
|
|
<form name="options" class="options">
|
|
|
|
<fieldset id="defaultSettings">
|
2023-11-05 19:46:45 +00:00
|
|
|
<legend><span aria-hidden="true">⚙️</span> Default behaviors (apply to all current and new wikis in future
|
|
|
|
updates)</legend>
|
2023-11-05 09:53:39 +00:00
|
|
|
<div role="radiogroup" aria-labelledby="defaultWikiActionLabel">
|
2023-11-05 10:35:08 +00:00
|
|
|
<span id="defaultWikiActionLabel">When visiting Fandom/Fextralife wikis:</span>
|
2023-11-05 08:58:02 +00:00
|
|
|
<div class="radioGroup">
|
|
|
|
<label>
|
|
|
|
<input id="defaultWikiActionDisabledRadio" type="radio" name="defaultWikiAction" value="disabled" />
|
|
|
|
<img src="images/toggle-disabled.png" height="12" alt="" />
|
|
|
|
Do nothing
|
|
|
|
</label>
|
|
|
|
<label>
|
|
|
|
<input id="defaultWikiActionAlertRadio" type="radio" name="defaultWikiAction" value="alert" />
|
|
|
|
<img src="images/toggle-alert.png" height="12" alt="" />
|
2023-11-06 05:04:32 +00:00
|
|
|
Display banner linking to indie wiki
|
2023-11-05 08:58:02 +00:00
|
|
|
</label>
|
|
|
|
<label>
|
|
|
|
<input id="defaultWikiActionRedirectRadio" type="radio" name="defaultWikiAction" value="redirect" />
|
|
|
|
<img src="images/toggle-redirect.png" height="12" alt="" />
|
|
|
|
Redirect to indie wiki
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-11-05 09:53:39 +00:00
|
|
|
<div role="radiogroup" aria-labelledby="defaultSearchActionLabel">
|
2023-11-27 03:00:08 +00:00
|
|
|
<span id="defaultSearchActionLabel">On search engines, when you see non-indie results with indie alternatives:</span>
|
2023-11-05 08:58:02 +00:00
|
|
|
<div class="radioGroup">
|
|
|
|
<label>
|
|
|
|
<input id="defaultSearchActionDisabledRadio" type="radio" name="defaultSearchAction" value="disabled" />
|
|
|
|
<img src="images/toggle-disabled.png" height="12" alt="" />
|
|
|
|
Do nothing
|
|
|
|
</label>
|
|
|
|
<label>
|
|
|
|
<input id="defaultSearchActionAlertRadio" type="radio" name="defaultSearchAction" value="replace" />
|
|
|
|
<img src="images/toggle-replace.png" height="12" alt="" />
|
|
|
|
Replace non-indie results
|
|
|
|
</label>
|
|
|
|
<label>
|
|
|
|
<input id="defaultSearchActionRedirectRadio" type="radio" name="defaultSearchAction" value="hide" />
|
|
|
|
<img src="images/toggle-hide.png" height="12" alt="" />
|
|
|
|
Hide non-indie results
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="center">
|
2023-11-05 09:53:39 +00:00
|
|
|
Visit <a href="settings.html" target="_blank">all settings</a> to change behavior per-wiki.
|
|
|
|
<br />
|
|
|
|
Clicking an option above will override any per-wiki customizations you may have.
|
2023-11-05 08:58:02 +00:00
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
<fieldset id="generalSettings">
|
|
|
|
<legend><span aria-hidden="true">⚙️</span> General settings</legend>
|
2023-11-05 05:52:22 +00:00
|
|
|
<div class="settingToggle">
|
|
|
|
<label>
|
2023-10-16 05:47:02 +00:00
|
|
|
<input id="notificationsCheckbox" type="checkbox" />
|
2023-11-05 05:52:22 +00:00
|
|
|
<span id="notificationsIcon" aria-hidden="true"></span>
|
|
|
|
Desktop notifications for
|
2023-11-05 19:46:45 +00:00
|
|
|
redirections
|
2023-11-05 05:52:22 +00:00
|
|
|
</label>
|
2023-02-14 18:38:50 +00:00
|
|
|
</div>
|
2023-11-05 05:52:22 +00:00
|
|
|
<div class="settingToggle">
|
|
|
|
<label>
|
|
|
|
<input id="crossLanguageCheckbox" type="checkbox" />
|
|
|
|
<span id="crossLanguageIcon" aria-hidden="true"></span>
|
|
|
|
Redirect non-English Fandom/Fextralife wikis to
|
2023-11-06 05:04:32 +00:00
|
|
|
independent English wikis when no same-language wiki exists
|
2023-11-05 05:52:22 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
2023-11-27 08:19:14 +00:00
|
|
|
<div class="settingToggle">
|
|
|
|
<label>
|
|
|
|
<input id="openChangelogCheckbox" type="checkbox" />
|
|
|
|
<span id="openChangelogIcon" aria-hidden="true"></span>
|
|
|
|
Open changelog when Indie Wiki Buddy is updated
|
|
|
|
</label>
|
|
|
|
</div>
|
2023-11-05 08:58:02 +00:00
|
|
|
</fieldset>
|
|
|
|
<fieldset id="breezewikiSettings">
|
|
|
|
<legend>
|
|
|
|
<span aria-hidden="true">༄</span> BreezeWiki settings (<a href="https://breezewiki.com/"
|
|
|
|
target="_blank">learn more</a>)
|
|
|
|
</legend>
|
2023-11-05 05:52:22 +00:00
|
|
|
<div class="settingToggle">
|
|
|
|
<label>
|
2023-04-12 05:01:06 +00:00
|
|
|
<input id="breezewikiCheckbox" type="checkbox" />
|
2023-11-05 08:58:02 +00:00
|
|
|
Use BreezeWiki alternative frontend on Fandom (English only)
|
2023-11-05 05:52:22 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
2023-11-05 08:58:02 +00:00
|
|
|
<div id="breezewikiHost" class="settingToggle">
|
|
|
|
<label>
|
|
|
|
BreezeWiki host:
|
2023-11-05 05:52:22 +00:00
|
|
|
<select name="breezewikiHost" id="breezewikiHostSelect"></select>
|
2023-11-05 08:58:02 +00:00
|
|
|
</label>
|
2023-11-27 03:00:08 +00:00
|
|
|
<label id="breezewikiCustomHost">
|
|
|
|
Custom BreezeWiki domain:
|
|
|
|
<input disabled type="text" id="customBreezewikiHost" name="customBreezewikiHost" placeholder="See full settings page" size="30" />
|
|
|
|
<span id="breezewikiCustomHostStatus">Change custom domain on <a href="settings.html" target="_blank">full settings page</a></span>
|
|
|
|
</label>
|
2023-02-14 18:38:50 +00:00
|
|
|
</div>
|
2023-11-05 08:58:02 +00:00
|
|
|
</fieldset>
|
|
|
|
</form>
|
2023-11-05 05:52:22 +00:00
|
|
|
<div id="openSettingsContainer">
|
|
|
|
<button id="openSettings">
|
|
|
|
View All Settings
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
<script type="text/javascript" src="popup.js"></script>
|
|
|
|
|
|
|
|
</html>
|