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

Commit

Permalink
draft
Browse files Browse the repository at this point in the history
  • Loading branch information
jspenguin2017 committed Jan 26, 2019
1 parent 42c1447 commit a9e4500
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Restarting fresh

A patch driven fork of uBlock Origin.

Upstream commit pin: `3dac43eab6096ad57ec372eb67cf9bd5bb012718` or `1.18.0`
Upstream commit pin: `54eb996e105e7ef33d33f531a435057830f5ec8e` or `1.18.1rc0`

**Please submit issues to the
[Nano Core issues tracker](https://github.com/NanoAdblocker/NanoCore/issues).**
Expand Down
4 changes: 2 additions & 2 deletions patches/integration/10_0_load_scripts.patch
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ index 29b9a297..b6f4e760 100644
<script src="js/hntrie.js"></script>
<script src="js/utils.js"></script>
diff --git a/src/js/background.js b/src/js/background.js
index 8f4a70a9..631b33df 100644
index 37dff9d9..239411bb 100644
--- a/src/js/background.js
+++ b/src/js/background.js
@@ -189,3 +189,7 @@ const µBlock = (function() { // jshint ignore:line
@@ -190,3 +190,7 @@ const µBlock = (function() { // jshint ignore:line
})();

/******************************************************************************/
Expand Down
16 changes: 8 additions & 8 deletions patches/integration/10_1_compile_flags.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/src/js/background.js b/src/js/background.js
index 631b33df..d133d38b 100644
index 239411bb..33b4b81b 100644
--- a/src/js/background.js
+++ b/src/js/background.js
@@ -50,6 +50,9 @@ const µBlock = (function() { // jshint ignore:line
@@ -51,6 +51,9 @@ const µBlock = (function() { // jshint ignore:line
ignoreRedirectFilters: false,
ignoreScriptInjectFilters: false,
manualUpdateAssetFetchPeriod: 500,
Expand All @@ -12,7 +12,7 @@ index 631b33df..d133d38b 100644
popupFontSize: 'unset',
requestJournalProcessPeriod: 1000,
strictBlockingBypassDuration: 120,
@@ -155,6 +158,7 @@ const µBlock = (function() { // jshint ignore:line
@@ -156,6 +159,7 @@ const µBlock = (function() { // jshint ignore:line
assetsBootstrapLocation: 'assets/assets.json',

userFiltersPath: 'user-filters',
Expand Down Expand Up @@ -60,10 +60,10 @@ index 59518f05..3b4e6aff 100644
s = s.slice(2);
}
diff --git a/src/js/storage.js b/src/js/storage.js
index c02bf557..e31c90c0 100644
index 52b3eef6..fa381653 100644
--- a/src/js/storage.js
+++ b/src/js/storage.js
@@ -428,7 +428,8 @@
@@ -429,7 +429,8 @@
const onSaved = ( ) => {
const compiledFilters = this.compileFilters(
filters,
Expand All @@ -73,7 +73,7 @@ index c02bf557..e31c90c0 100644
);
const snfe = this.staticNetFilteringEngine;
const cfe = this.cosmeticFilteringEngine;
@@ -823,7 +824,7 @@
@@ -824,7 +825,7 @@

/******************************************************************************/

Expand All @@ -82,7 +82,7 @@ index c02bf557..e31c90c0 100644
let writer = new this.CompiledLineIO.Writer();

// Populate the writer with information potentially useful to the
@@ -834,6 +835,9 @@
@@ -835,6 +836,9 @@
}
}

Expand All @@ -92,7 +92,7 @@ index c02bf557..e31c90c0 100644
// Useful references:
// https://adblockplus.org/en/filter-cheatsheet
// https://adblockplus.org/en/filters
@@ -893,6 +897,8 @@
@@ -894,6 +898,8 @@
staticNetFilteringEngine.compile(line, writer);
}

Expand Down
12 changes: 6 additions & 6 deletions patches/integration/10_2_extended_resources.patch
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ index 57441bf8..e9282765 100644
// Ignore instances of exception filter with negated hostnames,
// because there is no way to create an exception to an exception.
diff --git a/src/js/storage.js b/src/js/storage.js
index e31c90c0..e02a0d9e 100644
index fa381653..7a139c41 100644
--- a/src/js/storage.js
+++ b/src/js/storage.js
@@ -973,7 +973,7 @@
@@ -974,7 +974,7 @@

/******************************************************************************/

Expand All @@ -73,7 +73,7 @@ index e31c90c0..e02a0d9e 100644
var µb = this,
content = '';

@@ -988,9 +988,28 @@
@@ -989,9 +989,28 @@
onDone();
};

Expand Down Expand Up @@ -104,7 +104,7 @@ index e31c90c0..e02a0d9e 100644
}
if ( µb.hiddenSettings.userResourcesLocation === 'unset' ) {
return onDone();
@@ -998,16 +1017,24 @@
@@ -999,16 +1018,24 @@
µb.assets.fetchText(µb.hiddenSettings.userResourcesLocation, onUserResourcesLoaded);
};

Expand Down Expand Up @@ -133,7 +133,7 @@ index e31c90c0..e02a0d9e 100644
µb.redirectEngine.resourcesFromSelfie(onSelfieReady);
};

@@ -1287,7 +1314,10 @@
@@ -1288,7 +1315,10 @@
}
}
// https://github.com/gorhill/uBlock/issues/2594
Expand All @@ -145,7 +145,7 @@ index e31c90c0..e02a0d9e 100644
if (
this.hiddenSettings.ignoreRedirectFilters === true &&
this.hiddenSettings.ignoreScriptInjectFilters === true
@@ -1328,6 +1358,11 @@
@@ -1329,6 +1359,11 @@
if ( cached ) {
this.loadRedirectResources(details.content);
}
Expand Down
14 changes: 7 additions & 7 deletions patches/integration/10_6_lint_filters.patch
Original file line number Diff line number Diff line change
Expand Up @@ -336,10 +336,10 @@ index fdffb2c0..462a64fe 100644
}

diff --git a/src/js/storage.js b/src/js/storage.js
index e02a0d9e..08725775 100644
index 7a139c41..b8b543d4 100644
--- a/src/js/storage.js
+++ b/src/js/storage.js
@@ -393,7 +393,11 @@
@@ -394,7 +394,11 @@
// https://github.com/gorhill/uBlock/issues/1022
// Be sure to end with an empty line.
content = content.trim();
Expand All @@ -352,7 +352,7 @@ index e02a0d9e..08725775 100644
this.assets.put(this.userFiltersPath, content, callback);
this.removeCompiledFilterList(this.userFiltersPath);
};
@@ -837,6 +841,12 @@
@@ -838,6 +842,12 @@

const nanoKey = nanoAssetKeyOverride || details.assetKey;
nano.cf.update(nanoKey);
Expand All @@ -365,7 +365,7 @@ index e02a0d9e..08725775 100644

// Useful references:
// https://adblockplus.org/en/filter-cheatsheet
@@ -850,6 +860,10 @@
@@ -851,6 +861,10 @@
const lineIter = new this.LineIterator(this.processDirectives(rawText));

while ( lineIter.eot() === false ) {
Expand All @@ -376,7 +376,7 @@ index e02a0d9e..08725775 100644
// rhill 2014-04-18: The trim is important here, as without it there
// could be a lingering `\r` which would cause problems in the
// following parsing code.
@@ -858,7 +872,11 @@
@@ -859,7 +873,11 @@

// Strip comments
const c = line.charAt(0);
Expand All @@ -389,15 +389,15 @@ index e02a0d9e..08725775 100644

// Parse or skip cosmetic filters
// All cosmetic filters are caught here
@@ -879,6 +897,7 @@
@@ -880,6 +898,7 @@
const pos = line.indexOf('#');
if ( pos !== -1 && reIsWhitespaceChar.test(line.charAt(pos - 1)) ) {
line = line.slice(0, pos).trim();
+ nano.flintw('nano_l_filter_inline_comment');
}

// https://github.com/gorhill/httpswitchboard/issues/15
@@ -888,15 +907,24 @@
@@ -889,15 +908,24 @@
// Ignore hosts file redirect configuration
// 127.0.0.1 localhost
// 255.255.255.255 broadcasthost
Expand Down
4 changes: 2 additions & 2 deletions patches/integration/30_1_editor_settings.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/src/js/background.js b/src/js/background.js
index d133d38b..b15b2dc9 100644
index 33b4b81b..3b89d552 100644
--- a/src/js/background.js
+++ b/src/js/background.js
@@ -87,6 +87,8 @@ const µBlock = (function() { // jshint ignore:line
@@ -88,6 +88,8 @@ const µBlock = (function() { // jshint ignore:line
hyperlinkAuditingDisabled: true,
ignoreGenericCosmeticFilters: false,
largeMediaSize: 50,
Expand Down
6 changes: 3 additions & 3 deletions term/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const assert = require("assert");
* Version number.
* @const {string}
*/
exports.version = "1.0.0.85";
exports.version = "1.0.0.86";

/**
* The based on string.
Expand All @@ -47,8 +47,8 @@ exports.version = "1.0.0.85";
exports.based_on = [
"uBlock Origin",

"Version/1.18.0",
"Commit/3dac43e",
"Version/1.18.1rc0",
"Commit/54eb996",

"UserCSS/disabled",
].join(" ");
Expand Down

0 comments on commit a9e4500

Please sign in to comment.