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

Commit

Permalink
Sync 1.17.5b10+1 (#4)
Browse files Browse the repository at this point in the history
* sync patches

* resync patches

* resync patches

* draft

* resync patch

* draft

* resync patches

* sync patch

* bump version

* fix logger icon

* accept 'doc' as type

* fix NanoAdblocker/NanoCore#229

* update title casing

* new SVG icon

* resync patch, need to fix popup later

* finish resync patch

* fix build script

* fix icon

* fix power button

* draft

* fix refresh button

* fix icons

* ----- Cut Here -----
  • Loading branch information
jspenguin2017 authored Dec 26, 2018
1 parent ecde887 commit a2793e0
Show file tree
Hide file tree
Showing 30 changed files with 325 additions and 436 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: `c3b0fd31f64bd7ffecdd282fb1208fe07aac3eb0` or `1.17.4`
Upstream commit pin: `0341a5e1f995ec44ba39ebf72480e7e40f27e717` or `1.17.5rc0+3`

**Please submit issues to the
[Nano Core issues tracker](https://github.com/NanoAdblocker/NanoCore/issues).**
Expand Down
2 changes: 0 additions & 2 deletions config.nano.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@

"./patches/30_0_link_resources.patch",

"./patches/90_0_micro_optimizations.patch",

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

],
Expand Down
2 changes: 1 addition & 1 deletion patches/00_0_textarea_spacing.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/src/css/common.css b/src/css/common.css
index a483215d..3683de3c 100644
index c6499ef5..a09ae70a 100644
--- a/src/css/common.css
+++ b/src/css/common.css
@@ -25,6 +25,7 @@ code {
Expand Down
27 changes: 13 additions & 14 deletions patches/20_0_configuration_tweaks.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/src/js/assets.js b/src/js/assets.js
index b6821bbd..26bf4ada 100644
index 23a12902..3d66f772 100644
--- a/src/js/assets.js
+++ b/src/js/assets.js
@@ -285,7 +285,7 @@ var registerAssetSource = function(assetKey, dict) {
@@ -311,7 +311,7 @@ const registerAssetSource = function(assetKey, dict) {
entry.contentURL = [];
}
if ( typeof entry.updateAfter !== 'number' ) {
Expand All @@ -11,7 +11,7 @@ index b6821bbd..26bf4ada 100644
}
if ( entry.submitter ) {
entry.submitTime = Date.now(); // To detect stale entries
@@ -902,7 +902,7 @@ api.rmrf = function() {
@@ -898,7 +898,7 @@ api.rmrf = function() {
// Asset updater area.
var updaterStatus,
updaterTimer,
Expand All @@ -21,21 +21,20 @@ index b6821bbd..26bf4ada 100644
updaterUpdated = [],
updaterFetched = new Set(),
diff --git a/src/js/background.js b/src/js/background.js
index 17e5b034..88d5542e 100644
index f1d0e741..6f66b049 100644
--- a/src/js/background.js
+++ b/src/js/background.js
@@ -40,8 +40,8 @@ const µBlock = (function() { // jshint ignore:line
@@ -40,15 +40,15 @@ const µBlock = (function() { // jshint ignore:line

const hiddenSettingsDefault = {
assetFetchTimeout: 30,
- autoUpdateAssetFetchPeriod: 120,
- autoUpdatePeriod: 7,
+ autoUpdateAssetFetchPeriod: 300,
+ autoUpdatePeriod: 4,
benchmarkingPane: false,
cacheStorageCompression: true,
cacheControlForFirefox1376932: 'no-cache, no-store, must-revalidate',
@@ -49,7 +49,7 @@ const µBlock = (function() { // jshint ignore:line
debugScriptlets: false,
disableWebAssembly: false,
ignoreRedirectFilters: false,
ignoreScriptInjectFilters: false,
Expand All @@ -44,7 +43,7 @@ index 17e5b034..88d5542e 100644
nanoIgnoreThirdPartyWhitelist: false,
nanoMakeThirdPartyFiltersPrivileged: false,
nanoMakeUserFiltersPrivileged: false,
@@ -65,6 +65,7 @@ const µBlock = (function() { // jshint ignore:line
@@ -64,6 +64,7 @@ const µBlock = (function() { // jshint ignore:line
'chrome-extension-scheme',
'chrome-scheme',
'moz-extension-scheme',
Expand All @@ -53,10 +52,10 @@ index 17e5b034..88d5542e 100644
'vivaldi-scheme',
'wyciwyg-scheme', // Firefox's "What-You-Cache-Is-What-You-Get"
diff --git a/src/js/start.js b/src/js/start.js
index 7307a494..1ed193cc 100644
index 1a99a0fb..aa382f03 100644
--- a/src/js/start.js
+++ b/src/js/start.js
@@ -223,13 +223,6 @@ var onUserSettingsReady = function(fetched) {
@@ -231,13 +231,6 @@ var onUserSettingsReady = function(fetched) {
µb.sessionURLFiltering.assign(µb.permanentURLFiltering);
µb.permanentSwitches.fromString(fetched.hostnameSwitchesString);
µb.sessionSwitches.assign(µb.permanentSwitches);
Expand All @@ -70,7 +69,7 @@ index 7307a494..1ed193cc 100644
};

/******************************************************************************/
@@ -316,6 +309,7 @@ var onSelectedFilterListsLoaded = function() {
@@ -324,6 +317,7 @@ var onSelectedFilterListsLoaded = function() {
].join('\n'),
'urlFilteringString': '',
'hostnameSwitchesString': [
Expand All @@ -79,10 +78,10 @@ index 7307a494..1ed193cc 100644
'no-scripting: behind-the-scene false'
].join('\n'),
diff --git a/src/js/storage.js b/src/js/storage.js
index acaa3e88..a0b69e06 100644
index f48ad6e0..edfbf6ef 100644
--- a/src/js/storage.js
+++ b/src/js/storage.js
@@ -1272,7 +1272,7 @@
@@ -1293,7 +1293,7 @@
next = 0;
var µb = µBlock;
µb.assets.updateStart({
Expand All @@ -91,7 +90,7 @@ index acaa3e88..a0b69e06 100644
});
}, updateDelay);
};
@@ -1367,7 +1367,7 @@
@@ -1391,7 +1391,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 a0b69e06..06eb54f6 100644
index edfbf6ef..17c14f2f 100644
--- a/src/js/storage.js
+++ b/src/js/storage.js
@@ -764,15 +764,33 @@
@@ -775,15 +775,33 @@
}
// Extract update frequency information
let matches = head.match(/(?:^|\n)(?:!|# )[\t ]*Expires[\t ]*:[\t ]*(\d+)[\t ]*(h)?/i);
Expand Down
6 changes: 3 additions & 3 deletions patches/20_3_reset_hard.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/src/js/messaging.js b/src/js/messaging.js
index bbc2212c..2becceb7 100644
index 3acd1d88..5c8ac0ab 100644
--- a/src/js/messaging.js
+++ b/src/js/messaging.js
@@ -846,11 +846,8 @@ var restoreUserData = function(request) {
@@ -851,11 +851,8 @@ var restoreUserData = function(request) {
vAPI.localStorage.removeItem('immediateHiddenSettings');
};

Expand All @@ -15,7 +15,7 @@ index bbc2212c..2becceb7 100644
let countdown = ( ) => {
count -= 1;
if ( count === 0 ) {
@@ -859,8 +856,7 @@ var resetUserData = function() {
@@ -864,8 +861,7 @@ var resetUserData = function() {
};
µb.cacheStorage.clear(countdown); // 1
vAPI.storage.clear(countdown); // 2
Expand Down
4 changes: 2 additions & 2 deletions patches/20_4_log_script_snippet_errors.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/src/js/scriptlet-filtering.js b/src/js/scriptlet-filtering.js
index a644d619..ca16cd0f 100644
index 86c31dd7..c4abf10d 100644
--- a/src/js/scriptlet-filtering.js
+++ b/src/js/scriptlet-filtering.js
@@ -187,7 +187,9 @@
@@ -195,7 +195,9 @@
content =
'try {\n' +
content.replace('{{nano}}', '') + '\n' +
Expand Down
8 changes: 4 additions & 4 deletions patches/20_6_warn_unsaved.patch
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ index 42ea241f..f81090b9 100644
uDom('#buttonPurgeAll').toggleClass(
'disabled',
diff --git a/src/js/dashboard.js b/src/js/dashboard.js
index f80e7724..ca676b2b 100644
index d038c5d0..5ec05c8b 100644
--- a/src/js/dashboard.js
+++ b/src/js/dashboard.js
@@ -62,7 +62,10 @@ let onTabClickHandler = function(e) {
Expand All @@ -42,7 +42,7 @@ index f80e7724..ca676b2b 100644
window.location.replace(url);
loadDashboardPanel();
}
@@ -85,4 +88,32 @@ loadDashboardPanel();
@@ -81,4 +84,32 @@ loadDashboardPanel();

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

Expand Down Expand Up @@ -76,7 +76,7 @@ index f80e7724..ca676b2b 100644
+
})();
diff --git a/src/js/dyna-rules.js b/src/js/dyna-rules.js
index 8ffe536b..09670b26 100644
index 5e36ce91..cf4fc938 100644
--- a/src/js/dyna-rules.js
+++ b/src/js/dyna-rules.js
@@ -25,6 +25,10 @@
Expand All @@ -90,7 +90,7 @@ index 8ffe536b..09670b26 100644
(function() {

/******************************************************************************/
@@ -348,6 +352,7 @@ var onTextChanged = (function() {
@@ -385,6 +389,7 @@ const onTextChanged = (function() {
input.setAttribute('disabled', '');
CodeMirror.commands.save = editSaveHandler;
}
Expand Down
70 changes: 0 additions & 70 deletions patches/90_0_micro_optimizations.patch

This file was deleted.

4 changes: 0 additions & 4 deletions patches/README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,3 @@ category because a pull request is opened upstream.
## Group `30`: User Interface Changes

`30_0_link_resources.patch`: Link useful resources in the dashboard.

## Group `90`: Other Changes

`90_0_micro_optimizations.patch`: Minor optimizations and typo fixes.
2 changes: 1 addition & 1 deletion patches/integration/00_1_version_parsing.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/platform/chromium/vapi-background.js b/platform/chromium/vapi-background.js
index c556ee59..0ae63186 100644
index 1df622c5..2d8f76c9 100644
--- a/platform/chromium/vapi-background.js
+++ b/platform/chromium/vapi-background.js
@@ -66,16 +66,9 @@ var noopFunc = function(){};
Expand Down
4 changes: 2 additions & 2 deletions patches/integration/00_2_vapi_icon.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/platform/chromium/vapi-background.js b/platform/chromium/vapi-background.js
index 0ae63186..d344fdca 100644
index 2d8f76c9..2696807d 100644
--- a/platform/chromium/vapi-background.js
+++ b/platform/chromium/vapi-background.js
@@ -647,10 +647,10 @@ vAPI.setIcon = (function() {
@@ -663,10 +663,10 @@ vAPI.setIcon = (function() {
' ({badge})';
const icons = [
{
Expand Down
43 changes: 41 additions & 2 deletions patches/integration/00_3_favicon.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/src/asset-viewer.html b/src/asset-viewer.html
index fbcadf5e..d2809138 100644
index 8d02d2e1..5459131a 100644
--- a/src/asset-viewer.html
+++ b/src/asset-viewer.html
@@ -8,7 +8,7 @@
Expand All @@ -11,8 +11,31 @@ index fbcadf5e..d2809138 100644
<style>
body {
border: 0;
diff --git a/src/css/logger-ui.css b/src/css/logger-ui.css
index ad99cacf..c606cc0e 100644
--- a/src/css/logger-ui.css
+++ b/src/css/logger-ui.css
@@ -51,6 +51,18 @@ textarea {
height: auto;
width: 1em;
}
+#nano_l_logger_popup_on, #nano_l_logger_popup_off {
+ filter: initial !important;
+ user-select: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ }
+#showpopup:not(.active) > #nano_l_logger_popup_on {
+ display: none;
+ }
+#showpopup.active > #nano_l_logger_popup_off {
+ display: none;
+ }
#info {
fill: #ccc;
padding-left: 0.5em;
diff --git a/src/dashboard.html b/src/dashboard.html
index 43329706..379240b9 100644
index 3e3106ad..14abf2d6 100644
--- a/src/dashboard.html
+++ b/src/dashboard.html
@@ -12,7 +12,7 @@
Expand All @@ -24,3 +47,19 @@ index 43329706..379240b9 100644
--><a class="tabButton" href="#settings.html" data-i18n="settingsPageName"></a><!--
--><a class="tabButton" href="#3p-filters.html" data-i18n="3pPageName"></a><!--
--><a class="tabButton" href="#1p-filters.html" data-i18n="1pPageName"></a><!--
diff --git a/src/logger-ui.html b/src/logger-ui.html
index 887c2ded..e786df6a 100644
--- a/src/logger-ui.html
+++ b/src/logger-ui.html
@@ -21,7 +21,10 @@
</select>
<span id="refresh" class="button fa-icon disabled needdom" data-i18n-title="loggerReloadTip">refresh</span>
<span id="showdom" class="button fa-icon disabled needdom" data-i18n-title="loggerDomInspectorTip">code</span>
- <span id="showpopup" class="button ubo-icon disabled needdom" data-i18n-title="loggerPopupPanelTip"><svg><use href="/img/ublock-defs.svg#ubo-solid"></use></svg></span>
+ <span id="showpopup" class="button ubo-icon disabled needdom" data-i18n-title="loggerPopupPanelTip">
+ <img id="nano_l_logger_popup_off" src="img/128_off.png">
+ <img id="nano_l_logger_popup_on" src="img/128_on.png">
+ </span>
<a id="info" class="button fa-icon" href="https://github.com/gorhill/uBlock/wiki/The-logger" target="_blank" data-i18n-title="loggerInfoTip">info-circle</a>
</div>

6 changes: 3 additions & 3 deletions patches/integration/10_0_load_scripts.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/src/background.html b/src/background.html
index fa1327b3..ef802e13 100644
index 29b9a297..b6f4e760 100644
--- a/src/background.html
+++ b/src/background.html
@@ -8,11 +8,14 @@
Expand All @@ -18,10 +18,10 @@ index fa1327b3..ef802e13 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 f0f5b794..2cf32f60 100644
index 86f1cd16..33c6b859 100644
--- a/src/js/background.js
+++ b/src/js/background.js
@@ -189,3 +189,7 @@ const µBlock = (function() { // jshint ignore:line
@@ -188,3 +188,7 @@ const µBlock = (function() { // jshint ignore:line
})();

/******************************************************************************/
Expand Down
Loading

1 comment on commit a2793e0

@jspenguin2017
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, it's 1.17.5rc0+3

Please sign in to comment.