Add time.com

This commit is contained in:
Adam 2021-03-25 20:30:16 -07:00
parent 0f2975ecff
commit fc346f0641
4 changed files with 14 additions and 4 deletions

View File

@ -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"
}

View File

@ -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)';

View File

@ -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) {

View File

@ -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',