options.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. </head>
  8. <body>
  9. <h3>Options</h3>
  10. <main>
  11. <details>
  12. <summary>User interface</summary>
  13. <div class="option">
  14. <label for="contextMenuEnabledInput">add entry in the context menu</label>
  15. <input type="checkbox" id="contextMenuEnabledInput">
  16. </div>
  17. <div class="option">
  18. <label for="shadowEnabledInput">overlay a shadow on the page during processing</label>
  19. <input type="checkbox" id="shadowEnabledInput">
  20. </div>
  21. <div class="option">
  22. <label for="displayInfobarInput">display an infobar when viewing archives</label>
  23. <input type="checkbox" id="displayInfobarInput">
  24. </div>
  25. <div class="option">
  26. <label for="displayStatsInput">display stats in the console after processing</label>
  27. <input type="checkbox" id="displayStatsInput">
  28. </div>
  29. </details>
  30. <details>
  31. <summary>File name</summary>
  32. <div class="option">
  33. <label for="appendSaveDateInput">append the save date to the file name</label>
  34. <input type="checkbox" id="appendSaveDateInput">
  35. </div>
  36. <div class="option">
  37. <label for="confirmFilenameInput">enter file name before saving the page</label>
  38. <input type="checkbox" id="confirmFilenameInput">
  39. </div>
  40. </details>
  41. <details>
  42. <summary>Page content</summary>
  43. <div class="option">
  44. <label for="compressHTMLInput">compress HTML</label>
  45. <input type="checkbox" id="compressHTMLInput">
  46. </div>
  47. <div class="option">
  48. <label for="removeImportsInput">remove HTML imports</label>
  49. <input type="checkbox" id="removeImportsInput">
  50. </div>
  51. <div class="option">
  52. <label for="removeFramesInput">remove frames</label>
  53. <input type="checkbox" id="removeFramesInput">
  54. </div>
  55. <div class="option">
  56. <label for="removeHiddenElementsInput">remove hidden elements</label>
  57. <input type="checkbox" id="removeHiddenElementsInput">
  58. </div>
  59. <div class="option">
  60. <label for="saveRawPageInput">save raw page</label>
  61. <input type="checkbox" id="saveRawPageInput">
  62. </div>
  63. </details>
  64. <details>
  65. <summary>Pages resources</summary>
  66. <div class="option">
  67. <label for="removeScriptsInput">remove scripts</label>
  68. <input type="checkbox" id="removeScriptsInput">
  69. </div>
  70. <div class="option">
  71. <label for="removeVideoSrcInput">remove video sources</label>
  72. <input type="checkbox" id="removeVideoSrcInput">
  73. </div>
  74. <div class="option">
  75. <label for="removeAudioSrcInput">remove audio sources</label>
  76. <input type="checkbox" id="removeAudioSrcInput">
  77. </div>
  78. <div class="option">
  79. <label for="compressCSSInput">compress CSS</label>
  80. <input type="checkbox" id="compressCSSInput">
  81. </div>
  82. <div class="option">
  83. <label for="removeUnusedCSSRulesInput">remove unused CSS rules</label>
  84. <input type="checkbox" id="removeUnusedCSSRulesInput">
  85. </div>
  86. <div class="option">
  87. <label for="lazyLoadImagesInput">save lazy loaded images</label>
  88. <input type="checkbox" id="lazyLoadImagesInput">
  89. </div>
  90. <div class="option">
  91. <label for="maxResourceSizeEnabledInput">set a maximum size for embedded resources</label>
  92. <input type="checkbox" id="maxResourceSizeEnabledInput">
  93. </div>
  94. <div class="option second-level">
  95. <label for="maxResourceSizeInput">maximum size (Mb)</label>
  96. <input type="number" id="maxResourceSizeInput" min="1">
  97. </div>
  98. </details>
  99. <div class="option bottom">
  100. <a href="help.html" target="SingleFileHelpPage">help</a>
  101. <button id="resetButton" title="Reset all the options to default values">Reset</button>
  102. </div>
  103. </main>
  104. <script type="text/javascript" src="/lib/browser-polyfill/custom-browser-polyfill.js"></script>
  105. <script type="text/javascript" src="../bg/options.js"></script>
  106. </body>
  107. </html>