Created
November 27, 2018 23:55
-
-
Save segdeha/cb1744f747ede30c6108a6628da3d820 to your computer and use it in GitHub Desktop.
Make web pages less annoying by removing most videos and ads as well as elements set to `position: fixed`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){Array.from(document.querySelectorAll('.canvas-yahoovideo,iframe,video')).forEach(video=>video.parentNode.removeChild(video));Array.from(document.querySelectorAll('*')).filter(node=>window.getComputedStyle(node).position==='fixed').forEach(node=>node.style.display='none');}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use this by creating a bookmarklet with the above script as the URL.