options.html 15 KB

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