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

Delta Between Two Patch Sets: new-options.js

Issue 29558637: Issue 5806 - Acceptable ads being added to the UI on load (Closed)
Left Patch Set: Created Sept. 28, 2017, 4:29 p.m.
Right Patch Set: Created Sept. 28, 2017, 5:20 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-present eyeo GmbH 3 * Copyright (C) 2006-present eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 1104 matching lines...) Expand 10 before | Expand all | Expand 10 after
1115 1115
1116 // Load user subscriptions 1116 // Load user subscriptions
1117 ext.backgroundPage.sendMessage({ 1117 ext.backgroundPage.sendMessage({
1118 type: "subscriptions.get", 1118 type: "subscriptions.get",
1119 downloadable: true 1119 downloadable: true
1120 }, 1120 },
1121 (subscriptions) => 1121 (subscriptions) =>
1122 { 1122 {
1123 for (let subscription of subscriptions) 1123 for (let subscription of subscriptions)
1124 onSubscriptionMessage("added", subscription); 1124 onSubscriptionMessage("added", subscription);
1125
1126 setAcceptableAds();
1125 }); 1127 });
1126 }); 1128 });
1127 }); 1129 });
1128 } 1130 }
1129 1131
1130 function addWhitelistedDomain() 1132 function addWhitelistedDomain()
1131 { 1133 {
1132 let domain = E("whitelisting-textbox"); 1134 let domain = E("whitelisting-textbox");
1133 for (let whitelistItem of collections.whitelist.items) 1135 for (let whitelistItem of collections.whitelist.items)
1134 { 1136 {
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
1401 }); 1403 });
1402 ext.backgroundPage.sendMessage({ 1404 ext.backgroundPage.sendMessage({
1403 type: "subscriptions.listen", 1405 type: "subscriptions.listen",
1404 filter: ["added", "disabled", "homepage", "lastDownload", "removed", 1406 filter: ["added", "disabled", "homepage", "lastDownload", "removed",
1405 "title", "downloadStatus", "downloading"] 1407 "title", "downloadStatus", "downloading"]
1406 }); 1408 });
1407 1409
1408 window.addEventListener("DOMContentLoaded", onDOMLoaded, false); 1410 window.addEventListener("DOMContentLoaded", onDOMLoaded, false);
1409 window.addEventListener("hashchange", onHashChange, false); 1411 window.addEventListener("hashchange", onHashChange, false);
1410 } 1412 }
LEFTRIGHT
« no previous file | no next file » | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

Powered by Google App Engine
This is Rietveld