From f21f0fcdc8afcc6b7ac8007faa60b5df06ac146f Mon Sep 17 00:00:00 2001 From: magnolia1234 <54500520+magnolia1234@users.noreply.github.com> Date: Mon, 11 Nov 2019 21:52:03 +0100 Subject: [PATCH 1/3] Typo Bloomberg Quint --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 320ed96..a2f5043 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ [Baltimore Sun](https://www.baltimoresun.com)\ [Barron's](https://www.barrons.com)\ [Bloomberg](https://www.bloomberg.com)\ -[Bloomberg Quint]('https://www.bloombergquint.com)\ +[Bloomberg Quint](https://www.bloombergquint.com)\ [Business Insider](https://www.businessinsider.com)\ [Caixin](https://www.caixinglobal.com)\ [Chemical & Engineering News](https://cen.acs.org)\ From 33ac5631330adda0a622cff11bb1f97684adab74 Mon Sep 17 00:00:00 2001 From: magnolia1234 <54500520+magnolia1234@users.noreply.github.com> Date: Mon, 11 Nov 2019 22:11:48 +0100 Subject: [PATCH 2/3] Fix NYTimes subscription form --- contentScript.js | 7 +++++++ manifest.json | 1 + 2 files changed, 8 insertions(+) diff --git a/contentScript.js b/contentScript.js index 83ccfbb..7bb832a 100644 --- a/contentScript.js +++ b/contentScript.js @@ -160,6 +160,13 @@ if (window.location.href.indexOf('lemonde.fr') !== -1) { }); } +if (window.location.href.indexOf("nytimes.com") !== -1) { + + const preview_button = document.querySelector('.css-3s1ce0'); + if (preview_button) + preview_button.click(); +} + function removeDOMElement(...elements) { for (let element of elements) { if (element) element.remove(); diff --git a/manifest.json b/manifest.json index c3b085a..2281e85 100644 --- a/manifest.json +++ b/manifest.json @@ -11,6 +11,7 @@ "*://*.ed.nl/*", "*://*.haaretz.co.il/*", "*://*.lemonde.fr/*", + "*://*.nytimes.com/*", "*://*.nzherald.co.nz/*", "*://*.parool.nl/*", "*://*.repubblica.it/*", From f82b1c05641b5c22dc29ba8ad8a159adc89a17e5 Mon Sep 17 00:00:00 2001 From: magnolia1234 <54500520+magnolia1234@users.noreply.github.com> Date: Mon, 11 Nov 2019 23:19:57 +0100 Subject: [PATCH 3/3] Fix Caixin Global --- contentScript.js | 11 ++++++++++- manifest.json | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/contentScript.js b/contentScript.js index 7bb832a..89526db 100644 --- a/contentScript.js +++ b/contentScript.js @@ -161,12 +161,21 @@ if (window.location.href.indexOf('lemonde.fr') !== -1) { } if (window.location.href.indexOf("nytimes.com") !== -1) { - const preview_button = document.querySelector('.css-3s1ce0'); if (preview_button) preview_button.click(); } +if (window.location.href.indexOf("caixinglobal.com") !== -1) { + const appContent = document.getElementById('appContent'); + if (appContent) { + const p_hidden = document.querySelectorAll('p:not([style="display:block;"]'); + for (var i = 0; i < p_hidden.length; i++) { + p_hidden[i].setAttribute('style', 'display:block;'); + } + } +} + function removeDOMElement(...elements) { for (let element of elements) { if (element) element.remove(); diff --git a/manifest.json b/manifest.json index 2281e85..6ab2933 100644 --- a/manifest.json +++ b/manifest.json @@ -8,6 +8,7 @@ "*://*.bizjournals.com/*", "*://*.bloomberg.com/*", "*://*.businessinsider.com/*", + "*://*.caixinglobal.com/*", "*://*.ed.nl/*", "*://*.haaretz.co.il/*", "*://*.lemonde.fr/*",