Browse Source

set remove frame option to true by default

Gildas 7 years ago
parent
commit
fcca62785d
3 changed files with 11 additions and 11 deletions
  1. 1 1
      extension/core/bg/config.js
  2. 6 6
      extension/ui/pages/help.html
  3. 4 4
      extension/ui/pages/options.html

+ 1 - 1
extension/core/bg/config.js

@@ -25,7 +25,7 @@ singlefile.config = (() => {
 	const DEFAULT_CONFIG = {
 		removeHiddenElements: false,
 		removeUnusedCSSRules: true,
-		removeFrames: true,
+		removeFrames: false,
 		removeImports: true,
 		removeScripts: true,
 		rawDocument: false,

+ 6 - 6
extension/ui/pages/help.html

@@ -92,9 +92,9 @@
 					</li>
 
 					<li>
-						<span class="option">remove frames</span>
-						<p>Check this option to remove all frame and iframe elements. This can considerably reduce the size of the file without
-							altering the document most of the time.</p>
+						<span class="option">remove unused CSS rules</span>
+						<p>Check this option to remove all CSS rules that do not match any element. Checking this this option should not alter
+							the document and can considerably reduce the size of the file.</p>
 						<p class="notice">It is recommended to
 							<u>check</u> this option</p>
 					</li>
@@ -115,9 +115,9 @@
 					</li>
 
 					<li>
-						<span class="option">remove unused CSS rules</span>
-						<p>Check this option to remove all CSS rules that do not match any element. Checking this this option should not alter
-							the document and can considerably reduce the size of the file.</p>
+						<span class="option">remove frames</span>
+						<p>Check this option to remove all frame and iframe elements. This can considerably reduce the size of the file without
+							altering the document most of the time.</p>
 						<p class="notice">It is recommended to
 							<u>check</u> this option</p>
 					</li>

+ 4 - 4
extension/ui/pages/options.html

@@ -39,8 +39,8 @@
 				<input type="checkbox" id="compressInput">
 			</div>
 			<div class="option">
-				<label for="removeFramesInput">remove frames</label>
-				<input type="checkbox" id="removeFramesInput">
+				<label for="removeUnusedCSSRulesInput">remove unused CSS rules</label>
+				<input type="checkbox" id="removeUnusedCSSRulesInput">
 			</div>
 			<div class="option">
 				<label for="removeImportsInput">remove HTML imports</label>
@@ -51,8 +51,8 @@
 				<input type="checkbox" id="removeScriptsInput">
 			</div>
 			<div class="option">
-				<label for="removeUnusedCSSRulesInput">remove unused CSS rules</label>
-				<input type="checkbox" id="removeUnusedCSSRulesInput">
+				<label for="removeFramesInput">remove frames</label>
+				<input type="checkbox" id="removeFramesInput">
 			</div>
 			<div class="option">
 				<label for="removeHiddenElementsInput">remove hidden elements</label>