| LEFT | RIGHT |
| 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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 if (this.tracer) | 493 if (this.tracer) |
| 494 { | 494 { |
| 495 browser.runtime.sendMessage({ | 495 browser.runtime.sendMessage({ |
| 496 type: "devtools.traceElemHide", | 496 type: "devtools.traceElemHide", |
| 497 selectors: [], | 497 selectors: [], |
| 498 filters | 498 filters |
| 499 }); | 499 }); |
| 500 } | 500 } |
| 501 }, | 501 }, |
| 502 | 502 |
| 503 apply({trace, inline, inlineEmulated, selectors, emulatedPatterns} = {}) | 503 apply({trace, inline, inlineEmulated, selectors, emulatedPatterns = []}) |
| 504 { | 504 { |
| 505 if (this.tracer) | 505 if (this.tracer) |
| 506 this.tracer.disconnect(); | 506 this.tracer.disconnect(); |
| 507 this.tracer = null; | 507 this.tracer = null; |
| 508 | 508 |
| 509 if (trace) | 509 if (trace) |
| 510 this.tracer = new ElementHidingTracer(); | 510 this.tracer = new ElementHidingTracer(); |
| 511 | 511 |
| 512 this.inline = inline; | 512 this.inline = inline; |
| 513 this.inlineEmulated = !!inlineEmulated; | 513 this.inlineEmulated = !!inlineEmulated; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 let element = event.target; | 549 let element = event.target; |
| 550 if (/^i?frame$/.test(element.localName)) | 550 if (/^i?frame$/.test(element.localName)) |
| 551 checkCollapse(element); | 551 checkCollapse(element); |
| 552 }, true); | 552 }, true); |
| 553 } | 553 } |
| 554 | 554 |
| 555 window.checkCollapse = checkCollapse; | 555 window.checkCollapse = checkCollapse; |
| 556 window.elemhide = elemhide; | 556 window.elemhide = elemhide; |
| 557 window.typeMap = typeMap; | 557 window.typeMap = typeMap; |
| 558 window.getURLsFromElement = getURLsFromElement; | 558 window.getURLsFromElement = getURLsFromElement; |
| LEFT | RIGHT |