Fix MIT Sloan Management Review (refresh)

This commit is contained in:
magnolia1234 2022-01-23 10:13:35 +01:00
parent a5526e436b
commit 6353d3ebdc
5 changed files with 19 additions and 3 deletions

View File

@ -572,7 +572,7 @@ ext_api.webRequest.onBeforeRequest.addListener(function (details) {
// theaustralian.com, adelaidenow.com.au, cairnspost.com.au redirect subscribe to amp
ext_api.webRequest.onBeforeRequest.addListener(function (details) {
if (!isSiteEnabled(details) || details.url.includes('/digitalprinteditions')) {
if (!isSiteEnabled(details) || details.url.includes('/digitalprinteditions') || !details.url.includes('dest=')) {
return;
}
var updatedUrl = decodeURIComponent(details.url.split('dest=')[1].split('&')[0]).replace('www.', 'amp.');

View File

@ -9,6 +9,7 @@ Fix Cairns Post, Code Sports & The Advertiser
Fix Challenges.fr
Fix Clarin
Fix El Pais (menu subdomains)
Fix MIT Sloan Management Review (refresh)
Fix The New Yorker (update)
* v2.5.2.0 (2022-01-16)

View File

@ -1915,7 +1915,7 @@ else if (matchDomain('valor.globo.com')) {
else
csDone = true;
} else {//other (like com/org & not at/be/br/ch/cl/de/fr/es/ie/nl/pe/pt/uk))
} else {//other (like com/org & not at/be/br/ch/cl/de/dk/fi/fr/es/ie/nl/no/pe/pt/se/uk))
if (matchDomain(usa_adv_local_domains)) {
let url = window.location.href;
@ -2797,6 +2797,15 @@ else if (matchDomain('slate.com')) {
removeDOMElement(slate_roadblock, ...ads);
}
else if (matchDomain('sloanreview.mit.edu')) {
let paywall = document.querySelector('div.paywall-blinder');
removeDOMElement(paywall);
if (paywall) {
ext_api.runtime.sendMessage({request: 'refreshCurrentTab'});
csDoneOnce = true;
}
}
else if (matchDomain('sofrep.com')) {
let banners = document.querySelectorAll('#scrollerCTA, #botCta');
removeDOMElement(...banners);

View File

@ -603,5 +603,5 @@
"*://*.wsj.net/*",
"*://*.zephr.com/*"
],
"version": "2.5.2.6"
"version": "2.5.2.7"
}

View File

@ -4,6 +4,12 @@
"allow_cookies": 1,
"block_regex": "\\.clarin\\.com\\/commons\\/js\\/auth0\\.js"
},
"Code Sports": {
"domain": "codesports.com.au",
"allow_cookies": 1,
"useragent": "googlebot",
"block_regex": "(\\.com\\.au\\/remote\\/identity\\/rampart\\/latest\\/rampart\\.js|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|ad)-.+\\.js)"
},
"Huffingtonpost.it": {
"domain": "huffingtonpost.it",
"group_rule": "###_gr_it_repubblica_domains"