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

Commit

Permalink
AA related changes
Browse files Browse the repository at this point in the history
  • Loading branch information
uBlockAdmin committed Feb 12, 2019
1 parent 6e6b61a commit cf5241a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
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

0 comments on commit cf5241a

Please sign in to comment.