options.html 12 KB

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