Add Citywire

merge-requests/10/head
magnolia1234 2 years ago
parent 856615995c
commit bb1272c205

@ -377,6 +377,7 @@ Grouped in options:\
##### United Kingdom/Ireland ##### United Kingdom/Ireland
[Belfast Telegraph](https://www.belfasttelegraph.co.uk) - [Belfast Telegraph](https://www.belfasttelegraph.co.uk) -
[Business Post](https://www.businesspost.ie) - [Business Post](https://www.businesspost.ie) -
[Citywire](https://www.citywire.com) -
[Evening Standard](https://www.standard.co.uk) - [Evening Standard](https://www.standard.co.uk) -
[Financial News](https://www.fnlondon.com) - [Financial News](https://www.fnlondon.com) -
[Financial Times](https://www.ft.com) - [Financial Times](https://www.ft.com) -
@ -617,7 +618,7 @@ Grouped in options:\
[Dagblad van het Noorden](https://www.dvhn.nl) - [Dagblad van het Noorden](https://www.dvhn.nl) -
[Leeuwarder Courant](https://www.lc.nl) [Leeuwarder Courant](https://www.lc.nl)
#### Norway ##### Norway
Grouped in options:\ Grouped in options:\
*NHST Media Group* sites like\ *NHST Media Group* sites like\
[DN](https://www.dn.no) - [DN](https://www.dn.no) -
@ -690,7 +691,7 @@ Grouped in options:\
[Neue Zürcher Zeitung (+ regional/opt-in to custom sites)](https://www.nzz.ch) - [Neue Zürcher Zeitung (+ regional/opt-in to custom sites)](https://www.nzz.ch) -
[The Market](https://themarket.ch) [The Market](https://themarket.ch)
#### Australia/New Zealand ##### Australia/New Zealand
[Brisbane Times](https://www.brisbanetimes.com.au) - [Brisbane Times](https://www.brisbanetimes.com.au) -
[Eureka Report](https://www.eurekareport.com.au) - [Eureka Report](https://www.eurekareport.com.au) -
@ -737,7 +738,7 @@ Grouped in options:\
[The Standard](https://www.standard.net.au) - [The Standard](https://www.standard.net.au) -
[Western Advocate](https://www.westernadvocate.com.au) [Western Advocate](https://www.westernadvocate.com.au)
#### East Asia ##### East Asia
[Asia Times](https://asiatimes.com) - [Asia Times](https://asiatimes.com) -
[CommonWealth Magazine Taiwan](https://www.cw.com.tw)* - [CommonWealth Magazine Taiwan](https://www.cw.com.tw)* -
[Harvard Business Review China](https://www.hbrchina.org) - [Harvard Business Review China](https://www.hbrchina.org) -
@ -752,7 +753,7 @@ Grouped in options:\
[The Japan Times](https://www.japantimes.co.jp) - [The Japan Times](https://www.japantimes.co.jp) -
[The Star Malaysia](https://www.thestar.com.my) [The Star Malaysia](https://www.thestar.com.my)
#### India ##### India
[BQ Prime](https://www.bqprime.com) - [BQ Prime](https://www.bqprime.com) -
[Business Standard](https://www.business-standard.com) - [Business Standard](https://www.business-standard.com) -
[Hindustan Times](https://www.hindustantimes.com) - [Hindustan Times](https://www.hindustantimes.com) -
@ -770,7 +771,7 @@ Grouped in options:\
[The Indian Express](https://indianexpress.com) - [The Indian Express](https://indianexpress.com) -
[Times of India](https://timesofindia.indiatimes.com) [Times of India](https://timesofindia.indiatimes.com)
#### Israel ##### Israel
[Globes](https://www.globes.co.il) - [Globes](https://www.globes.co.il) -
[Haaretz.co.il](https://www.haaretz.co.il) - [Haaretz.co.il](https://www.haaretz.co.il) -
[Haaretz.com](https://www.haaretz.com) - [Haaretz.com](https://www.haaretz.com) -

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
Post-release Post-release
Add 4 more NHST Media Group sites Add 4 more NHST Media Group sites
Add Citywire
Add Tes Magazine Add Tes Magazine
Fix Axios (overlay) Fix Axios (overlay)

@ -2103,7 +2103,7 @@ else if (matchDomain('vn.nl')) {
else else
csDone = true; csDone = true;
} else if (window.location.hostname.match(/\.(ie|uk)$/) || matchDomain(['scotsman.com', 'tes.com'])) {//united kingdom/ireland } else if (window.location.hostname.match(/\.(ie|uk)$/) || matchDomain(['citywire.com', 'ft.com', 'scotsman.com', 'tes.com'])) {//united kingdom/ireland
if (matchDomain(['belfasttelegraph.co.uk', 'independent.ie'])) { if (matchDomain(['belfasttelegraph.co.uk', 'independent.ie'])) {
let flip_pay = document.querySelector('div#flip-pay[style]'); let flip_pay = document.querySelector('div#flip-pay[style]');
@ -2111,6 +2111,23 @@ if (matchDomain(['belfasttelegraph.co.uk', 'independent.ie'])) {
flip_pay.removeAttribute('style'); flip_pay.removeAttribute('style');
} }
else if (matchDomain('citywire.com')) {
removeClassesList(['article-locked', 'm-article--locked', 'm-media-container--locked', 'm-article__body--locked']);
let banners = document.querySelectorAll('registration-widget, div.alert--locked');
removeDOMElement(...banners);
}
else if (matchDomain('ft.com')) {
if (window.location.hostname.startsWith('amp.')) {
amp_unhide_subscr_section('.ad-container, amp-ad');
} else {
let cookie_banner = document.querySelector('.o-cookie-message');
let ribbon = document.querySelector('.js-article-ribbon');
let ads = document.querySelector('.o-ads');
removeDOMElement(cookie_banner, ribbon, ads);
}
}
else if (matchDomain('independent.co.uk')) { else if (matchDomain('independent.co.uk')) {
let url = window.location.href; let url = window.location.href;
if (window.location.search.match(/(\?|&)amp/)) { if (window.location.search.match(/(\?|&)amp/)) {
@ -2894,17 +2911,6 @@ else if (matchDomain('fortune.com')) {
} }
} }
else if (matchDomain('ft.com')) {
if (window.location.hostname.startsWith('amp.')) {
amp_unhide_subscr_section('.ad-container, amp-ad');
} else {
let cookie_banner = document.querySelector('.o-cookie-message');
let ribbon = document.querySelector('.js-article-ribbon');
let ads = document.querySelector('.o-ads');
removeDOMElement(cookie_banner, ribbon, ads);
}
}
else if (matchDomain('griffithreview.com')) { else if (matchDomain('griffithreview.com')) {
let body_single = document.querySelector('body.single'); let body_single = document.querySelector('body.single');
if (body_single) if (body_single)
@ -4210,6 +4216,14 @@ function removeClassesByPrefix(el, prefix) {
} }
} }
function removeClassesList(list) {
for (let class_item of list) {
let elems = document.querySelectorAll('.' + class_item);
for (let elem of elems)
elem.classList.remove(class_item);
}
}
function cookieExists(name) { function cookieExists(name) {
return document.cookie.split(';').some(function (item) { return document.cookie.split(';').some(function (item) {
return item.trim().indexOf(name + '=') === 0 return item.trim().indexOf(name + '=') === 0

@ -140,6 +140,7 @@
"*://*.chronicle.com/*", "*://*.chronicle.com/*",
"*://*.cicero.de/*", "*://*.cicero.de/*",
"*://*.cincinnati.com/*", "*://*.cincinnati.com/*",
"*://*.citywire.com/*",
"*://*.clarin.com/*", "*://*.clarin.com/*",
"*://*.cleaneatingmag.com/*", "*://*.cleaneatingmag.com/*",
"*://*.cleveland.com/*", "*://*.cleveland.com/*",
@ -726,5 +727,5 @@
"*://gcm.omerlocdn.com/*", "*://gcm.omerlocdn.com/*",
"*://webcache.googleusercontent.com/*" "*://webcache.googleusercontent.com/*"
], ],
"version": "2.9.0.3" "version": "2.9.0.4"
} }

@ -267,6 +267,10 @@ var defaultSites = {
domain: "cicero.de", domain: "cicero.de",
allow_cookies: 1 allow_cookies: 1
}, },
"Citywire": {
domain: "citywire.com",
allow_cookies: 1
},
"Clarín": { "Clarín": {
domain: "clarin.com", domain: "clarin.com",
allow_cookies: 1, allow_cookies: 1,
@ -1217,7 +1221,7 @@ var defaultSites = {
"twincities.com" "twincities.com"
], ],
allow_cookies: 1, allow_cookies: 1,
block_regex: /(\.blueconic\.net\/|\.tinypass\.com\/|\.com\/.+\/loader\.min\.js|cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js)/ block_regex: /(\.blueconic\.net\/|\.tinypass\.com\/|\.com\/.+\/loader-wp\/.+\/loader\.min\.js|cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js)/
}, },
"Medium (free articles only)": { "Medium (free articles only)": {
domain: "medium.com", domain: "medium.com",

@ -1,14 +1,4 @@
{ {
"Abqjournal.com": {
"domain": "abqjournal.com",
"allow_cookies": 1,
"block_regex": "\\.abqjournal\\.com\\/.+\\/abq-pw-manager\\.js"
},
"Bloomberg": {
"domain": "bloomberg.com",
"block_regex": "(\\.tinypass\\.com\\/|assets\\.bwbx\\.io\\/s\\d\\/(fence\\/plug-client|javelin\\/.+\\/transporter)\\/)",
"remove_cookies_select_drop": ["gatehouse_id"]
},
"Dn.no": { "Dn.no": {
"domain": "dn.no", "domain": "dn.no",
"allow_cookies": 1, "allow_cookies": 1,
@ -42,11 +32,6 @@
} }
] ]
}, },
"Inews.co.uk": {
"domain": "inews.co.uk",
"allow_cookies": 1,
"block_regex": "\\.tinypass\\.com\\/"
},
"L'Humanité": { "L'Humanité": {
"domain": "humanite.fr", "domain": "humanite.fr",
"allow_cookies": 1, "allow_cookies": 1,

Loading…
Cancel
Save