| 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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 242 | 242 | 
| 243             break nodes; | 243             break nodes; | 
| 244           } | 244           } | 
| 245         } | 245         } | 
| 246       } | 246       } | 
| 247     } | 247     } | 
| 248 | 248 | 
| 249     if (selectors.length > 0 || filters.length > 0) | 249     if (selectors.length > 0 || filters.length > 0) | 
| 250     { | 250     { | 
| 251       browser.runtime.sendMessage({ | 251       browser.runtime.sendMessage({ | 
| 252         type: "devtools.traceElemHide", | 252         type: "devlogger.traceElemHide", | 
| 253         selectors, filters | 253         selectors, filters | 
| 254       }); | 254       }); | 
| 255     } | 255     } | 
| 256   }, | 256   }, | 
| 257 | 257 | 
| 258   onTimeout() | 258   onTimeout() | 
| 259   { | 259   { | 
| 260     this.checkNodes(this.changedNodes, this.selectors); | 260     this.checkNodes(this.changedNodes, this.selectors); | 
| 261     this.changedNodes = []; | 261     this.changedNodes = []; | 
| 262     this.timeout = null; | 262     this.timeout = null; | 
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 481   }, | 481   }, | 
| 482 | 482 | 
| 483   hideElements(elements, filters) | 483   hideElements(elements, filters) | 
| 484   { | 484   { | 
| 485     for (let element of elements) | 485     for (let element of elements) | 
| 486       hideElement(element); | 486       hideElement(element); | 
| 487 | 487 | 
| 488     if (this.tracer) | 488     if (this.tracer) | 
| 489     { | 489     { | 
| 490       browser.runtime.sendMessage({ | 490       browser.runtime.sendMessage({ | 
| 491         type: "devtools.traceElemHide", | 491         type: "devlogger.traceElemHide", | 
| 492         selectors: [], | 492         selectors: [], | 
| 493         filters | 493         filters | 
| 494       }); | 494       }); | 
| 495     } | 495     } | 
| 496   }, | 496   }, | 
| 497 | 497 | 
| 498   apply() | 498   apply() | 
| 499   { | 499   { | 
| 500     browser.runtime.sendMessage({type: "elemhide.getSelectors"}, response => | 500     browser.runtime.sendMessage({type: "elemhide.getSelectors"}, response => | 
| 501     { | 501     { | 
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 537     let element = event.target; | 537     let element = event.target; | 
| 538     if (/^i?frame$/.test(element.localName)) | 538     if (/^i?frame$/.test(element.localName)) | 
| 539       checkCollapse(element); | 539       checkCollapse(element); | 
| 540   }, true); | 540   }, true); | 
| 541 } | 541 } | 
| 542 | 542 | 
| 543 window.checkCollapse = checkCollapse; | 543 window.checkCollapse = checkCollapse; | 
| 544 window.elemhide = elemhide; | 544 window.elemhide = elemhide; | 
| 545 window.typeMap = typeMap; | 545 window.typeMap = typeMap; | 
| 546 window.getURLsFromElement = getURLsFromElement; | 546 window.getURLsFromElement = getURLsFromElement; | 
| OLD | NEW | 
|---|