rules: - domains: - thestar.com - niagarafallsreview.ca - stcatharinesstandard.ca - thepeterboroughexaminer.com - therecord.com - thespec.com - wellandtribune.ca responsemodifications: - name: DeleteLocalStorageData - name: DeleteSessionStorageData - name: InjectScriptAfterDOMContentLoaded params: - | const paywall = document.querySelectorAll('div.subscriber-offers'); paywall.forEach(el => { el.remove(); }); const subscriber_only = document.querySelectorAll('div.subscriber-only'); for (const elem of subscriber_only) { if (elem.classList.contains('encrypted-content') && dompurify_loaded) { const parser = new DOMParser(); const doc = parser.parseFromString('
' + DOMPurify.sanitize(unscramble(elem.innerText)) + '
', 'text/html'); const content_new = doc.querySelector('div'); elem.parentNode.replaceChild(content_new, elem); } elem.removeAttribute('style'); elem.removeAttribute('class'); } const banners = document.querySelectorAll('div.subscription-required, div.redacted-overlay, div.subscriber-hide, div.tnt-ads-container'); banners.forEach(el => { el.remove(); }); const ads = document.querySelectorAll('div.tnt-ads-container, div[class*="adLabelWrapper"]'); ads.forEach(el => { el.remove(); }); const recommendations = document.querySelectorAll('div[id^="tncms-region-article"]'); recommendations.forEach(el => { el.remove(); });