Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

@cliffparnitzky cliffparnitzky commented Aug 15, 2012

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

@allanlaal

This comment has been minimized.

Copy link

@allanlaal allanlaal commented Dec 7, 2015

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
You can’t perform that action at this time.