OLD | NEW |
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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 { | 534 { |
535 host, | 535 host, |
536 whitelisted: isWhitelisted | 536 whitelisted: isWhitelisted |
537 } | 537 } |
538 ] | 538 ] |
539 } | 539 } |
540 }, "*"); | 540 }, "*"); |
541 }, 1000); | 541 }, 1000); |
542 } | 542 } |
543 | 543 |
544 ext.devtools.onCreated.addListener((panel) => | 544 chrome.devtools.onCreated.addListener((panel) => |
545 { | 545 { |
546 // blocked request | 546 // blocked request |
547 panel.sendMessage({ | 547 panel.sendMessage({ |
548 type: "add-record", | 548 type: "add-record", |
549 request: { | 549 request: { |
550 url: "http://adserver.example.com/ad_banner.png", | 550 url: "http://adserver.example.com/ad_banner.png", |
551 type: "IMAGE", | 551 type: "IMAGE", |
552 docDomain: "example.com" | 552 docDomain: "example.com" |
553 }, | 553 }, |
554 filter: { | 554 filter: { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
611 }, | 611 }, |
612 filter: { | 612 filter: { |
613 text: "||example.com/some-annoying-popup$popup", | 613 text: "||example.com/some-annoying-popup$popup", |
614 whitelisted: false, | 614 whitelisted: false, |
615 userDefined: true, | 615 userDefined: true, |
616 subscription: null | 616 subscription: null |
617 } | 617 } |
618 }); | 618 }); |
619 }); | 619 }); |
620 }()); | 620 }()); |
OLD | NEW |