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

Side by Side Diff: background.js

Issue 29773630: Issue 5761 - Changes require paths to relative (Closed) Base URL: https://hg.adblockplus.org/adblockplusui/
Patch Set: Created May 8, 2018, 1:03 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | lib/antiadblockInit.js » ('j') | messageResponder.js » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 const subscriptionServer = "https://easylist-downloads.adblockplus.org"; 83 const subscriptionServer = "https://easylist-downloads.adblockplus.org";
84 const easyListGermany = `${subscriptionServer}/easylistgermany+easylist.txt`; 84 const easyListGermany = `${subscriptionServer}/easylistgermany+easylist.txt`;
85 const acceptableAds = `${subscriptionServer}/exceptionrules.txt`; 85 const acceptableAds = `${subscriptionServer}/exceptionrules.txt`;
86 const acceptableAdsPrivacyFriendly = 86 const acceptableAdsPrivacyFriendly =
87 `${subscriptionServer}/exceptionrules-privacy-friendly.txt`; 87 `${subscriptionServer}/exceptionrules-privacy-friendly.txt`;
88 const redirectLink = "https://adblockplus.org/redirect?link="; 88 const redirectLink = "https://adblockplus.org/redirect?link=";
89 89
90 let modules = {}; 90 let modules = {};
91 window.require = function(module) 91 window.require = function(module)
92 { 92 {
93 return modules[module]; 93 return modules[module.substr(module.lastIndexOf("/") + 1)];
Jon Sonesen 2018/05/08 01:04:26 this is a bit hacky and doesn't help if multiple m
94 }; 94 };
95 95
96 modules.utils = { 96 modules.utils = {
97 Utils: { 97 Utils: {
98 getDocLink(link) 98 getDocLink(link)
99 { 99 {
100 return `${redirectLink}${encodeURIComponent(link)}`; 100 return `${redirectLink}${encodeURIComponent(link)}`;
101 }, 101 },
102 get appLocale() 102 get appLocale()
103 { 103 {
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 }, 630 },
631 filter: { 631 filter: {
632 text: "||example.com/some-annoying-popup$popup", 632 text: "||example.com/some-annoying-popup$popup",
633 whitelisted: false, 633 whitelisted: false,
634 userDefined: true, 634 userDefined: true,
635 subscription: null 635 subscription: null
636 } 636 }
637 }); 637 });
638 }); 638 });
639 }()); 639 }());
OLDNEW
« no previous file with comments | « no previous file | lib/antiadblockInit.js » ('j') | messageResponder.js » ('J')

Powered by Google App Engine
This is Rietveld