options.html 12 KB

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