Fix-update The Hindu (menu)

This commit is contained in:
magnolia1234 2020-10-04 08:46:46 +02:00
parent dcfc66dca6
commit 41f0a40534
6 changed files with 22 additions and 12 deletions

View file

@ -347,6 +347,7 @@ Also you can enable Googlebot user-agent or disable Javascript for (sub)domain(s
### Troubleshooting ### Troubleshooting
* This add-on works best alongside the adblocker [uBlock Origin](https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/). * 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. * Make sure the (new) site is checked under Options.
* You will be logged out for most of the sites you have checked. * 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). * 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).

View file

@ -60,6 +60,7 @@ var allow_cookies = [
'newrepublic.com', 'newrepublic.com',
'nknews.org', 'nknews.org',
'noordhollandsdagblad.nl', 'noordhollandsdagblad.nl',
'nrz.de',
'nytimes.com', 'nytimes.com',
'nzz.ch', 'nzz.ch',
'parool.nl', 'parool.nl',
@ -82,6 +83,8 @@ var allow_cookies = [
'washingtonpost.com', 'washingtonpost.com',
'waz.de', 'waz.de',
'worldpoliticsreview.com', 'worldpoliticsreview.com',
'wp.de',
'wr.de',
'zeit.de', 'zeit.de',
] ]
@ -226,7 +229,7 @@ var blockedRegexes = {
'telegraph.co.uk': /.+\.tinypass\.com\/.+/, 'telegraph.co.uk': /.+\.tinypass\.com\/.+/,
'theage.com.au': /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/, 'theage.com.au': /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/,
'thedailybeast.com': /.+\.tinypass\.com\/.+/, '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\/.+/, 'thenation.com': /.+\.tinypass\.com\/.+/,
'valeursactuelles.com': /.+\.qiota\.com\/.+/, 'valeursactuelles.com': /.+\.qiota\.com\/.+/,
'variety.com': /cdn\.cxense\.com/, 'variety.com': /cdn\.cxense\.com/,

View file

@ -11,6 +11,7 @@ Add Westfaelische Rundschau
Fix-update Australian Financial Review (images) Fix-update Australian Financial Review (images)
Fix-update Domani (Italy) Fix-update Domani (Italy)
Fix-update Globe and Mail (FF for Android v68) Fix-update Globe and Mail (FF for Android v68)
Fix-update The Hindu (menu)
Fix-update WSJ Fix-update WSJ
Fix custom sites Googlebot-fix (after reload) Fix custom sites Googlebot-fix (after reload)

View file

@ -3,7 +3,7 @@ var ext_api = (typeof browser === 'object') ? browser : chrome;
var domain; var domain;
// clean local storage of sites (with an exemption for hold-list) // 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)){ if (!matchDomain(arr_localstorage_hold)){
window.localStorage.clear(); window.localStorage.clear();
} }
@ -269,12 +269,18 @@ else if (matchDomain('ft.com')) {
} }
else if (matchDomain("thehindu.com")) { else if (matchDomain("thehindu.com")) {
document.addEventListener('DOMContentLoaded', () => { let counter = document.querySelector('#test');
let counter = document.querySelector('#test'); removeDOMElement(counter);
let co_banner = document.querySelector('.co-banner'); function hindu_main() {
let support = document.querySelector('div.support-jlm'); document.addEventListener('bpc_event', function (e) {
removeDOMElement(counter, co_banner, support); if (window) {
}); window.Adblock = false;
window.isNonSubcribed = false;
}
})
}
insert_script(hindu_main);
document.dispatchEvent(new CustomEvent('bpc_event', {}));
} }
else if (matchDomain("nytimes.com")) { else if (matchDomain("nytimes.com")) {
@ -1132,7 +1138,7 @@ else if (matchDomain("stocknews.com")) {
blurmes[i].setAttribute('id', 'blurmenot' + i); 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 obfuscated_elems = document.querySelectorAll('.obfuscated');
let parser = new DOMParser(); let parser = new DOMParser();
for (let obfuscated_elem of obfuscated_elems) { for (let obfuscated_elem of obfuscated_elems) {

View file

@ -283,7 +283,6 @@
"*://*.qiota.com/*", "*://*.qiota.com/*",
"*://*.tinypass.com/*", "*://*.tinypass.com/*",
"*://*.tribdss.com/*", "*://*.tribdss.com/*",
"*://ajax.cloudflare.com/*",
"*://*.ampproject.org/*", "*://*.ampproject.org/*",
"*://*.bwbx.io/*", "*://*.bwbx.io/*",
"*://*.cedsdigital.it/*", "*://*.cedsdigital.it/*",
@ -319,5 +318,5 @@
"webRequest", "webRequest",
"webRequestBlocking" "webRequestBlocking"
], ],
"version": "1.8.8.5" "version": "1.8.8.6"
} }

View file

@ -40,5 +40,5 @@
"webRequest", "webRequest",
"webRequestBlocking" "webRequestBlocking"
], ],
"version": "1.8.8.5" "version": "1.8.8.6"
} }