Created
September 27, 2022 08:34
-
-
Save obar1/ebebdfb6a7cb6d1c25cd061c67fb1a27 to your computer and use it in GitHub Desktop.
trick to drop http:// or https:// from address copied in clipbaord
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(){ | |
function executeCopy(th, turl) { | |
var input = document.createElement('textarea'); | |
document.body.appendChild(input); | |
input.value = turl.replace(th.concat('//'),''); | |
input.select(); | |
document.execCommand('Copy'); | |
input.remove(); } | |
executeCopy(window.location.protocol, window.location.href); })(); |
click on it on https://something.com/abc
you get something.com/abc
in clipboard
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
just save this a bookmark in your browser
