Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save cliffparnitzky/3358537 to your computer and use it in GitHub Desktop.
Save cliffparnitzky/3358537 to your computer and use it in GitHub Desktop.
Firefox bookmark with input dialog: Create a new bookmark in firefox and add on this snippet as address. When clicked a dialog for a custom input will open.
javascript:void(location.href="http://www.contao-pool.de/ceris.html?search="+window.prompt("CERIS search:",""))
javascript:void(location.href='http://translate.google.de/#de|en|'+window.prompt("Translate (DE->EN):",""))
javascript:void(location.href='http://translate.google.de/#de|en|'+window.prompt("Translate (DE->EN):",""))
javascript:void(location.href='http://translate.google.de/#de|en|'+window.prompt("Translate (DE->EN):",""))
javascript:void(location.href='http://translate.google.de/#en|de|'+window.prompt("Translate (EN->DE):",""))
javascript:void(location.href='http://translate.google.de/#en|de|'+window.prompt("Translate (EN->DE):",""))
@cliffparnitzky
Copy link
Author

Can also be used for each other URL that will be customized bei user input (e.g. Github issue search)

@allanlaal
Copy link

note that Firefox bookmarklets do not work in about:newtab so you have to replace it with about:blank

you can do this by setting the value of browser.newtab.url to about:blank in about:config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment