2017-02-14 15:35:53 +00:00
|
|
|
<!DOCTYPE html>
|
2017-03-23 03:41:50 +00:00
|
|
|
<html id="stylus">
|
2017-02-14 15:35:53 +00:00
|
|
|
<head>
|
2017-11-25 13:24:07 +00:00
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2017-04-10 06:47:09 +00:00
|
|
|
<title i18n-text-append="optionsHeading">Stylus </title>
|
2017-12-08 04:40:08 +00:00
|
|
|
<link rel="stylesheet" href="global.css">
|
2022-02-18 00:47:22 +00:00
|
|
|
<link href="global-dark.css?bugfix" rel="stylesheet"> <!-- https://crbug.com/1298600 -->
|
2017-09-03 20:52:06 +00:00
|
|
|
|
2018-11-30 01:35:21 +00:00
|
|
|
<script src="js/polyfill.js"></script>
|
2021-01-01 14:27:58 +00:00
|
|
|
<script src="js/toolbox.js"></script>
|
2018-11-07 06:09:29 +00:00
|
|
|
<script src="js/msg.js"></script>
|
2017-07-12 18:52:44 +00:00
|
|
|
<script src="js/localization.js"></script>
|
|
|
|
<script src="js/prefs.js"></script>
|
2021-01-01 14:27:58 +00:00
|
|
|
<script src="js/dom.js"></script>
|
|
|
|
|
2019-03-10 02:58:17 +00:00
|
|
|
<script src="content/style-injector.js"></script>
|
2017-07-12 18:52:44 +00:00
|
|
|
<script src="content/apply.js"></script>
|
2021-01-01 14:27:58 +00:00
|
|
|
|
|
|
|
<link rel="stylesheet" href="options/onoffswitch.css">
|
|
|
|
<link rel="stylesheet" href="options/options.css">
|
2022-02-18 00:47:22 +00:00
|
|
|
|
|
|
|
<template data-id="shortcutsFF">
|
|
|
|
<p style="line-height: 1.5" i18n-text="shortcutsNoteFF"></p>
|
|
|
|
<table style="margin: 0 auto">
|
|
|
|
<tr>
|
|
|
|
<td i18n-text="optionsCustomizePopup"></td>
|
|
|
|
<td><input id="hotkey._execute_browser_action" type="search"></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td i18n-text="openManage"></td>
|
|
|
|
<td><input id="hotkey.openManage" type="search"></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td i18n-text="disableAllStyles"></td>
|
|
|
|
<td><input id="hotkey.styleDisableAll" type="search"></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<p style="text-align: center">
|
|
|
|
<a href="https://developer.mozilla.org/Add-ons/WebExtensions/manifest.json/commands#Key_combinations"
|
|
|
|
target="_blank" i18n-text="helpAlt"></a>
|
|
|
|
</p>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="options/options-sync.js"></script>
|
2022-02-17 00:10:59 +00:00
|
|
|
<script src="js/dark-themer.js"></script> <!-- must be last in HEAD to avoid FOUC -->
|
2017-02-14 15:35:53 +00:00
|
|
|
</head>
|
|
|
|
|
2017-11-26 01:53:21 +00:00
|
|
|
<body id="stylus-options">
|
2020-02-02 04:36:54 +00:00
|
|
|
|
|
|
|
<div id="options-header">
|
2021-01-02 20:34:42 +00:00
|
|
|
<div id="options-title" i18n-text-append="optionsHeading">
|
|
|
|
<div id="options-close-icon">
|
|
|
|
<svg viewBox="0 0 20 20" class="svg-icon">
|
|
|
|
<path d="M11.69,10l4.55,4.55-1.69,1.69L10,11.69,5.45,16.23,3.77,14.55,8.31,10,3.77,5.45,5.45,3.77,10,8.31l4.55-4.55,1.69,1.69Z"></path>
|
|
|
|
</svg>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-02-02 04:36:54 +00:00
|
|
|
</div>
|
|
|
|
|
2017-04-14 07:50:52 +00:00
|
|
|
<div id="options">
|
2017-04-28 23:36:10 +00:00
|
|
|
|
2020-10-23 13:51:46 +00:00
|
|
|
<div class="options-wrapper">
|
2020-10-02 15:10:52 +00:00
|
|
|
|
2022-02-18 00:47:22 +00:00
|
|
|
<div class="block" id="updates">
|
|
|
|
<h1 i18n-text="optionsCustomizeUpdate"></h1>
|
|
|
|
<div class="items">
|
|
|
|
<label>
|
|
|
|
<span i18n-text="optionsUpdateInterval">
|
|
|
|
<a i18n-title="optionsUpdateImportNote"
|
|
|
|
data-cmd="note" class="svg-inline-wrapper" tabindex="0">
|
|
|
|
<svg class="svg-icon info"><use xlink:href="#svg-icon-help"/></svg>
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
<input type="number" min="0" id="updateInterval">
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="block sync-options">
|
|
|
|
<h1 i18n-text="optionsCustomizeSync"></h1>
|
2020-10-23 13:51:46 +00:00
|
|
|
<div class="items">
|
2022-02-18 00:47:22 +00:00
|
|
|
<label>
|
|
|
|
<span class="sync-status"></span>
|
|
|
|
<div class="select-resizer">
|
|
|
|
<select class="cloud-name">
|
|
|
|
<option value="none" i18n-text="optionsSyncNone"></option>
|
|
|
|
<option value="dropbox">Dropbox</option>
|
|
|
|
<option value="google">Google Drive</option>
|
|
|
|
<option value="onedrive">OneDrive</option>
|
|
|
|
<option value="webdav">WebDAV</option>
|
|
|
|
</select>
|
|
|
|
<svg class="svg-icon select-arrow"><use xlink:href="#svg-icon-select-arrow"/></svg>
|
|
|
|
</div>
|
|
|
|
</label>
|
|
|
|
<table class="drive-options" data-drive="webdav">
|
|
|
|
<tr>
|
|
|
|
<td i18n-text="optionsSyncUrl"></td>
|
|
|
|
<td><input type="url" data-option="url"></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td i18n-text="optionsSyncUsername"></td>
|
|
|
|
<td><input type="text" data-option="username"></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td i18n-text="optionsSyncPassword"></td>
|
|
|
|
<td><input type="password" data-option="password"></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<div class="actions">
|
|
|
|
<button class="connect"></button>
|
|
|
|
<button class="sync-now" i18n-text="optionsSyncSyncNow"></button>
|
|
|
|
<button class="sync-login" i18n-text="optionsSyncLogin"></button>
|
2017-06-28 10:49:04 +00:00
|
|
|
</div>
|
2020-10-23 13:51:46 +00:00
|
|
|
</div>
|
2017-04-14 07:50:52 +00:00
|
|
|
</div>
|
2020-11-18 11:17:15 +00:00
|
|
|
|
2022-02-17 00:10:59 +00:00
|
|
|
<div class="block">
|
|
|
|
<h1 i18n-text="stylePreferSchemeLabel"></h1>
|
|
|
|
<div class="items no-stretch">
|
2022-02-17 00:26:20 +00:00
|
|
|
<label class="radio-wrapper" i18n-text-append="preferSchemeDark">
|
|
|
|
<input type="radio" value="dark" name="schemeSwitcher.enabled">
|
2022-02-17 00:10:59 +00:00
|
|
|
</label>
|
2022-02-17 00:26:20 +00:00
|
|
|
<label class="radio-wrapper" i18n-text-append="preferSchemeLight">
|
|
|
|
<input type="radio" value="light" name="schemeSwitcher.enabled">
|
2022-02-17 00:10:59 +00:00
|
|
|
</label>
|
2022-02-17 00:26:20 +00:00
|
|
|
<label class="radio-wrapper" i18n-text-append="optionsAdvancedAutoSwitchSchemeBySystem">
|
|
|
|
<input type="radio" value="system" name="schemeSwitcher.enabled">
|
2022-02-17 00:10:59 +00:00
|
|
|
</label>
|
2022-02-17 00:26:20 +00:00
|
|
|
<label class="radio-wrapper">
|
|
|
|
<input type="radio" value="time" name="schemeSwitcher.enabled">
|
|
|
|
<span i18n-text="optionsAdvancedAutoSwitchSchemeByTime"></span>
|
2022-02-17 00:10:59 +00:00
|
|
|
<input type="time" required id="schemeSwitcher.nightStart">
|
|
|
|
~
|
|
|
|
<input type="time" required id="schemeSwitcher.nightEnd">
|
|
|
|
</label>
|
2022-02-17 00:26:20 +00:00
|
|
|
<label class="radio-wrapper" i18n-text-append="optionsAdvancedAutoSwitchSchemeNever">
|
|
|
|
<input type="radio" value="never" name="schemeSwitcher.enabled">
|
2022-02-17 00:10:59 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-10-23 13:51:46 +00:00
|
|
|
<div class="block">
|
|
|
|
<h1 i18n-text="optionsCustomizeIcon"></h1>
|
|
|
|
<div class="items">
|
|
|
|
<label>
|
2022-02-17 00:26:20 +00:00
|
|
|
<span class="radio-wrapper" i18n-text-append="optionsIconAuto">
|
2022-02-17 00:10:59 +00:00
|
|
|
<input type="radio" name="iconset" value="-1" data-value-type="number">
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
<label>
|
2022-02-17 00:26:20 +00:00
|
|
|
<span class="radio-wrapper" i18n-text-append="optionsIconDark">
|
2021-12-02 16:49:03 +00:00
|
|
|
<input type="radio" name="iconset" value="0" data-value-type="number">
|
2022-02-17 00:10:59 +00:00
|
|
|
</span>
|
|
|
|
<span>
|
2020-10-23 13:51:46 +00:00
|
|
|
<img src="/images/icon/16.png">
|
|
|
|
<img src="/images/icon/16w.png">
|
|
|
|
<img src="/images/icon/16x.png">
|
2022-02-17 00:10:59 +00:00
|
|
|
</span>
|
2020-10-23 13:51:46 +00:00
|
|
|
</label>
|
|
|
|
<label>
|
2022-02-17 00:26:20 +00:00
|
|
|
<span class="radio-wrapper" i18n-text-append="optionsIconLight">
|
2021-12-02 16:49:03 +00:00
|
|
|
<input type="radio" name="iconset" value="1" data-value-type="number">
|
2022-02-17 00:10:59 +00:00
|
|
|
</span>
|
|
|
|
<span>
|
2020-10-23 13:51:46 +00:00
|
|
|
<img src="/images/icon/light/16.png">
|
|
|
|
<img src="/images/icon/light/16w.png">
|
|
|
|
<img src="/images/icon/light/16x.png">
|
2022-02-17 00:10:59 +00:00
|
|
|
</span>
|
2020-10-23 13:51:46 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
2017-04-14 07:50:52 +00:00
|
|
|
</div>
|
2020-11-18 11:17:15 +00:00
|
|
|
|
2020-10-23 13:51:46 +00:00
|
|
|
<div class="block">
|
|
|
|
<h1 i18n-text="optionsCustomizeBadge"></h1>
|
|
|
|
<div class="items">
|
|
|
|
<label>
|
|
|
|
<span i18n-text="prefShowBadge"></span>
|
|
|
|
<span class="onoffswitch">
|
|
|
|
<input type="checkbox" id="show-badge" class="slider">
|
|
|
|
<span></span>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
<label>
|
|
|
|
<span i18n-text="optionsBadgeNormal"></span>
|
|
|
|
<input type="color" id="badgeNormal">
|
|
|
|
</label>
|
|
|
|
<label>
|
|
|
|
<span i18n-text="optionsBadgeDisabled"></span>
|
|
|
|
<input type="color" id="badgeDisabled">
|
|
|
|
</label>
|
|
|
|
</div>
|
2020-10-02 15:10:52 +00:00
|
|
|
</div>
|
2020-11-18 11:17:15 +00:00
|
|
|
|
2020-10-23 13:51:46 +00:00
|
|
|
<div class="block">
|
|
|
|
<h1 i18n-text="optionsCustomizePopup"></h1>
|
|
|
|
<div class="items">
|
|
|
|
<label>
|
|
|
|
<span i18n-text="optionsPopupWidth"></span>
|
|
|
|
<input type="number" id="popupWidth" min="200" max="800">
|
|
|
|
</label>
|
|
|
|
<label>
|
|
|
|
<span i18n-text="popupOpenEditInWindow"
|
|
|
|
i18n-title="popupOpenEditInWindowTooltip"></span>
|
|
|
|
<span class="onoffswitch">
|
|
|
|
<input type="checkbox" id="openEditInWindow" class="slider">
|
|
|
|
<span></span>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
<label>
|
|
|
|
<span i18n-text="popupOpenEditInPopup"></span>
|
|
|
|
<span class="onoffswitch">
|
|
|
|
<input type="checkbox" id="openEditInWindow.popup" class="slider">
|
|
|
|
<span></span>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
<label>
|
|
|
|
<span i18n-text="popupStylesFirst"></span>
|
|
|
|
<span class="onoffswitch">
|
|
|
|
<input type="checkbox" id="popup.stylesFirst" class="slider">
|
|
|
|
<span></span>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
<label>
|
|
|
|
<span i18n-text="popupAutoResort"></span>
|
|
|
|
<span class="onoffswitch">
|
|
|
|
<input type="checkbox" id="popup.autoResort" class="slider">
|
|
|
|
<span></span>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
<label class="chromium-only chrome-no-popup-border">
|
|
|
|
<span i18n-text="popupBorders" i18n-title="popupBordersTooltip"></span>
|
|
|
|
<span class="onoffswitch">
|
|
|
|
<input type="checkbox" id="popup.borders" class="slider">
|
|
|
|
<span></span>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
2017-04-14 07:50:52 +00:00
|
|
|
</div>
|
2020-11-18 11:17:15 +00:00
|
|
|
|
2020-10-23 13:51:46 +00:00
|
|
|
<div class="block">
|
|
|
|
<h1 i18n-text="openManage"></h1>
|
|
|
|
<div class="items">
|
|
|
|
<label>
|
|
|
|
<span i18n-text="manageNewUI"></span>
|
|
|
|
<span class="onoffswitch">
|
|
|
|
<input type="checkbox" id="manage.newUI" class="slider">
|
|
|
|
<span></span>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
<label>
|
|
|
|
<span i18n-text="manageFavicons">
|
2021-03-19 19:53:52 +00:00
|
|
|
<a i18n-title="manageFaviconsHelp"
|
|
|
|
data-cmd="note" class="svg-inline-wrapper" tabindex="0">
|
2020-10-23 13:51:46 +00:00
|
|
|
<svg class="svg-icon info"><use xlink:href="#svg-icon-help"/></svg>
|
2021-03-19 19:53:52 +00:00
|
|
|
</a>
|
2020-10-23 13:51:46 +00:00
|
|
|
</span>
|
|
|
|
<span class="onoffswitch">
|
|
|
|
<input type="checkbox" id="manage.newUI.favicons" class="slider">
|
|
|
|
<span></span>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
<label>
|
|
|
|
<span i18n-text="manageFaviconsGray"></span>
|
|
|
|
<span class="onoffswitch">
|
|
|
|
<input type="checkbox" id="manage.newUI.faviconsGray" class="slider">
|
|
|
|
<span></span>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
<label>
|
|
|
|
<span i18n-text="manageMaxTargets"></span>
|
|
|
|
<input id="manage.newUI.targets" type="number" min="1" max="99">
|
|
|
|
</label>
|
2019-11-15 00:17:25 +00:00
|
|
|
</div>
|
2020-10-23 13:51:46 +00:00
|
|
|
</div>
|
2020-11-18 11:17:15 +00:00
|
|
|
|
2020-10-23 13:51:46 +00:00
|
|
|
<div class="block" id="advanced">
|
2022-01-27 12:27:10 +00:00
|
|
|
<h1 i18n-text="optionsAdvanced"></h1>
|
2020-10-23 13:51:46 +00:00
|
|
|
<div class="items">
|
|
|
|
<label class="chromium-only">
|
|
|
|
<span i18n-text="optionsAdvancedStyleViaXhr">
|
2021-03-19 19:53:52 +00:00
|
|
|
<a i18n-title="optionsAdvancedStyleViaXhrNote"
|
|
|
|
data-cmd="note" class="svg-inline-wrapper" tabindex="0">
|
2020-10-23 13:51:46 +00:00
|
|
|
<svg class="svg-icon info"><use xlink:href="#svg-icon-help"/></svg>
|
2021-03-19 19:53:52 +00:00
|
|
|
</a>
|
2020-10-23 13:51:46 +00:00
|
|
|
</span>
|
|
|
|
<span class="onoffswitch">
|
|
|
|
<input type="checkbox" id="styleViaXhr" class="slider">
|
|
|
|
<span></span>
|
|
|
|
</span>
|
|
|
|
</label>
|
2020-11-18 11:17:15 +00:00
|
|
|
<label>
|
|
|
|
<span>
|
|
|
|
<span i18n-html="optionsAdvancedPatchCsp"></span>
|
2021-03-19 19:53:52 +00:00
|
|
|
<a i18n-title="optionsAdvancedPatchCspNote"
|
|
|
|
data-cmd="note" class="svg-inline-wrapper" tabindex="0">
|
2020-11-18 11:17:15 +00:00
|
|
|
<svg class="svg-icon info"><use xlink:href="#svg-icon-help"/></svg>
|
2021-03-19 19:53:52 +00:00
|
|
|
</a>
|
2020-11-18 11:17:15 +00:00
|
|
|
</span>
|
|
|
|
<span class="onoffswitch">
|
|
|
|
<input type="checkbox" id="patchCsp" class="slider">
|
|
|
|
<span></span>
|
|
|
|
</span>
|
|
|
|
</label>
|
2020-10-23 13:51:46 +00:00
|
|
|
<label>
|
|
|
|
<span i18n-text="optionsAdvancedExposeIframes">
|
2021-03-19 19:53:52 +00:00
|
|
|
<a i18n-title="optionsAdvancedExposeIframesNote"
|
|
|
|
data-cmd="note" class="svg-inline-wrapper" tabindex="0">
|
2020-10-23 13:51:46 +00:00
|
|
|
<svg class="svg-icon info"><use xlink:href="#svg-icon-help"/></svg>
|
2021-03-19 19:53:52 +00:00
|
|
|
</a>
|
2020-10-23 13:51:46 +00:00
|
|
|
</span>
|
|
|
|
<span class="onoffswitch">
|
|
|
|
<input type="checkbox" id="exposeIframes" class="slider">
|
|
|
|
<span></span>
|
|
|
|
</span>
|
|
|
|
</label>
|
2022-02-10 18:28:47 +00:00
|
|
|
<label class="chromium-only">
|
|
|
|
<span i18n-text="optionsAdvancedExposeStyleName">
|
|
|
|
<a i18n-title="optionsAdvancedExposeStyleNameNote"
|
|
|
|
data-cmd="note" class="svg-inline-wrapper" tabindex="0">
|
|
|
|
<svg class="svg-icon info"><use xlink:href="#svg-icon-help"/></svg>
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
<span class="onoffswitch">
|
|
|
|
<input type="checkbox" id="exposeStyleName" class="slider">
|
|
|
|
<span></span>
|
|
|
|
</span>
|
|
|
|
</label>
|
2021-01-15 10:16:14 +00:00
|
|
|
<label class="chromium-only">
|
|
|
|
<span i18n-text="optionsAdvancedContextDelete"></span>
|
|
|
|
<span class="onoffswitch">
|
|
|
|
<input type="checkbox" id="editor.contextDelete" class="slider">
|
|
|
|
<span></span>
|
|
|
|
</span>
|
|
|
|
</label>
|
2020-10-23 13:51:46 +00:00
|
|
|
</div>
|
2017-04-28 23:36:10 +00:00
|
|
|
</div>
|
2020-10-23 13:51:46 +00:00
|
|
|
|
2022-02-18 00:47:22 +00:00
|
|
|
<div class="block">
|
|
|
|
<h1 i18n-text="cm_theme"></h1>
|
|
|
|
<div class="items" i18n-text="optionsStylusThemes" style="width:0"></div>
|
|
|
|
</div>
|
2017-04-28 23:36:10 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="block" id="actions">
|
2022-02-18 00:47:22 +00:00
|
|
|
<button id="reset" i18n-text="optionsResetButton" i18n-title="optionsReset"></button>
|
|
|
|
<button id="shortcuts" i18n-text="shortcuts" i18n-title="shortcutsNote"></button>
|
|
|
|
<button id="manage" i18n-text="confirmClose"></button>
|
2017-04-14 07:50:52 +00:00
|
|
|
</div>
|
2017-03-28 00:42:07 +00:00
|
|
|
</div>
|
|
|
|
|
2018-01-24 20:16:24 +00:00
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" style="display: none !important;">
|
|
|
|
<symbol id="svg-icon-help" viewBox="0 0 14 16">
|
2022-01-17 22:08:28 +00:00
|
|
|
<circle cx="7" cy="5" r="1"/>
|
|
|
|
<path d="M8,8c0-0.5-0.5-1-1-1H6C5.5,7,5,7.4,5,8h1v3c0,0.5,0.5,1,1,1h1c0.5,0,1-0.4,1-1H8V8z"/>
|
|
|
|
<path d="M7,1c3.9,0,7,3.1,7,7s-3.1,7-7,7s-7-3.1-7-7S3.1,1,7,1z M7,2.3C3.9,2.3,1.3,4.9,1.3,8s2.6,5.7,5.7,5.7s5.7-2.6,5.7-5.7S10.1,2.3,7,2.3C7,2.3,7,2.3,7,2.3z"/>
|
2018-01-24 20:16:24 +00:00
|
|
|
</symbol>
|
2019-11-14 05:50:38 +00:00
|
|
|
|
|
|
|
<symbol id="svg-icon-select-arrow" viewBox="0 0 1792 1792">
|
|
|
|
<path fill-rule="evenodd" d="M1408 704q0 26-19 45l-448 448q-19 19-45 19t-45-19l-448-448q-19-19-19-45t19-45 45-19h896q26 0 45 19t19 45z"/>
|
|
|
|
</symbol>
|
2018-01-24 20:16:24 +00:00
|
|
|
</svg>
|
|
|
|
|
2017-08-27 14:45:15 +00:00
|
|
|
<script src="options/options.js"></script>
|
2017-02-14 15:35:53 +00:00
|
|
|
</body>
|
|
|
|
</html>
|