Remove HBR China

This commit is contained in:
magnolia1234 2023-09-19 15:29:34 +02:00
parent 3249a8a294
commit 6bc160671b
6 changed files with 9 additions and 18 deletions

View file

@ -860,7 +860,6 @@ Grouped in options:\
##### East Asia ##### East Asia
[CommonWealth Magazine Taiwan](https://www.cw.com.tw)* - [CommonWealth Magazine Taiwan](https://www.cw.com.tw)* -
[Harvard Business Review China](https://www.hbrchina.org) -
[Mainichi Shimbun](https://mainichi.jp) - [Mainichi Shimbun](https://mainichi.jp) -
[Nikkei Asian Review](https://asia.nikkei.com) - [Nikkei Asian Review](https://asia.nikkei.com) -
[South China Morning Post](https://www.scmp.com) - [South China Morning Post](https://www.scmp.com) -

View file

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases
Post-release Post-release
Remove HBR China (fix obsolete)
Fix The Week (css) Fix The Week (css)
Update custom sites (import - remove obsolete) Update custom sites (import - remove obsolete)
@ -1134,7 +1135,7 @@ Check for update version on startup/options (now opt-out)
Update group rules (post-release) Update group rules (post-release)
* v2.4.3.0 (2021-11-07) * v2.4.3.0 (2021-11-07)
Add Harvard Business Review China Add HBR China
Add Mitteldeutsche Zeitung Add Mitteldeutsche Zeitung
Remove Liberation.fr (fix obsolete) Remove Liberation.fr (fix obsolete)
Fix ElMundo.es (amp) Fix ElMundo.es (amp)
@ -2021,7 +2022,7 @@ Fix Espresso.repubblica.it
Fix TheAdvocate.com.au Fix TheAdvocate.com.au
* v1.6.4.1 (2020-01-31) * v1.6.4.1 (2020-01-31)
Add Harvard Business Review Taiwan Add HBR Taiwan
Add Modern Healthcare Add Modern Healthcare
Add National Review Add National Review
Add The Christian Science Monitor Add The Christian Science Monitor

View file

@ -3572,7 +3572,7 @@ else if (matchDomain('business-standard.com')) {
} }
} }
let banner = document.querySelector('section.sbcrbtmlfull'); let banner = document.querySelector('section.sbcrbtmlfull');
let ads = document.querySelectorAll('div.advertisement-bg'); let ads = document.querySelectorAll('div.advertisement-bg, div[id^="between_article_content_"]');
hideDOMElement(banner, ...ads); hideDOMElement(banner, ...ads);
} else } else
ampToHtml(); ampToHtml();
@ -3898,12 +3898,6 @@ else if (matchDomain('hbr.org')) {
} }
} }
else if (matchDomain('hbrchina.org')) {
let div_hidden = document.querySelector('div#the_content');
if (div_hidden)
div_hidden.removeAttribute('style');
}
else if (matchDomain('hilltimes.com')) { else if (matchDomain('hilltimes.com')) {
let paywall = document.querySelectorAll('div[class^="paywallcont"]'); let paywall = document.querySelectorAll('div[class^="paywallcont"]');
if (paywall.length) { if (paywall.length) {

View file

@ -295,7 +295,6 @@
"*://*.harpersbazaar.com/*", "*://*.harpersbazaar.com/*",
"*://*.haz.de/*", "*://*.haz.de/*",
"*://*.hbr.org/*", "*://*.hbr.org/*",
"*://*.hbrchina.org/*",
"*://*.heraldsun.com.au/*", "*://*.heraldsun.com.au/*",
"*://*.hilltimes.com/*", "*://*.hilltimes.com/*",
"*://*.hindustantimes.com/*", "*://*.hindustantimes.com/*",

View file

@ -80,9 +80,11 @@ function showArchiveLinks() {
currentWindow: true currentWindow: true
}, function (tabs) { }, function (tabs) {
if (tabs && tabs[0] && /^http/.test(tabs[0].url)) { if (tabs && tabs[0] && /^http/.test(tabs[0].url)) {
let url = tabs[0].url.split(/[#\?]/)[0]; let url = tabs[0].url;
let url_enc = encodeURIComponent(url);
let hostname = urlHost(url); let hostname = urlHost(url);
if (!matchDomain(['hbrchina.org'], hostname))
url = url.split(/[#\?]/)[0];
let url_enc = encodeURIComponent(url);
let archive_array = { let archive_array = {
'Archive.today': 'https://archive.today?run=1&url=' + url_enc, 'Archive.today': 'https://archive.today?run=1&url=' + url_enc,
'Google webcache': 'https://webcache.googleusercontent.com/search?q=cache:' + url_enc, 'Google webcache': 'https://webcache.googleusercontent.com/search?q=cache:' + url_enc,

View file

@ -1006,10 +1006,6 @@ var defaultSites = {
domain: "hbr.org", domain: "hbr.org",
block_regex: /cdn\.cxense\.com\// block_regex: /cdn\.cxense\.com\//
}, },
"Harvard Business Review China": {
domain: "hbrchina.org",
allow_cookies: 1
},
"Hearst Communications (newspapers)": { "Hearst Communications (newspapers)": {
domain: "###_usa_hearst_comm", domain: "###_usa_hearst_comm",
group: [ group: [
@ -2731,4 +2727,4 @@ init_custom_flex_domains();
// sites with no fix (background) // sites with no fix (background)
var it_gedi_nofix_domains = ['gelocal.it', 'huffingtonpost.it', 'ilsecoloxix.it', 'limesonline.com', 'repubblica.it']; var it_gedi_nofix_domains = ['gelocal.it', 'huffingtonpost.it', 'ilsecoloxix.it', 'limesonline.com', 'repubblica.it'];
var uk_delinian_nofix_domains = ['insidepandc.com', 'thedeal.com']; var uk_delinian_nofix_domains = ['insidepandc.com', 'thedeal.com'];
var nofix_sites = ['aamulehti.fi', 'africaintelligence.com', 'africaintelligence.fr', 'aftonbladet.se', 'aftenposten.no', 'allgaeuer-zeitung.de', 'asiatimes.com', 'autosport.com', 'badische-zeitung.de', 'bild.de', 'bloomberglaw.com', 'bloombergtax.com', 'borsen.dk', 'businessinsider.de', 'businesslive.co.za', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.com', 'compactmag.com', 'courrierinternational.com', 'deutsche-wirtschafts-nachrichten.de', 'diepresse.com', 'dn.no', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'finance.si', 'ftchinese.com', 'gamestar.de', 'geo.de', 'golem.de', 'handelsblatt.com', 'heise.de', 'hs.fi', 'ilsole24ore.com', 'information.dk', 'investors.com', 'iltalehti.fi', 'jacobinmag.com', 'jeuneafrique.com', 'kleinezeitung.at', 'lavie.fr', 'lavozdegalicia.es', 'law360.com', 'le1hebdo.fr', 'lefigaro.fr', 'leconomiste.com', 'lefilmfrancais.com', 'lemonde.fr', 'lepoint.fr', 'lequipe.fr', 'lesjours.fr', 'liberation.fr', 'limburger.nl', 'lopinion.fr', 'mainpost.de', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mittelbayerische.de', 'monde-diplomatique.fr', 'mondediplo.com', 'moneycontrol.com', 'morningstar.com', 'nachrichten.at', 'nationaljournal.com', 'manager-magazin.de', 'mz.de', 'nature.com', 'nbr.co.nz', 'nn.de', 'ouest-france.fr', 'philonomist.com', 'pnp.de', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'quillette.com', 'republic.ru', 'rheinpfalz.de', 'risk.net', 'rnz.de', 'saechsische.de', 'statnews.com', 'stern.de', 'stimme.de', 'straitstimes.com', 'stratfor.com', 'substack.com', 'sueddeutsche.de', 'suedkurier.de', 'swp.de', 'tagesspiegel.de', 'techcrunch.com', 'the-ken.com', 'theinformation.com', 'theinitium.com', 'themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'volksstimme.de', 'welt.de', 'weser-kurier.de', 'wiwo.de', 'worldpoliticsreview.com', 'ynet.co.il'].concat(it_gedi_nofix_domains, uk_delinian_nofix_domains); var nofix_sites = ['aamulehti.fi', 'africaintelligence.com', 'africaintelligence.fr', 'aftonbladet.se', 'aftenposten.no', 'allgaeuer-zeitung.de', 'asiatimes.com', 'autosport.com', 'badische-zeitung.de', 'bild.de', 'bloomberglaw.com', 'bloombergtax.com', 'borsen.dk', 'businessinsider.de', 'businesslive.co.za', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.com', 'compactmag.com', 'courrierinternational.com', 'deutsche-wirtschafts-nachrichten.de', 'diepresse.com', 'dn.no', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'finance.si', 'ftchinese.com', 'gamestar.de', 'geo.de', 'golem.de', 'handelsblatt.com', 'hbrchina.org', 'heise.de', 'hs.fi', 'ilsole24ore.com', 'information.dk', 'investors.com', 'iltalehti.fi', 'jacobinmag.com', 'jeuneafrique.com', 'kleinezeitung.at', 'lavie.fr', 'lavozdegalicia.es', 'law360.com', 'le1hebdo.fr', 'lefigaro.fr', 'leconomiste.com', 'lefilmfrancais.com', 'lemonde.fr', 'lepoint.fr', 'lequipe.fr', 'lesjours.fr', 'liberation.fr', 'limburger.nl', 'lopinion.fr', 'mainpost.de', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mittelbayerische.de', 'monde-diplomatique.fr', 'mondediplo.com', 'moneycontrol.com', 'morningstar.com', 'nachrichten.at', 'nationaljournal.com', 'manager-magazin.de', 'mz.de', 'nature.com', 'nbr.co.nz', 'nn.de', 'ouest-france.fr', 'philonomist.com', 'pnp.de', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'quillette.com', 'republic.ru', 'rheinpfalz.de', 'risk.net', 'rnz.de', 'saechsische.de', 'statnews.com', 'stern.de', 'stimme.de', 'straitstimes.com', 'stratfor.com', 'substack.com', 'sueddeutsche.de', 'suedkurier.de', 'swp.de', 'tagesspiegel.de', 'techcrunch.com', 'the-ken.com', 'theinformation.com', 'theinitium.com', 'themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'volksstimme.de', 'welt.de', 'weser-kurier.de', 'wiwo.de', 'worldpoliticsreview.com', 'ynet.co.il'].concat(it_gedi_nofix_domains, uk_delinian_nofix_domains);