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

Vivaldi

  • Browser
  • Mail
  • News
  • Community
  • About

Navigation

    • Home
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. Let's talk about Vivaldi
    3. Tips & Tricks
    4. Command Chain Recipes

    Command Chain Recipes

    Tips & Tricks
    45
    235
    57.9k
    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.
    • luetage
      L
      luetage Supporters Soprano @Granite1
      last edited by

      @Granite1 That’s why you should use a batch script ☛ https://forum.vivaldi.net/post/10592. It automates the manual steps. Is a little work to set up, but you’ll get years and years of use out of it.

      github ◊ vfm

      Granite1
      G
      1 Reply Last reply
      Reply Quote 1
      • Granite1
        G
        Granite1 @luetage
        last edited by

        @luetage:

        That’s why you should use a batch script

        Many thanks. I will take a look. Today I have been modding a lot but stayed away from the JS part.

        1 Reply Last reply Reply Quote 0
        • Pesala
          P
          Pesala Ambassador @Granite1
          last edited by

          @Granite1 I already have Shift+C assigned to my Quick Command Chain to copy the page address, but it is easier to use the button than to remember which combination with C executes the Quick Command.

          Blog • Vivaldi Review • Server Status
          Win 10 64-bit build 19045.2486 • Snapshot 7.4.3683.28 (64-bit)

          Granite1
          G
          1 Reply Last reply
          Reply Quote 0
          • Granite1
            G
            Granite1 @Pesala
            last edited by

            @Pesala:

            I already have Shift+C assigned to my Quick Command Chain to copy the page address

            I have key A (for Address) assigned to it.

            1 Reply Last reply Reply Quote 0
            • oudstand
              O
              oudstand Supporters @Granite1
              last edited by

              @Granite1 I set up a mouse gesture for it.

              1 Reply Last reply Reply Quote 0
              • PaRr0tBoy
                P
                PaRr0tBoy @pafflick
                last edited by

                @pafflick Nothing happened when I executed this

                pafflick
                P
                1 Reply Last reply
                Reply Quote 0
                • pafflick
                  P
                  pafflick Vivaldi Team @PaRr0tBoy
                  last edited by

                  @PaRr0tBoy I just tested it and it still works here. 🤔

                  PaRr0tBoy
                  P
                  1 Reply Last reply
                  Reply Quote 0
                  • PaRr0tBoy
                    P
                    PaRr0tBoy @pafflick
                    last edited by PaRr0tBoy

                    @pafflick I dunno, I copied it straight and executed but nothing happened.Never Mind I fixed it with chatgpt. This works for me. Thanks for your response anyway

                    {"category":"CATEGORY_COMMAND_CHAIN","chain":[{"defaultValue":"https://vivaldi.com","key":"0b01337b-4c13-4197-90c8-179c5c91cfff","label":"在当前标签页打开链接","name":"COMMAND_OPEN_LINK_CURRENT","param":"javascript:(function() {   function copyToClipboard(e) { \tconst htmlContent = `<a href=\"${location.href}\">${document.title}</a>`; \te.clipboardData.setData('text/html', htmlContent); \te.clipboardData.setData('text/plain', `[${document.title}] (${location.href})`); \te.preventDefault();   }   document.addEventListener('copy', copyToClipboard);   document.execCommand('copy');   document.removeEventListener('copy', copyToClipboard); })();"}],"key":"fce727fa-b3f2-4a70-ab88-d378f2003fcf","label":"复制富文本链接","name":"COMMAND_fce727fa-b3f2-4a70-ab88-d378f2003fcf"}
                    
                    1 Reply Last reply Reply Quote 0
                    • Andrecon
                      A
                      Andrecon @kyu3a
                      last edited by

                      @kyu3a Hey do you know how I can make it post to mastodon.social?

                      kyu3a
                      K
                      1 Reply Last reply
                      Reply Quote 0
                      • kyu3a
                        K
                        kyu3a Ambassador @Andrecon
                        last edited by

                        @Andrecon I made the command-chain to post the title and URL of opening webpage to Vivaldi Social. What you want to know is how to customize this command-chain to be able post to mastodon.social?

                        If it is so. I think if you change the url part of paramenter of my command-chain, You will be able to post to mastodon.social.

                        【My command-chain】

                        • Command 1 :Open Link in New Tab
                        • Paramenter:
                        javascript:window.open("https://social.vivaldi.net/share?text="+encodeURI(document.title)+"&url="+location.href); 
                        

                        【mastodon.social】

                        • Command 1 :Open Link in New Tab
                        • Paramenter:
                        javascript:window.open("https://mastodon.social/share?text="+encodeURI(document.title)+"&url="+location.href); 
                        
                        Andrecon
                        A
                        1 Reply Last reply
                        Reply Quote 0
                        • Andrecon
                          A
                          Andrecon @kyu3a
                          last edited by

                          @kyu3a Thanks, but after clicking "Capture", it doesn't do anything

                          kyu3a
                          K
                          1 Reply Last reply
                          Reply Quote 0
                          • kyu3a
                            K
                            kyu3a Ambassador @Andrecon
                            last edited by kyu3a

                            @Andrecon You want to make is "Caputure and Toot", isn't it? If so, it works in my Vivaldi. I used Vivaldi Snapshot 7.2.3621.36 on macOS Sequoia 15.3.1 (M1 Macbook Air). The command chain I am using is below.

                            1. Capture Area to Clipboard (or Capture page to Clipboard)
                            2. Delay (Parameter:1000)
                            3. Open Link in Current Tab

                            Parameter:

                            javascript:window.open("https://social.vivaldi.net/share?text="+encodeURI(document.title)+"&url="+location.href);
                            
                            1. Delay (Parameter:2000)
                            2. Paste

                            Perhaps the URL part of above mastodon.social is wrong. I don't have a mastodon.social account, so I can't try with mastodon.social.

                            Or If the image does not attach on the following screen, then the paste is not working. That happens sometimes in my Vivaldi. If that happens, I think you can use the keyboard shortcut to paste and the captured image will be attached.

                            スクリーンショット 2025-03-07 19.18.04.JPG

                            Andrecon
                            A
                            2 Replies Last reply
                            Reply Quote 0
                            • Andrecon
                              A
                              Andrecon @kyu3a
                              last edited by

                              @kyu3a well yea. I kinda needed the whole thing and thx. Ill check it later

                              1 Reply Last reply Reply Quote 0
                              • Andrecon
                                A
                                Andrecon @kyu3a
                                last edited by

                                @kyu3a I have vivaldi social acc too. still didn't work...

                                kyu3a
                                K
                                1 Reply Last reply
                                Reply Quote 0
                                • kyu3a
                                  K
                                  kyu3a Ambassador @Andrecon
                                  last edited by

                                  @Andrecon Really? It works on my Vivaldi. I have 3 questions.

                                  1. When you execute this comman-chain, does capture mode show?

                                  スクリーンショット 2025-03-08 6.55.09.JPG

                                  1. Does capture feature work? (Let's try to save JPEG or PNG. )

                                  スクリーンショット 2025-03-08 6.54.18.JPG

                                  1. Does the textarea like this show? ( If this textarea show and not image, Let's do paste keybord shorcut Ctrl+V or Cmd+V)

                                  alt text

                                  By the way, If I execute this command-chain, it will look something like this.

                                  スクリーンショット 2025-03-08 6.54.46.JPG

                                  luetage
                                  L
                                  Andrecon
                                  A
                                  4 Replies Last reply
                                  Reply Quote 0
                                  • luetage
                                    L
                                    luetage Supporters Soprano @kyu3a
                                    last edited by

                                    @kyu3a Maybe all that needs to be done is increasing the delays. I would set them to 8 seconds to make sure it’s not the issue.

                                    github ◊ vfm

                                    1 Reply Last reply Reply Quote 1
                                    • Andrecon
                                      A
                                      Andrecon @kyu3a
                                      last edited by

                                      @kyu3a everything works until 3. 3 and 4 nono

                                      1 Reply Last reply Reply Quote 0
                                      • Andrecon
                                        A
                                        Andrecon @kyu3a
                                        last edited by Andrecon

                                        @kyu3a oh wait. it works until 2. it doesn't copy. saving works

                                        1 Reply Last reply Reply Quote 0
                                        • Andrecon
                                          A
                                          Andrecon @kyu3a
                                          last edited by

                                          @kyu3a can you send me the command chain export command? i just installed the mod. maybe that works

                                          kyu3a
                                          K
                                          1 Reply Last reply
                                          Reply Quote 0
                                          • kyu3a
                                            K
                                            kyu3a Ambassador @Andrecon
                                            last edited by

                                            @Andrecon Quick commands are currently not exportable. If you cannot copy to the clipboard with the capture function, then there may be a problem with the capture function.

                                            I am currently using the latest beta version of Vivaldi. I can copy to the clipboard with the capture function. So maybe this quick command will work after you update.

                                            And please try to make a quick command with just the “3” of the above quick command. If you run that one, you should be able to post the title and URL of the page you have open now.

                                            Andrecon
                                            A
                                            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
                                            • 2
                                            • 8
                                            • 9
                                            • 10
                                            • 11
                                            • 12
                                            • 11 / 12
                                            • 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