This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
const XPATH_FILTER = "//*[contains(text(), '1º piano') or contains(text(), '2º piano') or contains(text(), '3º piano') or contains(text(), 'Piano rialzato')]/ancestor::article[contains(@class, 'item')]"; | |
const result = document.evaluate(XPATH_FILTER, document, null, XPathResult.ANY_TYPE, null); | |
try { | |
const nodesToBeRemoved = []; | |
let node = null; | |
while (node = result.iterateNext()) { |
OlderNewer