Fixed issue with enrolling users in Acceptable Ads. · uBlock-LLC/uBlock@c5308f1 · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content
This repository was archived by the owner on Sep 9, 2022. It is now read-only.

Commit c5308f1

Browse files
committed
Fixed issue with enrolling users in Acceptable Ads.
1 parent 5a71749 commit c5308f1

File tree

5 files changed

+22
-7
lines changed

5 files changed

+22
-7
lines changed

assets/ublock/filter-lists.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@
4444
"group": "ads",
4545
"homeURL": "https://easylist-downloads.adblockplus.org/easylist.txt"
4646
},
47+
"easylist-downloads.adblockplus.org/exceptionrules.txt": {
48+
"off": true,
49+
"title": "Acceptable Ads",
50+
"group": "ads",
51+
"homeURL": "https://easylist-downloads.adblockplus.org/exceptionrules.txt"
52+
},
4753
"abp-filters-anti-cv/english.txt": {
4854
"title": "ABP Anti-Circumvention Filter List",
4955
"group": "ads",
@@ -86,6 +92,7 @@
8692
"homeURL": "https://easylist-downloads.adblockplus.org/easylistitaly.txt"
8793
},
8894
"easylist-downloads.adblockplus.org/easyprivacy.txt": {
95+
"off": true,
8996
"title": "EasyPrivacy",
9097
"group": "privacy",
9198
"homeURL": "https://easylist-downloads.adblockplus.org/easyprivacy.txt"
@@ -169,6 +176,7 @@
169176
"homeURL": ""
170177
},
171178
"mirror1.malwaredomains.com/files/justdomains": {
179+
"off": true,
172180
"title": "Malware domains",
173181
"group": "malware",
174182
"homeURL": "https://mirror1.malwaredomains.com/files/justdomains"
@@ -294,6 +302,7 @@
294302
"homeURL": ""
295303
},
296304
"www.malwaredomainlist.com/hostslist/hosts.txt": {
305+
"off": true,
297306
"title": "Malware Domain List",
298307
"group": "malware",
299308
"homeURL": "http://www.malwaredomainlist.com/hostslist/hosts.txt"

platform/chromium/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 2,
33

44
"name": "uBlock",
5-
"version": "0.9.5.13",
5+
"version": "0.9.5.14",
66

77
"default_locale": "en",
88
"description": "__MSG_extShortDesc__",

src/js/background.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ return {
9191

9292
// read-only
9393
systemSettings: {
94-
compiledMagic: 'eopszukpnabe',
95-
selfieMagic: 'menhiasrxabe'
94+
compiledMagic: 'eopszukpsabe',
95+
selfieMagic: 'menhiasrsabe'
9696
},
9797
restoreBackupSettings: {
9898
lastRestoreFile: '',
@@ -147,7 +147,8 @@ return {
147147

148148
// so that I don't have to care for last comma
149149
dummy: 0,
150-
turnOffAA: true
150+
turnOffAA: true,
151+
versionUpdateTo13: false
151152
};
152153

153154
/******************************************************************************/

src/js/start.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ var onInstalled = function() {
206206
var onVersionRead = function(store) {
207207

208208
var lastVersion = store.extensionLastVersion || '0.0.0.0';
209-
209+
210210
var firstInstall = lastVersion === '0.0.0.0';
211211

212212
var onDataReceived = function(data) {
@@ -220,6 +220,9 @@ var onInstalled = function() {
220220
}
221221

222222
if(!firstInstall) {
223+
if(lastVersion == "0.9.5.12" || (lastVersion == "0.9.5.13" && vAPI.browserInfo.flavor == "Firefox")) {
224+
µb.versionUpdateTo13 = true;
225+
}
223226
return;
224227
} else {
225228
µb.turnOffAA = false;

src/js/storage.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@
192192
µBlock.getAvailableLists = function(callback) {
193193
var availableLists = {};
194194
var relocationMap = {};
195-
195+
var locationOfAA = 'assets/thirdparties/easylist-downloads.adblockplus.org/exceptionrules.txt';
196196
var fixLocation = function(location) {
197197
// https://github.com/uBlockAdmin/uBlock/issues/418
198198
// We now support built-in external filter lists
@@ -206,6 +206,9 @@
206206
var onSelectedListsLoaded = function(store) {
207207
var µb = µBlock;
208208
var lists = store.remoteBlacklists;
209+
if(lists.hasOwnProperty(locationOfAA) && µb.versionUpdateTo13) {
210+
delete lists[locationOfAA];
211+
}
209212
var locations = Object.keys(lists);
210213
var location, availableEntry, storedEntry;
211214
var off;
@@ -273,7 +276,6 @@
273276
}
274277
availableLists[location] = entry;
275278
}
276-
let locationOfAA = 'assets/thirdparties/easylist-downloads.adblockplus.org/exceptionrules.txt';
277279
if(availableLists.hasOwnProperty(locationOfAA) !== false) {
278280
availableLists[locationOfAA].off = µb.turnOffAA;
279281
}

0 commit comments

Comments
 (0)

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.