Add S&P Global

This commit is contained in:
magnolia1234 2022-03-27 18:25:00 +02:00
parent cf46ec05bf
commit 5493e1adec
7 changed files with 31 additions and 2 deletions

View File

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

View File

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

View File

@ -3161,6 +3161,14 @@ else if (matchDomain('sofrep.com')) {
removeDOMElement(...banners); 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')) { else if (matchDomain('staradvertiser.com')) {
let url = window.location.href.split('?')[0]; let url = window.location.href.split('?')[0];
if (url.endsWith('/amp/')) { if (url.endsWith('/amp/')) {

View File

@ -41,5 +41,5 @@
"webRequestBlocking", "webRequestBlocking",
"<all_urls>" "<all_urls>"
], ],
"version": "2.6.1.4" "version": "2.6.1.5"
} }

View File

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

View File

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