• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

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

    Opera for Mac
    2
    2
    700
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Deleted User
      Deleted User last edited by

      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));})();
      
      Reply Quote 0
        1 Reply Last reply
      • sgunhouse
        sgunhouse Moderator Volunteer last edited by

        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.)

        Reply Quote 0
          1 Reply Last reply
        • First post
          Last post

        Computer browsers

        • Opera for Windows
        • Opera for Mac
        • Opera for Linux
        • Opera beta version
        • Opera USB

        Mobile browsers

        • Opera for Android
        • Opera Mini
        • Opera Touch
        • Opera for basic phones

        • Add-ons
        • Opera account
        • Wallpapers
        • Opera Ads

        • Help & support
        • Opera blogs
        • Opera forums
        • Dev.Opera

        • Security
        • Privacy
        • Cookies Policy
        • EULA
        • Terms of Service

        • About Opera
        • Press info
        • Jobs
        • Investors
        • Become a partner
        • Contact us

        Follow Opera

        • Opera - Facebook
        • Opera - Twitter
        • Opera - YouTube
        • Opera - LinkedIn
        • Opera - Instagram

        © Opera Software 1995-2025