Просмотр исходного кода

enable remove frames options by default

Gildas 7 лет назад
Родитель
Сommit
7d8faa7630
2 измененных файлов с 5 добавлено и 2 удалено
  1. 4 1
      extension/core/bg/config.js
  2. 1 1
      extension/ui/pages/help.html

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

@@ -25,7 +25,7 @@ singlefile.config = (() => {
 	const DEFAULT_CONFIG = {
 		removeHiddenElements: false,
 		removeUnusedCSSRules: true,
-		removeFrames: false,
+		removeFrames: true,
 		removeImports: true,
 		removeScripts: true,
 		rawDocument: false,
@@ -89,6 +89,9 @@ singlefile.config = (() => {
 		if (config.removeUnusedCSSRules === undefined) {
 			config.removeUnusedCSSRules = true;
 		}
+		if (config.removeFrames === undefined) {
+			config.removeFrames = true;
+		}
 	}
 
 	return {

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

@@ -119,7 +119,7 @@
 						<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>uncheck</u> this option</p>
+							<u>check</u> this option</p>
 					</li>
 
 					<li>