mirror of
https://github.com/iamadamdev/bypass-paywalls-chrome
synced 2025-04-29 19:54:28 +02:00
Add scmp.com
This commit is contained in:
parent
780c7854a0
commit
7fb401d4d1
@ -77,7 +77,8 @@
|
||||
"*://*.bostonglobe.com/*",
|
||||
"*://*.theathletic.com/*",
|
||||
"*://*.theathletic.co.uk/*",
|
||||
"*://*.hbrchina.org/*"
|
||||
"*://*.hbrchina.org/*",
|
||||
"*://*.scmp.com/*"
|
||||
],
|
||||
"js": ["src/js/contentScript.js"]
|
||||
}
|
||||
@ -282,7 +283,8 @@
|
||||
"*://*.expansion.com/*",
|
||||
"*://*.theathletic.com/*",
|
||||
"*://*.theathletic.co.uk/*",
|
||||
"*://*.hbrchina.org/*"
|
||||
"*://*.hbrchina.org/*",
|
||||
"*://*.scmp.com/*"
|
||||
],
|
||||
"version": "1.8.0"
|
||||
}
|
||||
|
@ -247,7 +247,8 @@ const blockedRegexes = {
|
||||
'nytimes.com': /(meter-svc\.nytimes\.com\/meter\.js|mwcm\.nyt\.com\/.+\.js|cooking\.nytimes\.com\/api\/.+\/access)/,
|
||||
'latimes.com': /(metering\.platform\.latimes\.com\/|cdn\.ampproject\.org\/v\d\/amp-(access|subscriptions)-.+\.js)/,
|
||||
'theathletic.com': /cdn\.ampproject\.org\/v\d\/amp-(access|subscriptions)-.+\.js/,
|
||||
'japantimes.co.jp': /cdn\.cxense\.com\//
|
||||
'japantimes.co.jp': /cdn\.cxense\.com\//,
|
||||
'scmp.com': /(\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/
|
||||
};
|
||||
|
||||
const userAgentDesktop = 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)';
|
||||
|
@ -1,4 +1,4 @@
|
||||
if (!matchDomain(['seekingalpha.com', 'sfchronicle.com', 'cen.acs.org', 'elmundo.es'])) {
|
||||
if (!matchDomain(['seekingalpha.com', 'sfchronicle.com', 'cen.acs.org', 'elmundo.es', 'scmp.com'])) {
|
||||
window.localStorage.clear();
|
||||
}
|
||||
|
||||
@ -710,6 +710,16 @@ if (matchDomain('elmercurio.com')) {
|
||||
if (hiddenDiv) {
|
||||
hiddenDiv.removeAttribute('style');
|
||||
}
|
||||
} else if (matchDomain('scmp.com')) {
|
||||
if (window.location.href.includes('/amp.')) {
|
||||
const divHidden = document.querySelectorAll('div.article-body[amp-access][amp-access-hide]');
|
||||
for (const elem of divHidden) {
|
||||
elem.removeAttribute('amp-access-hide');
|
||||
}
|
||||
const defaultMeters = document.querySelectorAll('div.default-meter, div#archive-article-meter');
|
||||
const ads = document.querySelectorAll('amp-ad, div.ad-banner, div.advert-fly-carpet-container, div.inline-advert');
|
||||
removeDOMElement(...defaultMeters, ...ads);
|
||||
}
|
||||
}
|
||||
|
||||
function matchDomain (domains) {
|
||||
|
@ -114,6 +114,7 @@ const defaultSites = {
|
||||
'Statista': 'statista.com',
|
||||
'Stuff': 'stuff.co.nz',
|
||||
"Süddeutsche Zeitung": "sueddeutsche.de",
|
||||
"South China Morning Post": "scmp.com",
|
||||
'SunSentinel': 'sun-sentinel.com',
|
||||
'Tech in Asia': 'techinasia.com',
|
||||
'Telegraaf': 'telegraaf.nl',
|
||||
|
Loading…
x
Reference in New Issue
Block a user