Fix The Indian Express (premium)

This commit is contained in:
magnolia1234 2022-01-08 16:43:25 +01:00
parent e0970d235d
commit 4e39f20be1
5 changed files with 13 additions and 3 deletions

View file

@ -5,6 +5,7 @@ Post-release
Add group Hearst Communications (local USA) Add group Hearst Communications (local USA)
Fix Bloomberg (timing) Fix Bloomberg (timing)
Fix Handelsblatt (no amp) Fix Handelsblatt (no amp)
Fix The Indian Express (premium)
Fix trimmed referer (restrictions) Fix trimmed referer (restrictions)
* v2.5.0.0 (2022-01-02) * v2.5.0.0 (2022-01-02)

View file

@ -2422,8 +2422,12 @@ else if (matchDomain('indianexpress.com')) {
if (window.location.pathname.endsWith('/lite/')) if (window.location.pathname.endsWith('/lite/'))
amp_unhide_access_hide('="metering.result=\'ALLOW_ACCESS\'"', '', '.amp-ad, amp-embed'); amp_unhide_access_hide('="metering.result=\'ALLOW_ACCESS\'"', '', '.amp-ad, amp-embed');
else { else {
let paywall = document.querySelector('div#pcl-rest-content[style]');
if (paywall)
paywall.removeAttribute('style');
let register = document.querySelector('div#app-pcl');
let ads = document.querySelectorAll('div[class^="adsbox"]'); let ads = document.querySelectorAll('div[class^="adsbox"]');
removeDOMElement(...ads); removeDOMElement(register, ...ads);
} }
} }

View file

@ -606,5 +606,5 @@
"*://*.wsj.net/*", "*://*.wsj.net/*",
"*://*.zephr.com/*" "*://*.zephr.com/*"
], ],
"version": "2.5.0.4" "version": "2.5.0.5"
} }

View file

@ -1493,7 +1493,7 @@ var defaultSites = {
"The Indian Express": { "The Indian Express": {
domain: "indianexpress.com", domain: "indianexpress.com",
allow_cookies: 1, allow_cookies: 1,
block_regex: /(\/indianexpress\.com\/.+\/indianexpress\/js\/evolok\/.+\.js|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad)-.+\.js)/ block_regex: /(\/indianexpress\.com\/.+\/indianexpress\/js\/(evolok\/.+|min\/premiumContent)\.js|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad)-.+\.js)/
}, },
"The Intercept": { "The Intercept": {
domain: "theintercept.com", domain: "theintercept.com",

View file

@ -45,6 +45,11 @@
} }
] ]
}, },
"The Indian Express": {
"domain": "indianexpress.com",
"allow_cookies": 1,
"block_regex": "(\\/indianexpress\\.com\\/.+\\/indianexpress\\/js\\/(evolok\\/.+|min\\/premiumContent)\\.js|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|(sticky-)?ad)-.+\\.js)"
},
"The New Statesman": { "The New Statesman": {
"domain": "newstatesman.com", "domain": "newstatesman.com",
"allow_cookies": 1, "allow_cookies": 1,