Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: background.js

Issue 29478597: Issue 5326 - General tab (HTML, strings and functionality) (Closed)
Patch Set: Created Aug. 16, 2017, 2:12 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | locale/en-US/new-options.json » ('j') | locale/en-US/new-options.json » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: background.js
===================================================================
--- a/background.js
+++ b/background.js
@@ -102,7 +102,8 @@
notifications_showui: params.showNotificationUI,
shouldShowBlockElementMenu: true,
show_devtools_panel: true,
- subscriptions_exceptionsurl: "https://easylist-downloads.adblockplus.org/exceptionrules.txt"
+ subscriptions_exceptionsurl: "https://easylist-downloads.adblockplus.org/exceptionrules.txt",
+ subscriptions_exceptionsurl_privacy: "https://easylist-downloads.adblockplus.org/exceptionrules-privacy.txt"
};
for (let key of Object.keys(prefs))
{
@@ -141,6 +142,15 @@
this._lastDownload = 1234;
this.homepage = "https://easylist.adblockplus.org/";
this.downloadStatus = params.downloadStatus;
+
+ if (this.url == prefs.subscriptions_exceptionsurl)
+ {
+ this.title = "Allow non-intrusive advertising";
+ }
+ else if (this.url == prefs.subscriptions_exceptionsurl_privacy)
+ {
+ this.title = "Allow only nonintrusive ads that are privacy-friendly";
+ }
}
Subscription.prototype =
{
@@ -442,6 +452,7 @@
"https://easylist-downloads.adblockplus.org/easylistgermany+easylist.txt",
"https://easylist-downloads.adblockplus.org/exceptionrules.txt",
"https://easylist-downloads.adblockplus.org/fanboy-social.txt",
+ "https://easylist-downloads.adblockplus.org/antiadblockfilters.txt",
"~user~786254"
];
let knownSubscriptions = Object.create(null);
« no previous file with comments | « no previous file | locale/en-US/new-options.json » ('j') | locale/en-US/new-options.json » ('J')

Powered by Google App Engine
This is Rietveld