options.html 16 KB

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