Last active
August 10, 2022 17:50
-
-
Save iamandrewluca/5c255dbfbdc6f79756af57cf8f0d8443 to your computer and use it in GitHub Desktop.
Add a script to page #bookmarklet
This file contains 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: ((s) => { | |
"use strict"; | |
if (s === atob("JXM=")) s = prompt(); | |
/** | |
* More bookmarklets at | |
* https://gist.github.com/iamandrewluca/61feacf07bc4f2f50e70f986c2e9b2d2 | |
* When used as a browser search engine `s` will be what user typed in address bar | |
*/ | |
const script = document.createElement("script"); | |
script.type = "text/javascript"; | |
script.src = s; | |
document.head.appendChild(script); | |
})(`%s`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment