Add Hindu Tamil Thisai (India)

This commit is contained in:
magnolia1234 2023-06-25 09:55:49 +02:00
parent 286872a9cf
commit aa306749d3
7 changed files with 25 additions and 2 deletions

View file

@ -831,6 +831,7 @@ Grouped in options:\
##### India
[BQ Prime](https://www.bqprime.com) -
[Hindu Tamil Thisai](https://www.hindutamil.in) -
[Hindustan Times](https://www.hindustantimes.com) -
[Inc42](https://inc42.com) -
[India Today](https://www.indiatoday.in) -

View file

@ -4,6 +4,7 @@ Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywal
Post-release
Add Follow the Money (Ftm.eu)
Add Hindu Tamil Thisai (India)
Fix Gazzetta.it (text only)
Fix LeScienze.it
Fix LeTelegramme.fr (css)

View file

@ -3594,6 +3594,17 @@ else if (matchDomain('hindustantimes.com')) {
removeDOMElement(close_story, ...ads);
}
else if (matchDomain('hindutamil.in')) {
if (!window.location.pathname.startsWith('/amp/')) {
let paywall = document.querySelector('div.premium-class-bt');
let amphtml = document.querySelector('link[rel="amphtml"]');
if (paywall && amphtml) {
removeDOMElement(paywall);
window.location.href = amphtml.href;
}
}
}
else if (matchDomain('historyextra.com')) {
let article_masked = document.querySelector('.template-article__masked');
if (article_masked) {

View file

@ -51,5 +51,5 @@
"webRequestBlocking",
"*://*/*"
],
"version": "3.2.1.3"
"version": "3.2.1.4"
}

View file

@ -291,6 +291,7 @@
"*://*.heraldsun.com.au/*",
"*://*.hilltimes.com/*",
"*://*.hindustantimes.com/*",
"*://*.hindutamil.in/*",
"*://*.historyextra.com/*",
"*://*.hollywoodreporter.com/*",
"*://*.housebeautiful.com/*",
@ -757,5 +758,5 @@
"*://*.wyleex.com/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.2.1.3"
"version": "3.2.1.4"
}

View file

@ -974,6 +974,10 @@ var defaultSites = {
allow_cookies: 1,
block_regex: /\.ensighten\.com\/.+\/Bootstrap\.js/
},
"Hindu Tamil Thisai": {
domain: "hindutamil.in",
allow_cookies: 1
},
"Hindustan Times": {
domain: "hindustantimes.com",
allow_cookies: 1,

View file

@ -10,6 +10,11 @@
"block_regex": "(scripts\\.repubblica\\.it\\/pw\\/pw\\.js|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|user-notification)-.+\\.js)",
"useragent": "googlebot"
},
"Hindu Tamil Thisai": {
"domain": "hindutamil.in",
"allow_cookies": 1,
"amp_redirect": "div.premium-class-bt"
},
"Le Télégramme": {
"domain": "letelegramme.fr",
"allow_cookies": 1,