options.html 9.6 KB

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