mirror of
https://github.com/iamadamdev/bypass-paywalls-chrome
synced 2025-05-16 16:37:05 +02:00
Add time.com
This commit is contained in:
parent
0f2975ecff
commit
fc346f0641
@ -70,7 +70,8 @@
|
|||||||
"*://*.hbr.org/*",
|
"*://*.hbr.org/*",
|
||||||
"*://*.financialpost.com/*",
|
"*://*.financialpost.com/*",
|
||||||
"*://*.sueddeutsche.de/*",
|
"*://*.sueddeutsche.de/*",
|
||||||
"*://*.elmundo.es/*"
|
"*://*.elmundo.es/*",
|
||||||
|
"*://*.time.com/*"
|
||||||
],
|
],
|
||||||
"js": ["src/js/contentScript.js"]
|
"js": ["src/js/contentScript.js"]
|
||||||
}
|
}
|
||||||
@ -269,7 +270,8 @@
|
|||||||
"*://*.sueddeutsche.de/*",
|
"*://*.sueddeutsche.de/*",
|
||||||
"*://*.spectator.us/*",
|
"*://*.spectator.us/*",
|
||||||
"*://*.humo.be/*",
|
"*://*.humo.be/*",
|
||||||
"*://*.elmundo.es/*"
|
"*://*.elmundo.es/*",
|
||||||
|
"*://*.time.com/*"
|
||||||
],
|
],
|
||||||
"version": "1.7.8"
|
"version": "1.7.8"
|
||||||
}
|
}
|
||||||
|
@ -75,7 +75,8 @@ const allowCookies = [
|
|||||||
'themarker.com',
|
'themarker.com',
|
||||||
'sueddeutsche.de',
|
'sueddeutsche.de',
|
||||||
'gelocal.it',
|
'gelocal.it',
|
||||||
'elmundo.es'
|
'elmundo.es',
|
||||||
|
'time.com'
|
||||||
];
|
];
|
||||||
|
|
||||||
// Removes cookies after page load
|
// Removes cookies after page load
|
||||||
@ -242,7 +243,8 @@ const blockedRegexes = {
|
|||||||
'technologyreview.com': /.+\.blueconic\.net\/.+/,
|
'technologyreview.com': /.+\.blueconic\.net\/.+/,
|
||||||
'spectator.us': /(cdn\.cxense\.com\/.+|\.tinypass\.com\/.+)/,
|
'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)/,
|
'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)';
|
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');
|
const ampAds = document.querySelectorAll('amp-ad, amp-embed');
|
||||||
removeDOMElement(...ampAds);
|
removeDOMElement(...ampAds);
|
||||||
}
|
}
|
||||||
|
} else if (matchDomain('time.com')) {
|
||||||
|
const body = document.querySelector('body');
|
||||||
|
if (body) {
|
||||||
|
body.setAttribute('style', 'position:relative !important;');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function matchDomain (domains) {
|
function matchDomain (domains) {
|
||||||
|
@ -115,6 +115,7 @@ const defaultSites = {
|
|||||||
'SunSentinel': 'sun-sentinel.com',
|
'SunSentinel': 'sun-sentinel.com',
|
||||||
'Tech in Asia': 'techinasia.com',
|
'Tech in Asia': 'techinasia.com',
|
||||||
'Telegraaf': 'telegraaf.nl',
|
'Telegraaf': 'telegraaf.nl',
|
||||||
|
'Time': 'time.com',
|
||||||
'The Advertiser': 'adelaidenow.com.au',
|
'The Advertiser': 'adelaidenow.com.au',
|
||||||
'The Advocate': 'theadvocate.com.au',
|
'The Advocate': 'theadvocate.com.au',
|
||||||
'The Age': 'theage.com.au',
|
'The Age': 'theage.com.au',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user