Created
October 4, 2022 09:06
-
-
Save toshi75/b96f99eda63bfabb32d145908a97868b to your computer and use it in GitHub Desktop.
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
//Copy source to clipboard | |
javascript:(function(){var o=new XMLSerializer();e = document.createElement('textarea');e.textContent = (o.serializeToString(document.documentElement));document.body.appendChild(e);e.select();document.execCommand('copy');e.remove();})(); | |
//Copy url to clipboard | |
javascript:(function(){e = document.createElement('textarea');e.textContent = document.URL;document.body.appendChild(e);e.select();document.execCommand('copy');e.remove();})(); | |
//Duplicate tab | |
javascript:window.open(location.href) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment