Last active
May 4, 2018 16:00
-
-
Save briankung/a81c865ce1430a86010e6762ea25b6f1 to your computer and use it in GitHub Desktop.
Delete Medium crap bookmarklet
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
// This deletes the giant header, the share bar on the left, and the bar on the bottom on Medium sites. | |
// Create a new bookmark and copy either of the following as the "location" of the bookmark | |
javascript:void( | |
[ | |
...document.querySelectorAll('.metabar, .js-stickyFooter, .postActionsBar, aside') | |
].forEach(el => el && el.remove()) | |
) | |
// Or in one line: | |
javascript:void([...document.querySelectorAll('.metabar,.js-stickyFooter,.postActionsBar,aside')].forEach(el=>el&&el.remove())) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment