options.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  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. </details>
  48. <details>
  49. <summary id="filenameLabel"></summary>
  50. <div class="option vertical">
  51. <label for="filenameTemplateInput" id="filenameTemplateLabel"></label>
  52. <input type="text" id="filenameTemplateInput">
  53. </div>
  54. <div class="option">
  55. <label for="confirmFilenameInput" id="confirmFilenameLabel"></label>
  56. <input type="checkbox" id="confirmFilenameInput">
  57. </div>
  58. <div class="option">
  59. <label for="filenameConflictActionInput" id="filenameConflictActionLabel"></label>
  60. <select id="filenameConflictActionInput">
  61. <option id="filenameConflictActionUniquifyLabel" value="uniquify"></option>
  62. <option id="filenameConflictActionOverwriteLabel" value="overwrite"></option>
  63. <option id="filenameConflictActionPromptLabel" value="prompt"></option>
  64. </select>
  65. </div>
  66. </details>
  67. <details>
  68. <summary id="htmlContentLabel"></summary>
  69. <div class="option">
  70. <label for="compressHTMLInput" id="compressHTMLLabel"></label>
  71. <input type="checkbox" id="compressHTMLInput">
  72. </div>
  73. <div class="option">
  74. <label for="removeImportsInput" id="removeImportsLabel"></label>
  75. <input type="checkbox" id="removeImportsInput">
  76. </div>
  77. <div class="option">
  78. <label for="removeHiddenElementsInput" id="removeHiddenElementsLabel"></label>
  79. <input type="checkbox" id="removeHiddenElementsInput">
  80. </div>
  81. <div class="option">
  82. <label for="removeFramesInput" id="removeFramesLabel"></label>
  83. <input type="checkbox" id="removeFramesInput">
  84. </div>
  85. </details>
  86. <details>
  87. <summary id="stylesheetsLabel"></summary>
  88. <div class="option">
  89. <label for="compressCSSInput" id="compressCSSLabel"></label>
  90. <input type="checkbox" id="compressCSSInput">
  91. </div>
  92. <div class="option">
  93. <label for="removeUnusedStylesInput" id="removeUnusedStylesLabel"></label>
  94. <input type="checkbox" id="removeUnusedStylesInput">
  95. </div>
  96. <div class="option">
  97. <label for="removeAlternativeMediasInput" id="removeAlternativeMediasLabel"></label>
  98. <input type="checkbox" id="removeAlternativeMediasInput">
  99. </div>
  100. </details>
  101. <details>
  102. <summary id="imagesLabel"></summary>
  103. <div class="option">
  104. <label for="groupDuplicateImagesInput" id="groupDuplicateImagesLabel"></label>
  105. <input type="checkbox" id="groupDuplicateImagesInput">
  106. </div>
  107. <div class="option">
  108. <label for="loadDeferredImagesInput" id="loadDeferredImagesLabel"></label>
  109. <input type="checkbox" id="loadDeferredImagesInput">
  110. </div>
  111. <div class="option second-level">
  112. <label for="loadDeferredImagesMaxIdleTimeInput" id="loadDeferredImagesMaxIdleTimeLabel"></label>
  113. <input type="number" class="large-input" id="loadDeferredImagesMaxIdleTimeInput" step="100">
  114. </div>
  115. <div class="option">
  116. <label for="removeAlternativeImagesInput" id="removeAlternativeImagesLabel"></label>
  117. <input type="checkbox" id="removeAlternativeImagesInput">
  118. </div>
  119. </details>
  120. <details>
  121. <summary id="fontsLabel"></summary>
  122. <div class="option">
  123. <label for="removeUnusedFontsInput" id="removeUnusedFontsLabel"></label>
  124. <input type="checkbox" id="removeUnusedFontsInput">
  125. </div>
  126. <div class="option">
  127. <label for="removeAlternativeFontsInput" id="removeAlternativeFontsLabel"></label>
  128. <input type="checkbox" id="removeAlternativeFontsInput">
  129. </div>
  130. </details>
  131. <details>
  132. <summary id="otherResourcesLabel"></summary>
  133. <div class="option">
  134. <label for="removeScriptsInput" id="removeScriptsLabel"></label>
  135. <input type="checkbox" id="removeScriptsInput">
  136. </div>
  137. <div class="option">
  138. <label for="removeVideoSrcInput" id="removeVideoLabel"></label>
  139. <input type="checkbox" id="removeVideoSrcInput">
  140. </div>
  141. <div class="option">
  142. <label for="removeAudioSrcInput" id="removeAudioLabel"></label>
  143. <input type="checkbox" id="removeAudioSrcInput">
  144. </div>
  145. </details>
  146. <details>
  147. <summary id="autoSaveLabel"></summary>
  148. <div class="option">
  149. <label for="autoSaveLoadOrUnloadInput" id="autoSaveLoadOrUnloadLabel"></label>
  150. <input type="checkbox" id="autoSaveLoadOrUnloadInput">
  151. </div>
  152. <div class="option">
  153. <label for="autoSaveLoadInput" id="autoSaveLoadLabel"></label>
  154. <input type="checkbox" id="autoSaveLoadInput">
  155. </div>
  156. <div class="option">
  157. <label for="autoSaveUnloadInput" id="autoSaveUnloadLabel"></label>
  158. <input type="checkbox" id="autoSaveUnloadInput">
  159. </div>
  160. <div class="option">
  161. <label for="autoSaveDelayInput" id="autoSaveDelayLabel"></label>
  162. <input type="number" id="autoSaveDelayInput" min="0">
  163. </div>
  164. <div class="option">
  165. <label for="autoSaveRepeatInput" id="autoSaveRepeatLabel"></label>
  166. <input type="checkbox" id="autoSaveRepeatInput">
  167. </div>
  168. <div class="option second-level">
  169. <label for="autoSaveRepeatDelayInput" id="autoSaveRepeatDelayLabel"></label>
  170. <input type="number" id="autoSaveRepeatDelayInput" min="1">
  171. </div>
  172. </details>
  173. <details>
  174. <summary id="miscLabel"></summary>
  175. <div class="option">
  176. <label for="backgroundSaveInput" id="backgroundSaveLabel"></label>
  177. <input type="checkbox" id="backgroundSaveInput">
  178. </div>
  179. <div class="option">
  180. <label for="displayStatsInput" id="displayStatsLabel"></label>
  181. <input type="checkbox" id="displayStatsInput">
  182. </div>
  183. <div class="option">
  184. <label for="maxResourceSizeEnabledInput" id="setMaxResourceSizeLabel"></label>
  185. <input type="checkbox" id="maxResourceSizeEnabledInput">
  186. </div>
  187. <div class="option second-level">
  188. <label for="maxResourceSizeInput" id="maxResourceSizeLabel"></label>
  189. <input type="number" id="maxResourceSizeInput" min="1">
  190. </div>
  191. <div class="option">
  192. <label for="saveRawPageInput" id="saveRawPageLabel"></label>
  193. <input type="checkbox" id="saveRawPageInput">
  194. </div>
  195. <div class="option">
  196. <label for="saveToClipboardInput" id="saveToClipboardLabel"></label>
  197. <input type="checkbox" id="saveToClipboardInput">
  198. </div>
  199. </details>
  200. <details>
  201. <summary id="autoSettingsLabel"></summary>
  202. <div class="rules-table-container compact">
  203. <div class="thead">
  204. <div class="tr">
  205. <span class="th" id="autoSettingsUrlLabel"></span>
  206. <span class="th" id="autoSettingsProfileLabel"></span>
  207. <span class="th rule-autosave-profile" id="autoSettingsAutoSaveProfileLabel"></span>
  208. <span class="th"><button id="rulesDeleteAllButton"><img
  209. src="../resources/button_delete_all.png"></button></span>
  210. </div>
  211. </div>
  212. <div class="rules-table">
  213. <div class="rules-data">
  214. </div>
  215. <div hidden class="tr rule-view">
  216. <span class="td rule-url"></span>
  217. <span class="td rule-profile"></span>
  218. <span class="td rule-autosave-profile"></span>
  219. <span class="td"><button class="rule-update-button"><img
  220. src="../resources/button_edit.png"></button> <button class="rule-delete-button"><img
  221. src="../resources/button_delete.png"></button></span>
  222. </div>
  223. <form class="tr rule-create">
  224. <span class="td rule-url"><input type="text" id="ruleUrlInput"
  225. placeholder="Type a complete or partial URL (e.g. example.com)"></span>
  226. <span class="td rule-profile"><select id="ruleProfileInput"></select></span>
  227. <span class="td rule-autosave-profile"><select id="ruleAutoSaveProfileInput"></select></span>
  228. <span class="td"><button id="ruleAddButton" disabled type="submit"><img
  229. src="../resources/button_new.png"></button></span>
  230. </form>
  231. <form hidden class="tr rule-edit">
  232. <span class="td rule-url"><input type="text" id="ruleEditUrlInput"></span>
  233. <span class="td rule-profile"><select id="ruleEditProfileInput"></select></span>
  234. <span class="td rule-autosave-profile"><select
  235. id="ruleEditAutoSaveProfileInput"></select></span>
  236. <span class="td"><button id="ruleEditButton" type="submit"><img
  237. src="../resources/button_ok.png"></button></span>
  238. </form>
  239. </div>
  240. </div>
  241. <div class="option">
  242. <label for="showAllProfilesInput" id="showAllProfilesLabel"></label>
  243. <input type="checkbox" id="showAllProfilesInput">
  244. </div>
  245. <div class="option">
  246. <label for="showAutoSaveProfileInput" id="showAutoSaveProfileLabel"></label>
  247. <input type="checkbox" id="showAutoSaveProfileInput">
  248. </div>
  249. </details>
  250. <div class="option bottom">
  251. <a href="help.html" target="SingleFileHelpPage" id="helpLabel"></a>
  252. <div class="buttons">
  253. <button id="importButton"></button>
  254. <button id="exportButton"></button>
  255. <button id="resetButton"></button>
  256. <input type="file" id="fileInput" hidden>
  257. </div>
  258. </div>
  259. <div id="formResetContainer" class="popup" hidden>
  260. <form class="popup-content">
  261. <header>
  262. <span id="resetConfirmLabel"></span>
  263. </header>
  264. <footer>
  265. <button type="submit" id="resetAllButton"></button>
  266. <button id="resetCurrentButton"></button>
  267. <button id="resetCancelButton"></button>
  268. </footer>
  269. </form>
  270. </div>
  271. <div id="formConfirmContainer" class="popup" hidden>
  272. <form class="popup-content">
  273. <header>
  274. <span id="confirmLabel"></span>
  275. </header>
  276. <footer>
  277. <button type="submit" id="confirmButton"></button>
  278. <button id="cancelButton"></button>
  279. </footer>
  280. </form>
  281. </div>
  282. <div id="formPromptContainer" class="popup" hidden>
  283. <form class="popup-content">
  284. <header>
  285. <span id="promptLabel"></span>
  286. </header>
  287. <main><input id="promptInput" type="text"></main>
  288. <footer>
  289. <button type="submit" id="promptConfirmButton"></button>
  290. <button id="promptCancelButton"></button>
  291. </footer>
  292. </form>
  293. </div>
  294. </main>
  295. <script type="text/javascript" src="/lib/browser-polyfill/chrome-browser-polyfill.js"></script>
  296. <script type="text/javascript" src="../bg/ui-options.js"></script>
  297. </body>
  298. </html>