For example, something like:

  • CTRL+T
  • CTRL+E

...or whatever else. I'd like to have an icon in my browser's toolbar that when clicked executes such a key combination.

Is this directly possible, or would it require creating a plugin? If it would require creating a plugin, how might that be done?

p.s. — I'm using Firefox, but it would be awesome if there was a browser-independent solution.

EDIT: @crazypotato has a good solution for CTRL+SHIFT+DEL as being a link to chrome://browser/content/sanitize.xul in Firefox, but I'm thinking of something that might function more like a keyboard macro.

  • You want create shortcut on bookmark toolbar for hotkey CTRL+SHIFT+DEL what will execute "clear browser history" while CTRL+SHIFT+DEL already execute "clear browser history"? Why you cant make bookmark on url "clear browser history" for firefox (chrome://browser/content/sanitize.xul) for chrome (chrome://settings/clearBrowserData). This question hurt me alot:( Why you can't ask for way to execute "clear browser history" in bookmark toolbar. Aug 25 '14 at 9:48
  • @crazypotato OK chrome://browser/content/sanitize.xul works, wasn't aware of that, thanks! My question is misleading, because I'm more curious if a link could execute any possible key combination, not just CTRL+SHIFT+DEL. Edited just now -- Aug 26 '14 at 5:19
  • Instead you should find how execute function behind hotkey and use it. Aug 26 '14 at 11:13

This can be done using URI scheme but this very not safe and not worth using it. Unless make white list and block everything else for executable files.

First you should register URI scheme for example with this app (windows executable). This app from Local Explorer - File Manager for Chrome, open files and folders on local directories or network shares. Then you can run any file from your drive using any browser.

For next step need create script with Autoit or AHK for send keys.

After install Autoit and Editor. Right click on desktop->New->Autoit Script. Right click on this created file->Edit. Now you should see ScITE window and after line "Add your code below here" add this code:


This script send keys(ctrl+shift+delete) to active window(click on send and press F1 for help). Then in SciTE window press Tools->Build. Now you will get executable in same directory where was Autoit script.

For execute file in browser you should run in address bar or add to bookmark this url:

localexplorer:[full path to executable]



For each combination of hotkeys you should create own Autoit script.

  • I will have to research this, thanks @crazypotato! Aug 30 '14 at 2:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.