You need to be logged in to post in the forums. If you do not have an account, please sign up first.
Stop sites from overtaking shortcuts
Hello,Is there a way to stop sites from overtaking shortcuts? I've noticed that for example google tend to take all input as a search query which is highly annoying! I'm a big fan of single-key shortcuts and I couldn't care less for this 'enhancements' that supposedly should 'speed' my experience :/
Originally posted by woj-tek:
Disable javascriptIs there a way to stop sites from overtaking shortcuts?
Opera 11.64,Puppy Linux 5.6 "Precise" (run from a bootable 1GB USB stick)
I know, but I was hoping for some generic solution (UserJS/Extension) that would only override JS functions that steal the keyboard. A while back similar annoyance was forcing opening in new tab/window and it was quite easy to get rid of this by using UserJS that removed all target=blank...
Catching keyboard input is probably done using some generic API, so in my understanding it should be possible to override it with UserJS?
Catching keyboard input is probably done using some generic API, so in my understanding it should be possible to override it with UserJS?
8. January 2013, 02:21:31 (edited)
Single-key shortcuts are great. I ran into the same issue awhile ago and found a thread which had a userscript that fixed this for Google.
See this reply for the userscript, copy the code into a text document, then see this reply and add the extra code to the existing text, save it with the extension .user.js, then add it to Opera's userscript folder.
Voila! Google no longer hijacks the single-key shortcuts. This works for me.
There's actually an Opera setting to force all links to open only in their original tab. Paste the following into the addressbar, tick the checkbox, then click the 'Save' button. Now you no longer need JS to remove the target attribute.
See this reply for the userscript, copy the code into a text document, then see this reply and add the extra code to the existing text, save it with the extension .user.js, then add it to Opera's userscript folder.
Voila! Google no longer hijacks the single-key shortcuts. This works for me.
Originally posted by woj-tek:
A UserJS that removed all target=blank
There's actually an Opera setting to force all links to open only in their original tab. Paste the following into the addressbar, tick the checkbox, then click the 'Save' button. Now you no longer need JS to remove the target attribute.
opera:config#Ignore%20Target
ScriptKeeper - makes blocking & filtering scripts enjoyable. Also see my Opera blog custom menus, buttons, searches, tips and more!