Add S&P Global

This commit is contained in:
magnolia1234 2022-03-27 18:25:09 +02:00
parent bdbd9813da
commit f1d4200377
6 changed files with 30 additions and 1 deletions

View file

@ -98,6 +98,7 @@ _* free/cached articles only._
[MarketWatch](https://www.marketwatch.com) -
[MIT Sloan Management Review](https://sloanreview.mit.edu) -
[Quartz](https://qz.com)* -
[S&P Global](https://www.spglobal.com) -
[Seeking Alpha](https://seekingalpha.com) -
[Stock News](https://stocknews.com) -
[The Business Journals](https://www.bizjournals.com) -

View file

@ -7,6 +7,7 @@ Add iPolitics.ca
Add LeNouvelEconomiste.fr
Add Muenstersche Zeitung
Add NewcastleHerald.com.au
Add S&P Global
Add Westdeutsche Zeitung
Remove HBR Taiwan (fix obsolete)
Fix Australian Community Media

View file

@ -3161,6 +3161,14 @@ else if (matchDomain('sofrep.com')) {
removeDOMElement(...banners);
}
else if (matchDomain('spglobal.com')) {
let overlay = document.querySelector('.article__overlay');
removeDOMElement(overlay);
let html_noscroll = document.querySelector('html[class]');
if (html_noscroll)
html_noscroll.removeAttribute('class');
}
else if (matchDomain('staradvertiser.com')) {
let url = window.location.href.split('?')[0];
if (url.endsWith('/amp/')) {

View file

@ -499,6 +499,7 @@
"*://*.spectator.co.uk/*",
"*://*.spectator.com.au/*",
"*://*.spectatorworld.com/*",
"*://*.spglobal.com/*",
"*://*.standard.net.au/*",
"*://*.star-telegram.com/*",
"*://*.staradvertiser.com/*",
@ -662,5 +663,5 @@
"*://*.wallkit.net/*",
"*://*.wsj.net/*"
],
"version": "2.6.1.4"
"version": "2.6.1.5"
}

View file

@ -1383,6 +1383,11 @@ var defaultSites = {
allow_cookies: 1,
block_regex: /\.tinypass\.com\//
},
"S&P Global": {
domain: "spglobal.com",
allow_cookies: 1,
block_regex: /\.blueconic\.net\//
},
"San Diego Union Tribune": {
domain: "sandiegouniontribune.com",
block_regex: /(metering\.platform\.sandiegouniontribune\.com\/v\d\/meter|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad|subscriptions)-.+\.js)/

View file

@ -47,6 +47,19 @@
},
"amp_unhide": 1
},
"S&P Global": {
"domain": "spglobal.com",
"allow_cookies": 1,
"block_regex": "\\.blueconic\\.net\\/",
"cs_code": [{
"cond": ".article__overlay",
"rm_elem": 1
}, {
"cond": "html[class]",
"rm_attrib": "class"
}
]
},
"Westdeutsche Zeitung": {
"allow_cookies": 1,
"domain": "wz.de",