mirror of
https://github.com/iamadamdev/bypass-paywalls-chrome
synced 2025-04-30 04:14:26 +02:00
Add time.com
This commit is contained in:
parent
0f2975ecff
commit
fc346f0641
@ -70,7 +70,8 @@
|
||||
"*://*.hbr.org/*",
|
||||
"*://*.financialpost.com/*",
|
||||
"*://*.sueddeutsche.de/*",
|
||||
"*://*.elmundo.es/*"
|
||||
"*://*.elmundo.es/*",
|
||||
"*://*.time.com/*"
|
||||
],
|
||||
"js": ["src/js/contentScript.js"]
|
||||
}
|
||||
@ -269,7 +270,8 @@
|
||||
"*://*.sueddeutsche.de/*",
|
||||
"*://*.spectator.us/*",
|
||||
"*://*.humo.be/*",
|
||||
"*://*.elmundo.es/*"
|
||||
"*://*.elmundo.es/*",
|
||||
"*://*.time.com/*"
|
||||
],
|
||||
"version": "1.7.8"
|
||||
}
|
||||
|
@ -75,7 +75,8 @@ const allowCookies = [
|
||||
'themarker.com',
|
||||
'sueddeutsche.de',
|
||||
'gelocal.it',
|
||||
'elmundo.es'
|
||||
'elmundo.es',
|
||||
'time.com'
|
||||
];
|
||||
|
||||
// Removes cookies after page load
|
||||
@ -242,7 +243,8 @@ const blockedRegexes = {
|
||||
'technologyreview.com': /.+\.blueconic\.net\/.+/,
|
||||
'spectator.us': /(cdn\.cxense\.com\/.+|\.tinypass\.com\/.+)/,
|
||||
'gelocal.it': /(\.repstatic\.it\/minify\/sites\/gelocal\/.+\/config\.cache(_\d)?\.php|cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.js)/,
|
||||
'elmundo.es': /cdn\.ampproject\.org\/v\d\/amp-(access|ad|consent)-.+\.js/
|
||||
'elmundo.es': /cdn\.ampproject\.org\/v\d\/amp-(access|ad|consent)-.+\.js/,
|
||||
'time.com': /\/time\.com\/dist\/meter-wall-client-js\..+\.js/
|
||||
};
|
||||
|
||||
const userAgentDesktop = 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)';
|
||||
|
@ -622,6 +622,11 @@ if (matchDomain('elmercurio.com')) {
|
||||
const ampAds = document.querySelectorAll('amp-ad, amp-embed');
|
||||
removeDOMElement(...ampAds);
|
||||
}
|
||||
} else if (matchDomain('time.com')) {
|
||||
const body = document.querySelector('body');
|
||||
if (body) {
|
||||
body.setAttribute('style', 'position:relative !important;');
|
||||
}
|
||||
}
|
||||
|
||||
function matchDomain (domains) {
|
||||
|
@ -115,6 +115,7 @@ const defaultSites = {
|
||||
'SunSentinel': 'sun-sentinel.com',
|
||||
'Tech in Asia': 'techinasia.com',
|
||||
'Telegraaf': 'telegraaf.nl',
|
||||
'Time': 'time.com',
|
||||
'The Advertiser': 'adelaidenow.com.au',
|
||||
'The Advocate': 'theadvocate.com.au',
|
||||
'The Age': 'theage.com.au',
|
||||
|
Loading…
x
Reference in New Issue
Block a user