options.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5. <title>SingleFile options</title>
  6. <link rel="stylesheet" href="options.css">
  7. <meta name="viewport" content="width=device-width,initial-scale=1">
  8. </head>
  9. <body>
  10. <main>
  11. <h3>
  12. <span class="options-title">
  13. <span id="expandAllButton"></span>
  14. <span id="titleLabel"></span>
  15. <a href="options.html#" target="_blank" class="new-window-link"><img
  16. src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg=="></a>
  17. </span>
  18. <span class="profiles">
  19. <select id="profileNamesInput"></select>
  20. <button id="addProfileButton"><img src="../resources/button_new.png"></button>
  21. <button id="deleteProfileButton"><img src="../resources/button_delete.png"></button>
  22. <button id="renameProfileButton"><img src="../resources/button_edit.png"></button>
  23. </span>
  24. </h3>
  25. <details>
  26. <summary id="userInterfaceLabel"></summary>
  27. <div class="option">
  28. <label for="contextMenuEnabledInput" id="addMenuEntryLabel"></label>
  29. <input type="checkbox" id="contextMenuEnabledInput">
  30. </div>
  31. <div class="option">
  32. <label for="shadowEnabledInput" id="shadowEnabledLabel"></label>
  33. <input type="checkbox" id="shadowEnabledInput">
  34. </div>
  35. <div class="option">
  36. <label for="displayInfobarInput" id="displayInfobarLabel"></label>
  37. <input type="checkbox" id="displayInfobarInput">
  38. </div>
  39. <div class="option vertical">
  40. <label for="infobarTemplateInput" id="infobarTemplateLabel"></label>
  41. <input type="text" id="infobarTemplateInput">
  42. </div>
  43. <div class="option">
  44. <label for="confirmInfobarInput" id="confirmInfobarLabel"></label>
  45. <input type="checkbox" id="confirmInfobarInput">
  46. </div>
  47. <div class="option">
  48. <label for="autoCloseInput" id="autoCloseLabel"></label>
  49. <input type="checkbox" id="autoCloseInput">
  50. </div>
  51. </details>
  52. <details>
  53. <summary id="filenameLabel"></summary>
  54. <div class="option vertical">
  55. <label for="filenameTemplateInput" id="filenameTemplateLabel"></label>
  56. <input type="text" id="filenameTemplateInput">
  57. </div>
  58. <div class="option">
  59. <label for="filenameMaxLengthInput" id="filenameMaxLengthLabel"></label>
  60. <input type="number" id="filenameMaxLengthInput" min="1">
  61. </div>
  62. <div class="option">
  63. <label for="confirmFilenameInput" id="confirmFilenameLabel"></label>
  64. <input type="checkbox" id="confirmFilenameInput">
  65. </div>
  66. <div class="option">
  67. <label for="filenameConflictActionInput" id="filenameConflictActionLabel"></label>
  68. <select id="filenameConflictActionInput">
  69. <option id="filenameConflictActionUniquifyLabel" value="uniquify"></option>
  70. <option id="filenameConflictActionOverwriteLabel" value="overwrite"></option>
  71. <option id="filenameConflictActionPromptLabel" value="prompt"></option>
  72. <option id="filenameConflictActionSkipLabel" value="skip"></option>
  73. </select>
  74. </div>
  75. </details>
  76. <details>
  77. <summary id="htmlContentLabel"></summary>
  78. <div class="option">
  79. <label for="compressHTMLInput" id="compressHTMLLabel"></label>
  80. <input type="checkbox" id="compressHTMLInput">
  81. </div>
  82. <div class="option">
  83. <label for="removeImportsInput" id="removeImportsLabel"></label>
  84. <input type="checkbox" id="removeImportsInput">
  85. </div>
  86. <div class="option">
  87. <label for="removeHiddenElementsInput" id="removeHiddenElementsLabel"></label>
  88. <input type="checkbox" id="removeHiddenElementsInput">
  89. </div>
  90. <div class="option">
  91. <label for="removeFramesInput" id="removeFramesLabel"></label>
  92. <input type="checkbox" id="removeFramesInput">
  93. </div>
  94. <div class="option">
  95. <label for="includeInfobarInput" id="includeInfobarLabel"></label>
  96. <input type="checkbox" id="includeInfobarInput">
  97. </div>
  98. </details>
  99. <details>
  100. <summary id="stylesheetsLabel"></summary>
  101. <div class="option">
  102. <label for="removeUnusedStylesInput" id="removeUnusedStylesLabel"></label>
  103. <input type="checkbox" id="removeUnusedStylesInput">
  104. </div>
  105. <div class="option">
  106. <label for="removeAlternativeMediasInput" id="removeAlternativeMediasLabel"></label>
  107. <input type="checkbox" id="removeAlternativeMediasInput">
  108. </div>
  109. <div class="option">
  110. <label for="compressCSSInput" id="compressCSSLabel"></label>
  111. <input type="checkbox" id="compressCSSInput">
  112. </div>
  113. </details>
  114. <details>
  115. <summary id="imagesLabel"></summary>
  116. <div class="option">
  117. <label for="groupDuplicateImagesInput" id="groupDuplicateImagesLabel"></label>
  118. <input type="checkbox" id="groupDuplicateImagesInput">
  119. </div>
  120. <div class="option">
  121. <label for="loadDeferredImagesInput" id="loadDeferredImagesLabel"></label>
  122. <input type="checkbox" id="loadDeferredImagesInput">
  123. </div>
  124. <div class="option second-level">
  125. <label for="loadDeferredImagesMaxIdleTimeInput" id="loadDeferredImagesMaxIdleTimeLabel"></label>
  126. <input type="number" class="large-input" id="loadDeferredImagesMaxIdleTimeInput" step="100">
  127. </div>
  128. <div class="option second-level">
  129. <label for="loadDeferredImagesKeepZoomLevelInput" id="loadDeferredImagesKeepZoomLevelLabel"></label>
  130. <input type="checkbox" id="loadDeferredImagesKeepZoomLevelInput">
  131. </div>
  132. <div class="option">
  133. <label for="removeAlternativeImagesInput" id="removeAlternativeImagesLabel"></label>
  134. <input type="checkbox" id="removeAlternativeImagesInput">
  135. </div>
  136. </details>
  137. <details>
  138. <summary id="fontsLabel"></summary>
  139. <div class="option">
  140. <label for="removeUnusedFontsInput" id="removeUnusedFontsLabel"></label>
  141. <input type="checkbox" id="removeUnusedFontsInput">
  142. </div>
  143. <div class="option">
  144. <label for="removeAlternativeFontsInput" id="removeAlternativeFontsLabel"></label>
  145. <input type="checkbox" id="removeAlternativeFontsInput">
  146. </div>
  147. </details>
  148. <details>
  149. <summary id="otherResourcesLabel"></summary>
  150. <div class="option">
  151. <label for="removeScriptsInput" id="removeScriptsLabel"></label>
  152. <input type="checkbox" id="removeScriptsInput">
  153. </div>
  154. <div class="option">
  155. <label for="removeVideoSrcInput" id="removeVideoLabel"></label>
  156. <input type="checkbox" id="removeVideoSrcInput">
  157. </div>
  158. <div class="option">
  159. <label for="removeAudioSrcInput" id="removeAudioLabel"></label>
  160. <input type="checkbox" id="removeAudioSrcInput">
  161. </div>
  162. </details>
  163. <details>
  164. <summary id="autoSaveLabel"></summary>
  165. <div class="option">
  166. <label for="autoSaveLoadOrUnloadInput" id="autoSaveLoadOrUnloadLabel"></label>
  167. <input type="checkbox" id="autoSaveLoadOrUnloadInput">
  168. </div>
  169. <div class="option">
  170. <label for="autoSaveLoadInput" id="autoSaveLoadLabel"></label>
  171. <input type="checkbox" id="autoSaveLoadInput">
  172. </div>
  173. <div class="option">
  174. <label for="autoSaveUnloadInput" id="autoSaveUnloadLabel"></label>
  175. <input type="checkbox" id="autoSaveUnloadInput">
  176. </div>
  177. <div class="option">
  178. <label for="autoSaveDelayInput" id="autoSaveDelayLabel"></label>
  179. <input type="number" id="autoSaveDelayInput" min="0">
  180. </div>
  181. <div class="option">
  182. <label for="autoSaveRepeatInput" id="autoSaveRepeatLabel"></label>
  183. <input type="checkbox" id="autoSaveRepeatInput">
  184. </div>
  185. <div class="option second-level">
  186. <label for="autoSaveRepeatDelayInput" id="autoSaveRepeatDelayLabel"></label>
  187. <input type="number" id="autoSaveRepeatDelayInput" min="1">
  188. </div>
  189. <div class="option">
  190. <label for="autoSaveExternalSaveInput" id="autoSaveExternalSaveLabel"></label>
  191. <input type="checkbox" id="autoSaveExternalSaveInput">
  192. </div>
  193. </details>
  194. <details>
  195. <summary id="editorLabel"></summary>
  196. <div class="option">
  197. <label for="defaultEditorModeInput" id="defaultEditorModeLabel"></label>
  198. <select id="defaultEditorModeInput">
  199. <option id="defaultEditorModeNormalLabel" value="normal"></option>
  200. <option id="defaultEditorModeEditLabel" value="edit"></option>
  201. <option id="defaultEditorModeFormatLabel" value="format"></option>
  202. <option id="defaultEditorModeCutLabel" value="cut"></option>
  203. <option id="defaultEditorModeCutExternalLabel" value="cut-external"></option>
  204. </select>
  205. </div>
  206. <div class="option">
  207. <label for="applySystemThemeInput" id="applySystemThemeLabel"></label>
  208. <input type="checkbox" id="applySystemThemeInput">
  209. </div>
  210. <div class="option">
  211. <label for="warnUnsavedPageInput" id="warnUnsavedPageLabel"></label>
  212. <input type="checkbox" id="warnUnsavedPageInput">
  213. </div>
  214. <div class="option">
  215. <label for="openEditorInput" id="openEditorLabel"></label>
  216. <input type="checkbox" id="openEditorInput">
  217. </div>
  218. <div class="option">
  219. <label for="autoOpenEditorInput" id="autoOpenEditorLabel"></label>
  220. <input type="checkbox" id="autoOpenEditorInput">
  221. </div>
  222. </details>
  223. <details>
  224. <summary id="miscLabel"></summary>
  225. <div class="option">
  226. <label for="backgroundSaveInput" id="backgroundSaveLabel"></label>
  227. <input type="checkbox" id="backgroundSaveInput">
  228. </div>
  229. <div class="option">
  230. <label for="displayStatsInput" id="displayStatsLabel"></label>
  231. <input type="checkbox" id="displayStatsInput">
  232. </div>
  233. <div class="option">
  234. <label for="maxResourceSizeEnabledInput" id="setMaxResourceSizeLabel"></label>
  235. <input type="checkbox" id="maxResourceSizeEnabledInput">
  236. </div>
  237. <div class="option second-level">
  238. <label for="maxResourceSizeInput" id="maxResourceSizeLabel"></label>
  239. <input type="number" id="maxResourceSizeInput" min="1">
  240. </div>
  241. <div class="option">
  242. <label for="passReferrerOnErrorInput" id="passReferrerOnErrorLabel"></label>
  243. <input type="checkbox" id="passReferrerOnErrorInput">
  244. </div>
  245. <div class="option">
  246. <label for="saveRawPageInput" id="saveRawPageLabel"></label>
  247. <input type="checkbox" id="saveRawPageInput">
  248. </div>
  249. <div class="option">
  250. <label for="saveToClipboardInput" id="saveToClipboardLabel"></label>
  251. <input type="checkbox" id="saveToClipboardInput">
  252. </div>
  253. <div class="option">
  254. <label for="addProofInput" id="addProofLabel"></label>
  255. <input type="checkbox" id="addProofInput">
  256. </div>
  257. <div class="option">
  258. <label for="saveToGDriveInput" id="saveToGDriveLabel"></label>
  259. <input type="checkbox" id="saveToGDriveInput">
  260. </div>
  261. <div class="option">
  262. <label for="saveCreatedBookmarksInput" id="saveCreatedBookmarksLabel"></label>
  263. <input type="checkbox" id="saveCreatedBookmarksInput">
  264. </div>
  265. <div class="option second-level">
  266. <label for="replaceBookmarkURLInput" id="replaceBookmarkURLLabel"></label>
  267. <input type="checkbox" id="replaceBookmarkURLInput">
  268. </div>
  269. </details>
  270. <details>
  271. <summary id="autoSettingsLabel"></summary>
  272. <div class="rules-table-container compact">
  273. <div class="thead">
  274. <div class="tr">
  275. <span class="th" id="autoSettingsUrlLabel"></span>
  276. <span class="th" id="autoSettingsProfileLabel"></span>
  277. <span class="th rule-autosave-profile" id="autoSettingsAutoSaveProfileLabel"></span>
  278. <span class="th"><button id="rulesDeleteAllButton"><img
  279. src="../resources/button_delete_all.png"></button></span>
  280. </div>
  281. </div>
  282. <div class="rules-table">
  283. <div class="rules-data">
  284. </div>
  285. <div hidden class="tr rule-view">
  286. <span class="td rule-url"></span>
  287. <span class="td rule-profile"></span>
  288. <span class="td rule-autosave-profile"></span>
  289. <span class="td"><button class="rule-update-button"><img
  290. src="../resources/button_edit.png"></button> <button class="rule-delete-button"><img
  291. src="../resources/button_delete.png"></button></span>
  292. </div>
  293. <form class="tr rule-create">
  294. <span class="td rule-url"><input type="text" id="ruleUrlInput"
  295. placeholder="Type a complete or partial URL (e.g. example.com)"></span>
  296. <span class="td rule-profile"><select id="ruleProfileInput"></select></span>
  297. <span class="td rule-autosave-profile"><select id="ruleAutoSaveProfileInput"></select></span>
  298. <span class="td"><button id="ruleAddButton" disabled type="submit"><img
  299. src="../resources/button_new.png"></button></span>
  300. </form>
  301. <form hidden class="tr rule-edit">
  302. <span class="td rule-url"><input type="text" id="ruleEditUrlInput"></span>
  303. <span class="td rule-profile"><select id="ruleEditProfileInput"></select></span>
  304. <span class="td rule-autosave-profile"><select
  305. id="ruleEditAutoSaveProfileInput"></select></span>
  306. <span class="td"><button id="ruleEditButton" type="submit"><img
  307. src="../resources/button_ok.png"></button></span>
  308. </form>
  309. </div>
  310. </div>
  311. <div class="option">
  312. <label for="showAllProfilesInput" id="showAllProfilesLabel"></label>
  313. <input type="checkbox" id="showAllProfilesInput">
  314. </div>
  315. <div class="option">
  316. <label for="showAutoSaveProfileInput" id="showAutoSaveProfileLabel"></label>
  317. <input type="checkbox" id="showAutoSaveProfileInput">
  318. </div>
  319. </details>
  320. <div class="option bottom">
  321. <a href="help.html" target="SingleFileHelpPage" id="helpLabel"></a>
  322. <div class="buttons">
  323. <div class="sync-input">
  324. <input type="checkbox" id="synchronizeInput">
  325. <label for="synchronizeInput" id="synchronizeLabel"></label>
  326. </div>
  327. <button id="importButton"></button>
  328. <button id="exportButton"></button>
  329. <button id="resetButton"></button>
  330. <input type="file" id="fileInput" hidden>
  331. </div>
  332. </div>
  333. <div id="formResetContainer" class="popup">
  334. <form class="popup-content">
  335. <header>
  336. <span id="resetConfirmLabel"></span>
  337. </header>
  338. <footer>
  339. <button type="submit" id="resetAllButton"></button>
  340. <button id="resetCurrentButton"></button>
  341. <button id="resetCancelButton"></button>
  342. </footer>
  343. </form>
  344. </div>
  345. <div id="formConfirmContainer" class="popup">
  346. <form class="popup-content">
  347. <header>
  348. <span id="confirmLabel"></span>
  349. </header>
  350. <footer>
  351. <button type="submit" id="confirmButton"></button>
  352. <button id="cancelButton"></button>
  353. </footer>
  354. </form>
  355. </div>
  356. <div id="formPromptContainer" class="popup">
  357. <form class="popup-content">
  358. <header>
  359. <span id="promptLabel"></span>
  360. </header>
  361. <main><input id="promptInput" type="text"></main>
  362. <footer>
  363. <button type="submit" id="promptConfirmButton"></button>
  364. <button id="promptCancelButton"></button>
  365. </footer>
  366. </form>
  367. </div>
  368. </main>
  369. <script type="text/javascript"
  370. src="/extension/lib/single-file/browser-polyfill/chrome-browser-polyfill.js"></script>
  371. <script type="text/javascript" src="../bg/ui-options.js"></script>
  372. </body>
  373. </html>