• Browser
  • Mail
  • News
  • Community
  • About
Register Login
HomeBlogsForumThemesContributeSocial

Vivaldi

  • Browser
  • Mail
  • News
  • Community
  • About

Navigation

    • Home
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    We will be doing maintenance work on Vivaldi Translate on the 11th of May starting at 03:00 (UTC) (see the time in your time zone).
    Some downtime and service disruptions may be experienced.
    Thanks in advance for your patience.

    1. Home
    2. Desktop
    3. Desktop Feature Requests
    4. Custom Quick Commands

    Custom Quick Commands

    Desktop Feature Requests
    quick commands customize
    4
    4
    1.2k
    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.
    • LonM
      L
      LonM Soprano Patron Moderator
      last edited by

      What?

      Allow me to define a javascript function with access to the chrome.* or vivaldi.* api contexts.

      I could then create a named command which acts as an alias to this function, which could take in parameters similar to the zoom command.

      Example use case

      I toggle a specific extension several times a day.

      Currently I need to use either yet another extension to manage these extensions, or open the extensions page and toggle it myself.

      I know I can use the following function to do what I need to do:

      function toggleMyThing(){
          chrome.management.get("nelgpeiopiigofemmicieijbecebpjbo", e => {
             chrome.management.setEnabled(e.id, !e.enabled, ()=>{})
          });
      }
      

      I would like to be able to define this somewhere and call it myself in a quick command:
      0_1543090708157_d0b2c78c-0a02-4cc9-9662-a7d4f9748fb3-image.png

      Related points

      This request is similar in concept to custom buttons, though specific to the quick commands feature.

      I also see some similarities to the page actions, whereby a user can define their own javascripts that can run on a page. Page Actions can be called from quick commands, but don't have access to the aforementioned APIs. They are also lost every update.

      💻 Windows 10 64-bit Sopranos Builds • en-GB • 🗳 vote for features • 🕵️‍♀️ Code of Conduct • 🐞 Report bugs

      A
      1 Reply Last reply
      Reply Quote 27
      • A
        algy @LonM
        last edited by

        @LonM Just a quick email to say that I'd love this.

        My use case: I debug print stylesheets a lot. Potentially, you currently have a long process to perform it (developer tools > ... > more tools > rendering > console > rendering > scroll down > click "print stylesheet"). It'd be quite brilliant if I could create my own custom command to do that.

        I'm guessing most people don't spend quite as much time looking at print stylesheets as me, so it doesn't really make sense for it to be a built-in feature to do that specific thing.

        1 Reply Last reply Reply Quote 0
        • N
          NonlinearFruit
          last edited by

          As a developer, this would be so useful. You could automate all sorts of things. Especially if you could use these aliases in a command chain and take a parameter

          luetage
          L
          1 Reply Last reply
          Reply Quote 0
          • luetage
            L
            luetage Supporters Soprano @NonlinearFruit
            last edited by

            @NonlinearFruit Command chains don’t take parameters at the moment. I wished they could though. Meanwhile it’s possible to create custom keyboard shortcuts and custom buttons with access to the user interface. Both require a javascript modification, but it is very doable and quite handy.

            github ◊ vfm

            1 Reply Last reply Reply Quote 0
            Loading More Posts
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes
            Reply
            • Reply as topic
            Log in to reply
            • 1 / 1
            • First post
              Last post

            Looks like your connection to Vivaldi Forum was lost, please wait while we try to reconnect.

            Copyright © Vivaldi Technologies™ — All rights reserved. Privacy Policy | Code of conduct | Terms of use | Vivaldi Status