mirror of
https://github.com/iamadamdev/bypass-paywalls-chrome
synced 2025-04-30 01:14:26 +02:00
Add scmp.com
This commit is contained in:
parent
780c7854a0
commit
7fb401d4d1
@ -77,7 +77,8 @@
|
|||||||
"*://*.bostonglobe.com/*",
|
"*://*.bostonglobe.com/*",
|
||||||
"*://*.theathletic.com/*",
|
"*://*.theathletic.com/*",
|
||||||
"*://*.theathletic.co.uk/*",
|
"*://*.theathletic.co.uk/*",
|
||||||
"*://*.hbrchina.org/*"
|
"*://*.hbrchina.org/*",
|
||||||
|
"*://*.scmp.com/*"
|
||||||
],
|
],
|
||||||
"js": ["src/js/contentScript.js"]
|
"js": ["src/js/contentScript.js"]
|
||||||
}
|
}
|
||||||
@ -282,7 +283,8 @@
|
|||||||
"*://*.expansion.com/*",
|
"*://*.expansion.com/*",
|
||||||
"*://*.theathletic.com/*",
|
"*://*.theathletic.com/*",
|
||||||
"*://*.theathletic.co.uk/*",
|
"*://*.theathletic.co.uk/*",
|
||||||
"*://*.hbrchina.org/*"
|
"*://*.hbrchina.org/*",
|
||||||
|
"*://*.scmp.com/*"
|
||||||
],
|
],
|
||||||
"version": "1.8.0"
|
"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)/,
|
'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)/,
|
'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/,
|
'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)';
|
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();
|
window.localStorage.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -710,6 +710,16 @@ if (matchDomain('elmercurio.com')) {
|
|||||||
if (hiddenDiv) {
|
if (hiddenDiv) {
|
||||||
hiddenDiv.removeAttribute('style');
|
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) {
|
function matchDomain (domains) {
|
||||||
|
@ -114,6 +114,7 @@ const defaultSites = {
|
|||||||
'Statista': 'statista.com',
|
'Statista': 'statista.com',
|
||||||
'Stuff': 'stuff.co.nz',
|
'Stuff': 'stuff.co.nz',
|
||||||
"Süddeutsche Zeitung": "sueddeutsche.de",
|
"Süddeutsche Zeitung": "sueddeutsche.de",
|
||||||
|
"South China Morning Post": "scmp.com",
|
||||||
'SunSentinel': 'sun-sentinel.com',
|
'SunSentinel': 'sun-sentinel.com',
|
||||||
'Tech in Asia': 'techinasia.com',
|
'Tech in Asia': 'techinasia.com',
|
||||||
'Telegraaf': 'telegraaf.nl',
|
'Telegraaf': 'telegraaf.nl',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user