How to map an Opera 11.64 address bar button to a keyboard shortcut?

  • Can I map an Opera 11.64 address bar button to a keyboard shortcut?

    Said button is a custom one. It's a http://yourls.org server "bookmarklet" that is the the following javascript call (with 'my_yourls_server.com' substituted for my actual server's name). I'm a keyboard jockey and simply want to avoid having to use the mouse. I see how to edit keyboard shortcuts (I think) but I haven't yet been able to get a keyboard shortcut to click my specific address-bar button.

    javascript:(function(){var%20d=document,w=window,sc=d.createElement('script'),l=d.location.href,enc=encodeURIComponent,ups=l.match(/^[a-zA-Z0-9\+\.-]+:(\/\/)?/)[0],ur=l.split(new%20RegExp(ups))[1],ups=ups.split(/\:/),p='?up='+enc(ups[0]+':')+'&us='+enc(ups[1])+'&ur='+enc(ur)+'&t='+enc(d.title);w.yourls_callback=function(r){if(r.short_url){prompt(r.message,r.short_url);}else{alert('An%20error%20occured:%20'+r.message);}};sc.src='http://my_yourls_server.com/admin/index.php'+p+'&jsonp=yourls';void(d.body.appendChild(sc));})();
  • There is a limit on the length of a script that can be put into a button, but if that works as a button then it should work as a shortcut or gesture as well. The hard part with shortcuts is usually finding a shortcut that isn't already in use, next hardest is choosing an appropriate context. (Getting a shortcut to click the button is unnecessary, just assign it as Go to page, "your script here" ... you may require a comma and 1 after the final quote.)

Log in to reply
 

Looks like your connection to Opera forums was lost, please wait while we try to reconnect.