diff --git a/README.md b/README.md index 7f79633..6710f0b 100755 --- a/README.md +++ b/README.md @@ -80,6 +80,7 @@ [Harper's Magazine](https://harpers.org)\ [Hartford Courant](https://www.courant.com)\ [Harvard Business Review](https://www.hbr.org)\ +[Harvard Business Review China](https://www.hbrchina.org)\ [Herald Sun](https://www.heraldsun.com.au)\ [Het Financieel Dagblad](https://fd.nl)\ [History Extra](https://www.historyextra.com)\ diff --git a/manifest-ff.json b/manifest-ff.json index b94c5e6..9d8594b 100755 --- a/manifest-ff.json +++ b/manifest-ff.json @@ -76,7 +76,8 @@ "*://*.foreignpolicy.com/*", "*://*.bostonglobe.com/*", "*://*.theathletic.com/*", - "*://*.theathletic.co.uk/*" + "*://*.theathletic.co.uk/*", + "*://*.hbrchina.org/*" ], "js": ["src/js/contentScript.js"] } @@ -280,7 +281,8 @@ "*://*.reuters.com/*", "*://*.expansion.com/*", "*://*.theathletic.com/*", - "*://*.theathletic.co.uk/*" + "*://*.theathletic.co.uk/*", + "*://*.hbrchina.org/*" ], "version": "1.8.0" } diff --git a/src/js/contentScript.js b/src/js/contentScript.js index 3683dfb..82c4ff3 100755 --- a/src/js/contentScript.js +++ b/src/js/contentScript.js @@ -703,6 +703,11 @@ if (matchDomain('elmercurio.com')) { } } }).observe(document, { subtree: true, childList: true }); +} else if (matchDomain('hbrchina.org')) { + const hiddenDiv = document.querySelector('div#the_content'); + if (hiddenDiv) { + hiddenDiv.removeAttribute('style'); + } } function matchDomain (domains) { diff --git a/src/js/sites.js b/src/js/sites.js index 41a31db..94dfefd 100755 --- a/src/js/sites.js +++ b/src/js/sites.js @@ -56,6 +56,7 @@ const defaultSites = { 'Harper\'s Magazine': 'harpers.org', 'Hartford Courant': 'courant.com', 'Harvard Business Review': 'hbr.org', + 'Harvard Business Review China': 'hbrchina.org', 'Herald Sun': 'heraldsun.com.au', 'Het Financieele Dagblad': 'fd.nl', 'History Extra': 'historyextra.com',