Skip to content

Instantly share code, notes, and snippets.

@iamandrewluca
Last active August 10, 2022 17:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamandrewluca/5c255dbfbdc6f79756af57cf8f0d8443 to your computer and use it in GitHub Desktop.
Save iamandrewluca/5c255dbfbdc6f79756af57cf8f0d8443 to your computer and use it in GitHub Desktop.
Add a script to page #bookmarklet
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