diff --git a/README.md b/README.md index 18a06cc..eac96e7 100644 --- a/README.md +++ b/README.md @@ -347,6 +347,7 @@ Also you can enable Googlebot user-agent or disable Javascript for (sub)domain(s ### Troubleshooting * This add-on works best alongside the adblocker [uBlock Origin](https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/). +* If a site doesn't work, try turning off uBlock and refreshing. * Make sure the (new) site is checked under Options. * You will be logged out for most of the sites you have checked. * If you live in the EU, also consider installing the extension [I don't care about cookies](https://addons.mozilla.org/en-US/firefox/addon/i-dont-care-about-cookies) in order to remove cookie warnings (or add filter [Easylist Cookies](https://easylist-downloads.adblockplus.org/easylist-cookie.txt) | [I don't care about cookies custom filter](https://www.i-dont-care-about-cookies.eu/abp) to uBlock Origin). diff --git a/background.js b/background.js index 60d898d..7622570 100644 --- a/background.js +++ b/background.js @@ -60,6 +60,7 @@ var allow_cookies = [ 'newrepublic.com', 'nknews.org', 'noordhollandsdagblad.nl', +'nrz.de', 'nytimes.com', 'nzz.ch', 'parool.nl', @@ -82,6 +83,8 @@ var allow_cookies = [ 'washingtonpost.com', 'waz.de', 'worldpoliticsreview.com', +'wp.de', +'wr.de', 'zeit.de', ] @@ -226,7 +229,7 @@ var blockedRegexes = { 'telegraph.co.uk': /.+\.tinypass\.com\/.+/, 'theage.com.au': /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/, 'thedailybeast.com': /.+\.tinypass\.com\/.+/, -'thehindu.com': /ajax\.cloudflare\.com\/cdn-cgi\/scripts\/.+\/cloudflare-static\/rocket-loader\.min\.js/, +'thehindu.com': /(cdn\.cxense\.com|.+\.tinypass\.com\/.+)/, 'thenation.com': /.+\.tinypass\.com\/.+/, 'valeursactuelles.com': /.+\.qiota\.com\/.+/, 'variety.com': /cdn\.cxense\.com/, diff --git a/changelog.txt b/changelog.txt index 61f037a..7fd5dc3 100644 --- a/changelog.txt +++ b/changelog.txt @@ -11,6 +11,7 @@ Add Westfaelische Rundschau Fix-update Australian Financial Review (images) Fix-update Domani (Italy) Fix-update Globe and Mail (FF for Android v68) +Fix-update The Hindu (menu) Fix-update WSJ Fix custom sites Googlebot-fix (after reload) diff --git a/contentScript.js b/contentScript.js index 5b9cf44..a83837b 100644 --- a/contentScript.js +++ b/contentScript.js @@ -3,7 +3,7 @@ var ext_api = (typeof browser === 'object') ? browser : chrome; var domain; // clean local storage of sites (with an exemption for hold-list) -var arr_localstorage_hold = ['elmundo.es', 'nknews.org', 'seekingalpha.com', 'sfchronicle.com', 'waz.de']; +var arr_localstorage_hold = ['elmundo.es', 'nknews.org', 'nrz.de', 'seekingalpha.com', 'sfchronicle.com', 'thehindu.com', 'waz.de', 'wp.de', 'wr.de']; if (!matchDomain(arr_localstorage_hold)){ window.localStorage.clear(); } @@ -269,12 +269,18 @@ else if (matchDomain('ft.com')) { } else if (matchDomain("thehindu.com")) { - document.addEventListener('DOMContentLoaded', () => { - let counter = document.querySelector('#test'); - let co_banner = document.querySelector('.co-banner'); - let support = document.querySelector('div.support-jlm'); - removeDOMElement(counter, co_banner, support); - }); + let counter = document.querySelector('#test'); + removeDOMElement(counter); + function hindu_main() { + document.addEventListener('bpc_event', function (e) { + if (window) { + window.Adblock = false; + window.isNonSubcribed = false; + } + }) + } + insert_script(hindu_main); + document.dispatchEvent(new CustomEvent('bpc_event', {})); } else if (matchDomain("nytimes.com")) { @@ -1132,7 +1138,7 @@ else if (matchDomain("stocknews.com")) { blurmes[i].setAttribute('id', 'blurmenot' + i); } -else if (matchDomain(["nrz.de", "wp.de", "wr.de", "waz.de"])) { +else if (matchDomain(["nrz.de", "waz.de", "wp.de", "wr.de"])) { let obfuscated_elems = document.querySelectorAll('.obfuscated'); let parser = new DOMParser(); for (let obfuscated_elem of obfuscated_elems) { diff --git a/lp/manifest.json b/lp/manifest.json index 1fcb26d..f423680 100644 --- a/lp/manifest.json +++ b/lp/manifest.json @@ -283,7 +283,6 @@ "*://*.qiota.com/*", "*://*.tinypass.com/*", "*://*.tribdss.com/*", - "*://ajax.cloudflare.com/*", "*://*.ampproject.org/*", "*://*.bwbx.io/*", "*://*.cedsdigital.it/*", @@ -319,5 +318,5 @@ "webRequest", "webRequestBlocking" ], - "version": "1.8.8.5" + "version": "1.8.8.6" } \ No newline at end of file diff --git a/manifest.json b/manifest.json index 493f231..9cee7f4 100644 --- a/manifest.json +++ b/manifest.json @@ -40,5 +40,5 @@ "webRequest", "webRequestBlocking" ], - "version": "1.8.8.5" + "version": "1.8.8.6" } \ No newline at end of file