diff --git a/background.js b/background.js index 99681b6..26b45bc 100644 --- a/background.js +++ b/background.js @@ -204,6 +204,7 @@ const remove_cookies_select_hold = { const remove_cookies_select_drop = { 'ad.nl': ['temptationTrackingId'], 'demorgen.be': ['TID_ID'], + 'economist.com': ['rvuuid'], 'ed.nl': ['temptationTrackingId'], 'nrc.nl': ['counter'] } diff --git a/contentScript.js b/contentScript.js index b498ca5..ac0009b 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1,4 +1,4 @@ -var arr_localstorage_hold = ['sfchronicle.com']; +var arr_localstorage_hold = ['sfchronicle.com', 'economist.com']; var localstorage_hold = arr_localstorage_hold.some(function(url) { return window.location.href.indexOf(url) !== -1; }); @@ -206,8 +206,16 @@ if (window.location.href.indexOf("leparisien.fr") !== -1) { } if (window.location.href.indexOf("economist.com") !== -1) { - const wrapper = document.getElementById('bottom-page-wrapper'); - removeDOMElement(wrapper); + document.addEventListener('DOMContentLoaded', () => { + const wrapper = document.getElementById('bottom-page-wrapper'); + removeDOMElement(wrapper); + setTimeout(function () { + const paywall = document.querySelector('.layout-article-regwall');; + if (paywall) { + window.location.reload(true); + } + }, 300); // Delay (in milliseconds) + }); } if (window.location.href.indexOf("bizjournals.com") !== -1) {