Fix Mid-Day (amp-redirect)

This commit is contained in:
magnolia1234 2024-03-13 12:09:15 +01:00
parent 84005774ea
commit a65c3feb88
8 changed files with 28 additions and 8 deletions

View file

@ -35,6 +35,7 @@ var restrictions = {
'ilsole24ore.com': /^((?!\/ntplus.+\.ilsole24ore\.com\/).)*$/,
'livemint.com': /^((?!\/epaper\.livemint\.com\/).)*$/,
'lopinion.fr': /^((?!\.lopinion\.fr\/lejournal).)*$/,
'mid-day.com': /^((?!\/epaper\.mid-day\.com\/).)*$/,
'nytimes.com': /^((?!\/(help|myaccount|timesmachine)\.nytimes\.com\/).)*$/,
'nzz.ch': /^((?!\/epaper\.nzz\.ch\/).)*$/,
'quora.com': /^((?!quora\.com\/search\?q=).)*$/,

View file

@ -7,6 +7,7 @@ Add Courrier international
Add Observador.pt
Fix Autosport (js)
Fix Fast Company (premium)
Fix Mid-Day (amp-redirect)
* v3.5.9.0 (2024-03-10)
Add Funke Mediengruppe (fetch from archive.is)

View file

@ -4629,9 +4629,9 @@ else if (matchDomain('mexiconewsdaily.com')) {
else if (matchDomain('mid-day.com')) {
if (window.location.pathname.startsWith('/amp/')) {
amp_unhide_access_hide('="granted"', '="NOT granted"', 'amp-ad, amp-embed, [class*="BannerAd"]');
amp_unhide_access_hide('="granted"', '="NOT granted"', 'amp-ad, amp-embed, [class*="BannerAd"], div.midday-wrapper');
} else {
amp_redirect('div#widget-_csc');
amp_redirect('div.modal.fade');
let read_more = document.querySelector('#read-more-my');
if (read_more)
read_more.click();

View file

@ -51,5 +51,5 @@
"webRequestBlocking",
"*://*/*"
],
"version": "3.5.9.3"
"version": "3.5.9.4"
}

View file

@ -801,6 +801,11 @@
"domain": "taxscan.in",
"ld_json": "div.pmpro_content_message|div.the-content>p"
},
"Teachingprofessor.com": {
"allow_cookies": 1,
"domain": "teachingprofessor.com",
"ld_json_url": "div#post-paywall|div.elementor-widget-theme-post-content>div"
},
"Tetu.com": {
"allow_cookies": 1,
"block_regex": "\\.qiota\\.com",

View file

@ -857,5 +857,5 @@
"*://archive.vn/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.5.9.3"
"version": "3.5.9.4"
}

View file

@ -479,7 +479,7 @@ var defaultSites = {
block_regex: /(js\.pelcro\.com\/|\.com\/.+\/js\/js_.+\.js)/,
exception: [{
domain: "european-rubber-journal.com",
allow_cookies: 1,
allow_cookies: 1
}
]
},
@ -1685,7 +1685,7 @@ var defaultSites = {
allow_cookies: 1,
block_regex: /\/mexiconewsdaily\.com\/wp-content\/plugins\/leaky-paywall\/js\/leaky-paywall-cookie\.js/
},
"Mid-Day": {
"Mid-Day (not epaper)": {
domain: "mid-day.com",
allow_cookies: 1,
block_regex: /cdn\.ampproject\.org\/v\d\/amp-access-.+\.js/
@ -2323,7 +2323,13 @@ var defaultSites = {
"The Atlanta Journal-Constitution (+ Cox First Media/opt-in to custom sites)": {
domain: "ajc.com",
allow_cookies: 1,
block_regex: /(\.com\/prod\/ajc\/loader\.min\.js|\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/
block_regex: /(\.wgchrrammzv\.com\/prod\/ajc\/loader\.min\.js|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/,
exception: [{
domain: "ajc.com",
allow_cookies: 1,
block_regex: /(\.tinypass\.com\/|\.sophi\.io\/)/
}
]
},
"The Atlantic": {
domain: "theatlantic.com",
@ -2822,7 +2828,7 @@ var defaultSites = {
"Winnipeg Free Press": {
domain: "winnipegfreepress.com",
allow_cookies: 1,
block_regex: /(account\.winnipegfreepress\.com\/api\/v\d\/auth\/identify|cdn\.cxense\.com\/)/
block_regex: /(\.winnipegfreepress\.com\/(api\/v\d\/auth\/identify|.+\/gdpr\.js)|cdn\.cxense\.com\/)/
},
"WirtschaftsWoche (fetch from archive.is)": {
domain: "wiwo.de",

View file

@ -70,6 +70,13 @@
"block_regex": "(\\.medscapestatic\\.com\\/.+\\/medscape-library|\\.wbmdstatic\\.com\\/.+\\/chunk-vendors\\..+)\\.js",
"upd_version": "3.5.7.6"
},
"Mid-Day": {
"domain": "mid-day.com",
"allow_cookies": 1,
"block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-access-.+\\.js",
"amp_redirect": "div.modal.fade",
"upd_version": "3.5.9.4"
},
"Motor Presse Stuttgart": {
"domain": "###_de_motor_presse",
"group": [