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

Side by Side Diff: background.js

Issue 29573905: Issue 4580 - Replace ext.devtools with devtools Base URL: https://hg.adblockplus.org/adblockplusui/
Patch Set: Created Oct. 11, 2017, 10:38 p.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 | devtools-panel.js » ('j') | devtools-panel.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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }());
OLDNEW
« no previous file with comments | « no previous file | devtools-panel.js » ('j') | devtools-panel.js » ('J')

Powered by Google App Engine
This is Rietveld