diff --git a/README.md b/README.md index 2cb10aa..4d9e406 100644 --- a/README.md +++ b/README.md @@ -860,7 +860,6 @@ Grouped in options:\ ##### East Asia [CommonWealth Magazine Taiwan](https://www.cw.com.tw)* - -[Harvard Business Review China](https://www.hbrchina.org) - [Mainichi Shimbun](https://mainichi.jp) - [Nikkei Asian Review](https://asia.nikkei.com) - [South China Morning Post](https://www.scmp.com) - diff --git a/changelog.txt b/changelog.txt index 832d4a6..8e7fd02 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases Post-release +Remove HBR China (fix obsolete) Fix The Week (css) 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) * v2.4.3.0 (2021-11-07) -Add Harvard Business Review China +Add HBR China Add Mitteldeutsche Zeitung Remove Liberation.fr (fix obsolete) Fix ElMundo.es (amp) @@ -2021,7 +2022,7 @@ Fix Espresso.repubblica.it Fix TheAdvocate.com.au * v1.6.4.1 (2020-01-31) -Add Harvard Business Review Taiwan +Add HBR Taiwan Add Modern Healthcare Add National Review Add The Christian Science Monitor diff --git a/contentScript.js b/contentScript.js index 23f06c6..78206ad 100644 --- a/contentScript.js +++ b/contentScript.js @@ -3572,7 +3572,7 @@ else if (matchDomain('business-standard.com')) { } } 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); } else 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')) { let paywall = document.querySelectorAll('div[class^="paywallcont"]'); if (paywall.length) { diff --git a/manifest.json b/manifest.json index fb8c1d2..50ff3b8 100644 --- a/manifest.json +++ b/manifest.json @@ -295,7 +295,6 @@ "*://*.harpersbazaar.com/*", "*://*.haz.de/*", "*://*.hbr.org/*", - "*://*.hbrchina.org/*", "*://*.heraldsun.com.au/*", "*://*.hilltimes.com/*", "*://*.hindustantimes.com/*", diff --git a/options/popup.js b/options/popup.js index 2bffd39..c12289e 100644 --- a/options/popup.js +++ b/options/popup.js @@ -80,9 +80,11 @@ function showArchiveLinks() { currentWindow: true }, function (tabs) { if (tabs && tabs[0] && /^http/.test(tabs[0].url)) { - let url = tabs[0].url.split(/[#\?]/)[0]; - let url_enc = encodeURIComponent(url); + let url = tabs[0].url; let hostname = urlHost(url); + if (!matchDomain(['hbrchina.org'], hostname)) + url = url.split(/[#\?]/)[0]; + let url_enc = encodeURIComponent(url); let archive_array = { 'Archive.today': 'https://archive.today?run=1&url=' + url_enc, 'Google webcache': 'https://webcache.googleusercontent.com/search?q=cache:' + url_enc, diff --git a/sites.js b/sites.js index 6f840d7..f31e9e4 100644 --- a/sites.js +++ b/sites.js @@ -1006,10 +1006,6 @@ var defaultSites = { domain: "hbr.org", block_regex: /cdn\.cxense\.com\// }, - "Harvard Business Review China": { - domain: "hbrchina.org", - allow_cookies: 1 - }, "Hearst Communications (newspapers)": { domain: "###_usa_hearst_comm", group: [ @@ -2731,4 +2727,4 @@ init_custom_flex_domains(); // sites with no fix (background) 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 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);