mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 05:37:47 +01:00
Fix-update The Hindu (menu)
This commit is contained in:
parent
dcfc66dca6
commit
41f0a40534
6 changed files with 22 additions and 12 deletions
|
@ -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).
|
||||
|
|
|
@ -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/,
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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"
|
||||
}
|
|
@ -40,5 +40,5 @@
|
|||
"webRequest",
|
||||
"webRequestBlocking"
|
||||
],
|
||||
"version": "1.8.8.5"
|
||||
"version": "1.8.8.6"
|
||||
}
|
Loading…
Reference in a new issue