Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
sync patches
Browse files Browse the repository at this point in the history
  • Loading branch information
jspenguin2017 committed Jan 26, 2019
1 parent a9e4500 commit 14ec3fa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
15 changes: 8 additions & 7 deletions patches/20_0_configuration_tweaks.patch
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,21 @@ index 33f776a2..8c57ce57 100644
updaterUpdated = [],
updaterFetched = new Set(),
diff --git a/src/js/background.js b/src/js/background.js
index b15b2dc9..fc9fe882 100644
index 3b89d552..33de1cce 100644
--- a/src/js/background.js
+++ b/src/js/background.js
@@ -41,15 +41,15 @@ const µBlock = (function() { // jshint ignore:line
@@ -41,8 +41,8 @@ const µBlock = (function() { // jshint ignore:line
const hiddenSettingsDefault = {
assetFetchTimeout: 30,
autoCommentFilterTemplate: '{{date}} {{origin}}',
- autoUpdateAssetFetchPeriod: 120,
- autoUpdatePeriod: 7,
+ autoUpdateAssetFetchPeriod: 300,
+ autoUpdatePeriod: 4,
cacheStorageAPI: 'unset',
cacheStorageCompression: true,
cacheControlForFirefox1376932: 'no-cache, no-store, must-revalidate',
debugScriptlets: false,
@@ -50,7 +50,7 @@ const µBlock = (function() { // jshint ignore:line
disableWebAssembly: false,
ignoreRedirectFilters: false,
ignoreScriptInjectFilters: false,
Expand All @@ -43,7 +44,7 @@ index b15b2dc9..fc9fe882 100644
nanoIgnoreThirdPartyWhitelist: false,
nanoMakeThirdPartyFiltersPrivileged: false,
nanoMakeUserFiltersPrivileged: false,
@@ -65,6 +65,7 @@ const µBlock = (function() { // jshint ignore:line
@@ -66,6 +66,7 @@ const µBlock = (function() { // jshint ignore:line
'chrome-extension-scheme',
'chrome-scheme',
'moz-extension-scheme',
Expand Down Expand Up @@ -78,10 +79,10 @@ index 1a99a0fb..aa382f03 100644
'no-scripting: behind-the-scene false'
].join('\n'),
diff --git a/src/js/storage.js b/src/js/storage.js
index 08725775..4cf72776 100644
index b8b543d4..6f13dee2 100644
--- a/src/js/storage.js
+++ b/src/js/storage.js
@@ -1322,7 +1322,7 @@
@@ -1323,7 +1323,7 @@
next = 0;
var µb = µBlock;
µb.assets.updateStart({
Expand All @@ -90,7 +91,7 @@ index 08725775..4cf72776 100644
});
}, updateDelay);
};
@@ -1420,7 +1420,7 @@
@@ -1421,7 +1421,7 @@
this.loadFilterLists();
}
if ( this.userSettings.autoUpdate ) {
Expand Down
4 changes: 2 additions & 2 deletions patches/20_1_header_parsing.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/src/js/storage.js b/src/js/storage.js
index 4cf72776..643811b2 100644
index 6f13dee2..bda5ebcf 100644
--- a/src/js/storage.js
+++ b/src/js/storage.js
@@ -804,15 +804,33 @@
@@ -805,15 +805,33 @@
}
// Extract update frequency information
let matches = head.match(/(?:^|\n)(?:!|# )[\t ]*Expires[\t ]*:[\t ]*(\d+)[\t ]*(h)?/i);
Expand Down

0 comments on commit 14ec3fa

Please sign in to comment.