From c6cbac4c32a64b14d2044900ac7d8b24687f437b Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Thu, 13 Aug 2020 23:00:00 +0200 Subject: [PATCH] Fix-update WSJ (disable Chinese amp-redirect) --- contentScript.js | 2 +- sites.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contentScript.js b/contentScript.js index 6166fd34..2f8e08d7 100644 --- a/contentScript.js +++ b/contentScript.js @@ -115,7 +115,7 @@ else if (matchDomain("washingtonpost.com")) { } } -else if (matchDomain("wsj.com")) { +else if (matchDomain("wsj.com") & !matchDomain("cn.wsj.com")) { if (location.href.includes('/articles/')) { const close_button = document.querySelector('div.close-btn[role="button"]'); if (close_button) diff --git a/sites.js b/sites.js index 73e68f8e..b99a558d 100644 --- a/sites.js +++ b/sites.js @@ -174,7 +174,7 @@ var defaultSites = "The Times": "thetimes.co.uk", "The Times Literary Supplement": "the-tls.co.uk", "The Toronto Star": "thestar.com", - "The Wall Street Journal": "wsj.com", + "The Wall Street Journal (not Chinese)": "wsj.com", "The Washington Post": "washingtonpost.com", "Towards Data Science": "towardsdatascience.com", "Trouw": "trouw.nl",