by RandomBacon · 7y ago · 0 comments
I had to use a "remove cookie notification" bookmark to be able to read the text.
javascript:(function(){(function () {var i, elements = document.querySelectorAll('body *');for (i = 0; i < elements.length; i++) {if (getComputedStyle(elements[i]).position === 'fixed') {elements[i].parentNode.removeChild(elements[i]);}}})();document.querySelector('body').style.setProperty('overflow','auto','important'); document.querySelector('html').style.setProperty('overflow','auto','important');})()Which should be most popups/cookie notifications. Might break certain websites that try to be clever or "artsy" but as a bookmarklet it shouldn't cause any issues.