Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
Merge branch 'v0.9.5.3'
Browse files Browse the repository at this point in the history
* v0.9.5.3:
  AA related changes
  Turn off AA by default
  • Loading branch information
uBlockAdmin committed Feb 12, 2019
2 parents a5ef451 + cf5241a commit d16553e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
1 change: 1 addition & 0 deletions assets/ublock/filter-lists.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"homeURL": "https://easylist-downloads.adblockplus.org/easylist.txt"
},
"easylist-downloads.adblockplus.org/exceptionrules.txt": {
"off": true,
"title": "Acceptable Ads",
"group": "ads",
"homeURL": "https://easylist-downloads.adblockplus.org/exceptionrules.txt"
Expand Down
2 changes: 1 addition & 1 deletion src/js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ return {

// so that I don't have to care for last comma
dummy: 0,
turnOffAA: false
turnOffAA: true
};

/******************************************************************************/
Expand Down
5 changes: 3 additions & 2 deletions src/js/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,10 @@ var onInstalled = function() {
}

if(!firstInstall) {
µb.turnOffAA = true;
return;
}
} else {
µb.turnOffAA = false;
}
vAPI.storage.get('stats',onDataReceived);
};
vAPI.storage.get('extensionLastVersion', onVersionRead);
Expand Down
8 changes: 3 additions & 5 deletions src/js/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,9 @@
}
availableLists[location] = entry;
}
if(µb.turnOffAA) {
let locationOfAA = 'assets/thirdparties/easylist-downloads.adblockplus.org/exceptionrules.txt';
if(availableLists.hasOwnProperty(locationOfAA) !== false) {
availableLists[locationOfAA].off = true;
}
let locationOfAA = 'assets/thirdparties/easylist-downloads.adblockplus.org/exceptionrules.txt';
if(availableLists.hasOwnProperty(locationOfAA) !== false) {
availableLists[locationOfAA].off = µb.turnOffAA;
}
// Now get user's selection of lists
vAPI.storage.preferences.get(
Expand Down

1 comment on commit d16553e

@jcvr1994
Copy link

Choose a reason for hiding this comment

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

Upload new version on Google Chrome Web Store

Please sign in to comment.