options.html 17 KB

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