Add The Financial Express (India)

This commit is contained in:
magnolia1234 2022-05-29 17:08:47 +02:00
parent 68e7597226
commit 2b790171c7
6 changed files with 33 additions and 1 deletions

View file

@ -713,6 +713,7 @@ Grouped in options:\
[Mid-Day](https://www.mid-day.com) -
[Outlook](https://www.outlookindia.com) -
[The Economic Times (ET Prime)](https://economictimes.indiatimes.com) -
[The Financial Express](https://www.financialexpress.com) -
[The Hindu](https://www.thehindu.com) -
[The Hindu BusinessLine](https://www.thehindubusinessline.com) -
[The Indian Express](https://indianexpress.com) -

View file

@ -7,6 +7,7 @@ Add Gazet van Antwerpen
Add Het Belang van Limburg
Add Het Nieuwsblad
Add SlideShare
Add The Financial Express (India)
Remove Scribd (fix obsolete)
Fix El Mercurio (+ regional/opt-in to custom sites)
Fix Telegraaf.nl

View file

@ -2781,6 +2781,19 @@ else if (matchDomain('entrepreneur.com')) {
}
}
else if (matchDomain('financialexpress.com')) {
let paywall = document.querySelector('div.paywall');
if (paywall)
paywall.classList.remove('paywall');
let register = document.querySelector('div.pcl-wrap');
let ads;
if (window.location.pathname.endsWith('/lite/'))
ads = document.querySelectorAll('amp-ad, amp-embed, .ad-bg-container');
else
ads = document.querySelectorAll('div[class*="-ads-blocks-ad-unit"]');
removeDOMElement(register, ...ads);
}
else if (matchDomain('firstthings.com')) {
let paywall = document.querySelector('.paywall');
removeDOMElement(paywall);

View file

@ -218,6 +218,7 @@
"*://*.faz.net/*",
"*://*.fd.nl/*",
"*://*.finance.si/*",
"*://*.financialexpress.com/*",
"*://*.financialpost.com/*",
"*://*.firstthings.com/*",
"*://*.fnlondon.com/*",
@ -681,5 +682,5 @@
"*://*.wsj.net/*",
"*://webcache.googleusercontent.com/*"
],
"version": "2.7.0.4"
"version": "2.7.0.5"
}

View file

@ -1654,6 +1654,11 @@ var defaultSites = {
allow_cookies: 1,
block_regex: /(\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/
},
"The Financial Express": {
domain: "financialexpress.com",
allow_cookies: 1,
block_regex: /(\.financialexpress\.com\/.+\/min\/premiumStoryContent\.js|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/
},
"The Globe and Mail": {
domain: "theglobeandmail.com",
block_regex: /(\.theglobeandmail\.com\/pf\/dist\/engine\/react\.js|smartwall\.theglobeandmail\.com\/)/

View file

@ -35,6 +35,17 @@
],
"new_site": 1
},
"The Financial Express": {
"domain": "financialexpress.com",
"allow_cookies": 1,
"block_regex": "(\\.financialexpress\\.com\\/.+\\/min\\/premiumStoryContent\\.js|cdn\\.ampproject\\.org\\/v\\d\\/amp-access-.+\\.js)",
"cs_code": [{
"cond": ".paywall",
"rm_class": "paywall"
}
],
"new_site": 1
},
"The Globe and Mail": {
"domain": "theglobeandmail.com",
"block_regex": "(\\.theglobeandmail\\.com\\/pf\\/dist\\/engine\\/react\\.js|smartwall\\.theglobeandmail\\.com\\/)"