options.html 11 KB

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