options.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  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="removeFramesInput" id="removeFramesLabel"></label>
  97. <input type="checkbox" id="removeFramesInput">
  98. </div>
  99. <div class="option">
  100. <label for="includeInfobarInput" id="includeInfobarLabel"></label>
  101. <input type="checkbox" id="includeInfobarInput">
  102. </div>
  103. <div class="option">
  104. <label for="saveRawPageInput" id="saveRawPageLabel"></label>
  105. <input type="checkbox" id="saveRawPageInput">
  106. </div>
  107. </details>
  108. <details>
  109. <summary id="stylesheetsLabel"></summary>
  110. <div class="option">
  111. <label for="removeUnusedStylesInput" id="removeUnusedStylesLabel"></label>
  112. <input type="checkbox" id="removeUnusedStylesInput">
  113. </div>
  114. <div class="option">
  115. <label for="removeAlternativeMediasInput" id="removeAlternativeMediasLabel"></label>
  116. <input type="checkbox" id="removeAlternativeMediasInput">
  117. </div>
  118. <div class="option">
  119. <label for="compressCSSInput" id="compressCSSLabel"></label>
  120. <input type="checkbox" id="compressCSSInput">
  121. </div>
  122. </details>
  123. <details>
  124. <summary id="imagesLabel"></summary>
  125. <div class="option">
  126. <label for="groupDuplicateImagesInput" id="groupDuplicateImagesLabel"></label>
  127. <input type="checkbox" id="groupDuplicateImagesInput">
  128. </div>
  129. <div class="option">
  130. <label for="loadDeferredImagesInput" id="loadDeferredImagesLabel"></label>
  131. <input type="checkbox" id="loadDeferredImagesInput">
  132. </div>
  133. <div class="option second-level">
  134. <label for="loadDeferredImagesMaxIdleTimeInput" id="loadDeferredImagesMaxIdleTimeLabel"></label>
  135. <input type="number" class="large-input" id="loadDeferredImagesMaxIdleTimeInput" step="100">
  136. </div>
  137. <div class="option second-level">
  138. <label for="loadDeferredImagesKeepZoomLevelInput" id="loadDeferredImagesKeepZoomLevelLabel"></label>
  139. <input type="checkbox" id="loadDeferredImagesKeepZoomLevelInput">
  140. </div>
  141. <div class="option">
  142. <label for="removeAlternativeImagesInput" id="removeAlternativeImagesLabel"></label>
  143. <input type="checkbox" id="removeAlternativeImagesInput">
  144. </div>
  145. </details>
  146. <details>
  147. <summary id="fontsLabel"></summary>
  148. <div class="option">
  149. <label for="removeUnusedFontsInput" id="removeUnusedFontsLabel"></label>
  150. <input type="checkbox" id="removeUnusedFontsInput">
  151. </div>
  152. <div class="option">
  153. <label for="removeAlternativeFontsInput" id="removeAlternativeFontsLabel"></label>
  154. <input type="checkbox" id="removeAlternativeFontsInput">
  155. </div>
  156. </details>
  157. <details>
  158. <summary id="otherResourcesLabel"></summary>
  159. <div class="option">
  160. <label for="removeScriptsInput" id="removeScriptsLabel"></label>
  161. <input type="checkbox" id="removeScriptsInput">
  162. </div>
  163. <div class="option">
  164. <label for="removeVideoSrcInput" id="removeVideoLabel"></label>
  165. <input type="checkbox" id="removeVideoSrcInput">
  166. </div>
  167. <div class="option">
  168. <label for="removeAudioSrcInput" id="removeAudioLabel"></label>
  169. <input type="checkbox" id="removeAudioSrcInput">
  170. </div>
  171. </details>
  172. <details>
  173. <summary id="destinationLabel"></summary>
  174. <div class="option">
  175. <label for="saveToFilesystemInput" id="saveToFilesystemLabel"></label>
  176. <input type="radio" id="saveToFilesystemInput" name="destinationInput">
  177. </div>
  178. <div class="option">
  179. <label for="saveToClipboardInput" id="saveToClipboardLabel"></label>
  180. <input type="radio" id="saveToClipboardInput" name="destinationInput">
  181. </div>
  182. <div class="option">
  183. <label for="saveToGDriveInput" id="saveToGDriveLabel"></label>
  184. <input type="radio" id="saveToGDriveInput" name="destinationInput">
  185. </div>
  186. </details>
  187. <details>
  188. <summary id="editorLabel"></summary>
  189. <div class="option">
  190. <label for="defaultEditorModeInput" id="defaultEditorModeLabel"></label>
  191. <select id="defaultEditorModeInput">
  192. <option id="defaultEditorModeNormalLabel" value="normal"></option>
  193. <option id="defaultEditorModeEditLabel" value="edit"></option>
  194. <option id="defaultEditorModeFormatLabel" value="format"></option>
  195. <option id="defaultEditorModeCutLabel" value="cut"></option>
  196. <option id="defaultEditorModeCutExternalLabel" value="cut-external"></option>
  197. </select>
  198. </div>
  199. <div class="option">
  200. <label for="applySystemThemeInput" id="applySystemThemeLabel"></label>
  201. <input type="checkbox" id="applySystemThemeInput">
  202. </div>
  203. <div class="option">
  204. <label for="warnUnsavedPageInput" id="warnUnsavedPageLabel"></label>
  205. <input type="checkbox" id="warnUnsavedPageInput">
  206. </div>
  207. <div class="option">
  208. <label for="openEditorInput" id="openEditorLabel"></label>
  209. <input type="checkbox" id="openEditorInput">
  210. </div>
  211. <div class="option">
  212. <label for="autoOpenEditorInput" id="autoOpenEditorLabel"></label>
  213. <input type="checkbox" id="autoOpenEditorInput">
  214. </div>
  215. </details>
  216. <details>
  217. <summary id="bookmarksLabel"></summary>
  218. <div class="option">
  219. <label for="saveCreatedBookmarksInput" id="saveCreatedBookmarksLabel"></label>
  220. <input type="checkbox" id="saveCreatedBookmarksInput">
  221. </div>
  222. <div class="option second-level">
  223. <label for="replaceBookmarkURLInput" id="replaceBookmarkURLLabel"></label>
  224. <input type="checkbox" id="replaceBookmarkURLInput">
  225. </div>
  226. <div class="option second-level vertical">
  227. <label for="ignoredBookmarkFoldersInput" id="ignoredBookmarkFoldersLabel"></label>
  228. <input type="text" id="ignoredBookmarkFoldersInput">
  229. </div>
  230. </details>
  231. <details>
  232. <summary id="autoSaveLabel"></summary>
  233. <div class="option">
  234. <label for="autoSaveLoadOrUnloadInput" id="autoSaveLoadOrUnloadLabel"></label>
  235. <input type="checkbox" id="autoSaveLoadOrUnloadInput">
  236. </div>
  237. <div class="option">
  238. <label for="autoSaveLoadInput" id="autoSaveLoadLabel"></label>
  239. <input type="checkbox" id="autoSaveLoadInput">
  240. </div>
  241. <div class="option">
  242. <label for="autoSaveUnloadInput" id="autoSaveUnloadLabel"></label>
  243. <input type="checkbox" id="autoSaveUnloadInput">
  244. </div>
  245. <div class="option">
  246. <label for="autoSaveDelayInput" id="autoSaveDelayLabel"></label>
  247. <input type="number" id="autoSaveDelayInput" min="0">
  248. </div>
  249. <div class="option">
  250. <label for="autoSaveRepeatInput" id="autoSaveRepeatLabel"></label>
  251. <input type="checkbox" id="autoSaveRepeatInput">
  252. </div>
  253. <div class="option second-level">
  254. <label for="autoSaveRepeatDelayInput" id="autoSaveRepeatDelayLabel"></label>
  255. <input type="number" id="autoSaveRepeatDelayInput" min="1">
  256. </div>
  257. <div class="option">
  258. <label for="autoSaveExternalSaveInput" id="autoSaveExternalSaveLabel"></label>
  259. <input type="checkbox" id="autoSaveExternalSaveInput">
  260. </div>
  261. </details>
  262. <details>
  263. <summary id="miscLabel"></summary>
  264. <div class="option">
  265. <label for="maxResourceSizeEnabledInput" id="setMaxResourceSizeLabel"></label>
  266. <input type="checkbox" id="maxResourceSizeEnabledInput">
  267. </div>
  268. <div class="option second-level">
  269. <label for="maxResourceSizeInput" id="maxResourceSizeLabel"></label>
  270. <input type="number" id="maxResourceSizeInput" min="1">
  271. </div>
  272. <div class="option">
  273. <label for="passReferrerOnErrorInput" id="passReferrerOnErrorLabel"></label>
  274. <input type="checkbox" id="passReferrerOnErrorInput">
  275. </div>
  276. <div class="option">
  277. <label for="addProofInput" id="addProofLabel"></label>
  278. <input type="checkbox" id="addProofInput">
  279. </div>
  280. <div class="option">
  281. <label for="backgroundSaveInput" id="backgroundSaveLabel"></label>
  282. <input type="checkbox" id="backgroundSaveInput">
  283. </div>
  284. <div class="option">
  285. <label for="displayStatsInput" id="displayStatsLabel"></label>
  286. <input type="checkbox" id="displayStatsInput">
  287. </div>
  288. </details>
  289. <details>
  290. <summary id="autoSettingsLabel"></summary>
  291. <div class="rules-table-container compact">
  292. <div class="thead">
  293. <div class="tr">
  294. <span class="th" id="autoSettingsUrlLabel"></span>
  295. <span class="th" id="autoSettingsProfileLabel"></span>
  296. <span class="th rule-autosave-profile" id="autoSettingsAutoSaveProfileLabel"></span>
  297. <span class="th"><button id="rulesDeleteAllButton"><img
  298. src="../resources/button_delete_all.png"></button></span>
  299. </div>
  300. </div>
  301. <div class="rules-table">
  302. <div class="rules-data">
  303. </div>
  304. <div hidden class="tr rule-view">
  305. <span class="td rule-url"></span>
  306. <span class="td rule-profile"></span>
  307. <span class="td rule-autosave-profile"></span>
  308. <span class="td"><button class="rule-update-button"><img
  309. src="../resources/button_edit.png"></button> <button class="rule-delete-button"><img
  310. src="../resources/button_delete.png"></button></span>
  311. </div>
  312. <form class="tr rule-create">
  313. <span class="td rule-url"><input type="text" id="ruleUrlInput"
  314. placeholder="Type a complete or partial URL (e.g. example.com)"></span>
  315. <span class="td rule-profile"><select id="ruleProfileInput"></select></span>
  316. <span class="td rule-autosave-profile"><select id="ruleAutoSaveProfileInput"></select></span>
  317. <span class="td"><button id="ruleAddButton" disabled type="submit"><img
  318. src="../resources/button_new.png"></button></span>
  319. </form>
  320. <form hidden class="tr rule-edit">
  321. <span class="td rule-url"><input type="text" id="ruleEditUrlInput"></span>
  322. <span class="td rule-profile"><select id="ruleEditProfileInput"></select></span>
  323. <span class="td rule-autosave-profile"><select
  324. id="ruleEditAutoSaveProfileInput"></select></span>
  325. <span class="td"><button id="ruleEditButton" type="submit"><img
  326. src="../resources/button_ok.png"></button></span>
  327. </form>
  328. </div>
  329. </div>
  330. <div class="option">
  331. <label for="showAllProfilesInput" id="showAllProfilesLabel"></label>
  332. <input type="checkbox" id="showAllProfilesInput">
  333. </div>
  334. <div class="option">
  335. <label for="showAutoSaveProfileInput" id="showAutoSaveProfileLabel"></label>
  336. <input type="checkbox" id="showAutoSaveProfileInput">
  337. </div>
  338. </details>
  339. <div class="option bottom">
  340. <a href="help.html" target="SingleFileHelpPage" id="helpLabel"></a>
  341. <div class="buttons">
  342. <div class="sync-input">
  343. <input type="checkbox" id="synchronizeInput">
  344. <label for="synchronizeInput" id="synchronizeLabel"></label>
  345. </div>
  346. <button id="importButton"></button>
  347. <button id="exportButton"></button>
  348. <button id="resetButton"></button>
  349. <input type="file" id="fileInput" hidden>
  350. </div>
  351. </div>
  352. <div id="formResetContainer" class="popup">
  353. <form class="popup-content">
  354. <header>
  355. <span id="resetConfirmLabel"></span>
  356. </header>
  357. <footer>
  358. <button type="submit" id="resetAllButton"></button>
  359. <button id="resetCurrentButton"></button>
  360. <button id="resetCancelButton"></button>
  361. </footer>
  362. </form>
  363. </div>
  364. <div id="formConfirmContainer" class="popup">
  365. <form class="popup-content">
  366. <header>
  367. <span id="confirmLabel"></span>
  368. </header>
  369. <footer>
  370. <button type="submit" id="confirmButton"></button>
  371. <button id="cancelButton"></button>
  372. </footer>
  373. </form>
  374. </div>
  375. <div id="formPromptContainer" class="popup">
  376. <form class="popup-content">
  377. <header>
  378. <span id="promptLabel"></span>
  379. </header>
  380. <main><input id="promptInput" type="text"></main>
  381. <footer>
  382. <button type="submit" id="promptConfirmButton"></button>
  383. <button id="promptCancelButton"></button>
  384. </footer>
  385. </form>
  386. </div>
  387. </main>
  388. <script src="/dist/chrome-browser-polyfill.js"></script>
  389. <script type="module" src="../bg/ui-options.js"></script>
  390. </body>
  391. </html>