|
|
@@ -8,77 +8,81 @@
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
- <div>
|
|
|
- <div id="popupContent">
|
|
|
- <h3>Options</h3>
|
|
|
- <h4>User interface</h4>
|
|
|
- <div class="option">
|
|
|
- <label for="contextMenuEnabledInput">add entry in the context menu</label>
|
|
|
- <input type="checkbox" id="contextMenuEnabledInput">
|
|
|
- </div>
|
|
|
- <div class="option">
|
|
|
- <label for="shadowEnabledInput">overlay a shadow on the page during processing</label>
|
|
|
- <input type="checkbox" id="shadowEnabledInput">
|
|
|
- </div>
|
|
|
- <h4>File name</h4>
|
|
|
- <div class="option">
|
|
|
- <label for="appendSaveDateInput">append the save date to the file name</label>
|
|
|
- <input type="checkbox" id="appendSaveDateInput">
|
|
|
- </div>
|
|
|
- <div class="option">
|
|
|
- <label for="confirmFilenameInput">enter file name before saving the page</label>
|
|
|
- <input type="checkbox" id="confirmFilenameInput">
|
|
|
- </div>
|
|
|
- <h4>Page content</h4>
|
|
|
- <div class="option">
|
|
|
- <label for="lazyLoadImagesInput">save lazy loaded images</label>
|
|
|
- <input type="checkbox" id="lazyLoadImagesInput">
|
|
|
- </div>
|
|
|
- <div class="option">
|
|
|
- <label for="compressHTMLInput">compress HTML</label>
|
|
|
- <input type="checkbox" id="compressHTMLInput">
|
|
|
- </div>
|
|
|
- <div class="option">
|
|
|
- <label for="compressCSSInput">compress CSS</label>
|
|
|
- <input type="checkbox" id="compressCSSInput">
|
|
|
- </div>
|
|
|
- <div class="option">
|
|
|
- <label for="removeUnusedCSSRulesInput">remove unused CSS rules</label>
|
|
|
- <input type="checkbox" id="removeUnusedCSSRulesInput">
|
|
|
- </div>
|
|
|
- <div class="option">
|
|
|
- <label for="removeImportsInput">remove HTML imports</label>
|
|
|
- <input type="checkbox" id="removeImportsInput">
|
|
|
- </div>
|
|
|
- <div class="option">
|
|
|
- <label for="removeScriptsInput">remove scripts</label>
|
|
|
- <input type="checkbox" id="removeScriptsInput">
|
|
|
- </div>
|
|
|
- <div class="option">
|
|
|
- <label for="removeFramesInput">remove frames</label>
|
|
|
- <input type="checkbox" id="removeFramesInput">
|
|
|
- </div>
|
|
|
- <div class="option">
|
|
|
- <label for="removeHiddenElementsInput">remove hidden elements</label>
|
|
|
- <input type="checkbox" id="removeHiddenElementsInput">
|
|
|
- </div>
|
|
|
- <div class="option">
|
|
|
- <label for="saveRawPageInput">save raw page</label>
|
|
|
- <input type="checkbox" id="saveRawPageInput">
|
|
|
- </div>
|
|
|
- <div class="option">
|
|
|
- <label for="maxResourceSizeEnabledInput">set a maximum size for embedded resources</label>
|
|
|
- <input type="checkbox" id="maxResourceSizeEnabledInput">
|
|
|
- </div>
|
|
|
- <div class="option second-level">
|
|
|
- <label for="maxResourceSizeInput">maximum size (Mb)</label>
|
|
|
- <input type="number" id="maxResourceSizeInput" min="1">
|
|
|
- </div>
|
|
|
- <div class="option bottom">
|
|
|
- <a href="help.html" target="SingleFileHelpPage">help</a>
|
|
|
- <button id="resetButton" title="Reset all the options to default values">Reset</button>
|
|
|
- </div>
|
|
|
+ <details>
|
|
|
+ <summary>User interface</summary>
|
|
|
+ <div class="option">
|
|
|
+ <label for="contextMenuEnabledInput">add entry in the context menu</label>
|
|
|
+ <input type="checkbox" id="contextMenuEnabledInput">
|
|
|
</div>
|
|
|
+ <div class="option">
|
|
|
+ <label for="shadowEnabledInput">overlay a shadow on the page during processing</label>
|
|
|
+ <input type="checkbox" id="shadowEnabledInput">
|
|
|
+ </div>
|
|
|
+ </details>
|
|
|
+ <details>
|
|
|
+ <summary>File name</summary>
|
|
|
+ <div class="option">
|
|
|
+ <label for="appendSaveDateInput">append the save date to the file name</label>
|
|
|
+ <input type="checkbox" id="appendSaveDateInput">
|
|
|
+ </div>
|
|
|
+ <div class="option">
|
|
|
+ <label for="confirmFilenameInput">enter file name before saving the page</label>
|
|
|
+ <input type="checkbox" id="confirmFilenameInput">
|
|
|
+ </div>
|
|
|
+ </details>
|
|
|
+ <details>
|
|
|
+ <summary>Page content</summary>
|
|
|
+ <div class="option">
|
|
|
+ <label for="compressHTMLInput">compress HTML</label>
|
|
|
+ <input type="checkbox" id="compressHTMLInput">
|
|
|
+ </div>
|
|
|
+ <div class="option">
|
|
|
+ <label for="removeImportsInput">remove HTML imports</label>
|
|
|
+ <input type="checkbox" id="removeImportsInput">
|
|
|
+ </div>
|
|
|
+ <div class="option">
|
|
|
+ <label for="removeFramesInput">remove frames</label>
|
|
|
+ <input type="checkbox" id="removeFramesInput">
|
|
|
+ </div>
|
|
|
+ <div class="option">
|
|
|
+ <label for="removeHiddenElementsInput">remove hidden elements</label>
|
|
|
+ <input type="checkbox" id="removeHiddenElementsInput">
|
|
|
+ </div>
|
|
|
+ <div class="option">
|
|
|
+ <label for="saveRawPageInput">save raw page</label>
|
|
|
+ <input type="checkbox" id="saveRawPageInput">
|
|
|
+ </div>
|
|
|
+ </details>
|
|
|
+ <details>
|
|
|
+ <summary>Pages resources</summary>
|
|
|
+ <div class="option">
|
|
|
+ <label for="removeScriptsInput">remove scripts</label>
|
|
|
+ <input type="checkbox" id="removeScriptsInput">
|
|
|
+ </div>
|
|
|
+ <div class="option">
|
|
|
+ <label for="compressCSSInput">compress CSS</label>
|
|
|
+ <input type="checkbox" id="compressCSSInput">
|
|
|
+ </div>
|
|
|
+ <div class="option">
|
|
|
+ <label for="removeUnusedCSSRulesInput">remove unused CSS rules</label>
|
|
|
+ <input type="checkbox" id="removeUnusedCSSRulesInput">
|
|
|
+ </div>
|
|
|
+ <div class="option">
|
|
|
+ <label for="lazyLoadImagesInput">save lazy loaded images</label>
|
|
|
+ <input type="checkbox" id="lazyLoadImagesInput">
|
|
|
+ </div>
|
|
|
+ <div class="option">
|
|
|
+ <label for="maxResourceSizeEnabledInput">set a maximum size for embedded resources</label>
|
|
|
+ <input type="checkbox" id="maxResourceSizeEnabledInput">
|
|
|
+ </div>
|
|
|
+ <div class="option second-level">
|
|
|
+ <label for="maxResourceSizeInput">maximum size (Mb)</label>
|
|
|
+ <input type="number" id="maxResourceSizeInput" min="1">
|
|
|
+ </div>
|
|
|
+ </details>
|
|
|
+ <div class="option bottom">
|
|
|
+ <a href="help.html" target="SingleFileHelpPage">help</a>
|
|
|
+ <button id="resetButton" title="Reset all the options to default values">Reset</button>
|
|
|
</div>
|
|
|
<script type="text/javascript" src="/lib/browser-polyfill/custom-browser-polyfill.js"></script>
|
|
|
<script type="text/javascript" src="../bg/options.js"></script>
|