• 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.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.
    • WildEnte
      W
      WildEnte Soprano Patron @kyu3a
      last edited by

      @kyu3a said in Command Chain Recipes:

      By this chain, You will be able to capture and tweet quickly!

      I lack the skills to find out ... is there an equivalent to capture and toot (on vivaldi.social)?

      Usually on Win11 running Vivaldi Snapshot builds. Opinionated about working efficiently with email. Folders are evil | Mail workflow: receive, read, reply, mark as read, done.

      nomadic
      N
      kyu3a
      K
      2 Replies Last reply
      Reply Quote 0
      • luetage
        L
        luetage Supporters Soprano @janrif
        last edited by

        @janrif But then you don’t get stuck on the last step, but right after the first step, namely showing mail, as expected. Whatever it is you’re trying to do.

        github ◊ vfm

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

          @WildEnte You would probably have to use the api ☛ https://docs.joinmastodon.org/client/intro/

          github ◊ vfm

          WildEnte
          W
          1 Reply Last reply
          Reply Quote 0
          • WildEnte
            W
            WildEnte Soprano Patron @luetage
            last edited by

            @luetage well, the problem here is the lack of competence on my end, which ends quite quickly after copy & paste.

            Usually on Win11 running Vivaldi Snapshot builds. Opinionated about working efficiently with email. Folders are evil | Mail workflow: receive, read, reply, mark as read, done.

            1 Reply Last reply Reply Quote 0
            • nomadic
              N
              nomadic Soprano @WildEnte
              last edited by

              @WildEnte Seems Mastodon has a fairly similar "share" URL. There is a bit or trouble if you need to figure out the correct instance, but in this case, since you know it is Vivaldi Social, it should be easy.

              Give this a try in place of the Twitter part:

              javascript:window.open("https://social.vivaldi.net/share?text="+encodeURIComponent(document.title)+" "+encodeURIComponent(location.href))
              

              And you could probably use some JS from this project if you needed a way to determine the correct instance.


              @WildEnte said in Command Chain Recipes:

              well, the problem here is the lack of competence on my end, which ends quite quickly after copy & paste.

              Already 90% of the way there to being a full programmer. I concocted that JS by copying from 3 different spots and pasting them together 😁

              WildEnte
              W
              1 Reply Last reply
              Reply Quote 2
              • WildEnte
                W
                WildEnte Soprano Patron @nomadic
                last edited by

                @nomadic very nice and Vivaldi is the instance I use so yey 🙂

                @kyu3a would you edit your post above about the twitter command chain and add @nomadic's code snippet for Mastodon? That way it would all be in one place

                Now if only I had really intersting things to toot about...

                Usually on Win11 running Vivaldi Snapshot builds. Opinionated about working efficiently with email. Folders are evil | Mail workflow: receive, read, reply, mark as read, done.

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

                  @WildEnte Yes! Just a few changes the above Command Chain.

                  1. Capture Area to Clipboard (or Capture page to Clipboard)
                  2. 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
                  1 Reply Last reply Reply Quote 3
                  • mikeyb2001
                    M
                    mikeyb2001 Supporters Ambassador
                    last edited by

                    i set up 2 Theme changer Commands lol My Matrix theme is activated when i Type My Name is Neo and Jarvis system activates by typing i am iron man lol

                    Michael Burke
                    Vivaldi Links 🔗 Search Engine collection Windows 10(Laptop)|Android 15(Mobile)

                    1 Reply Last reply Reply Quote 4
                    • K
                      kjvdven @pafflick
                      last edited by

                      @pafflick

                      Removed the html + title, because I only needed the link. And this is faster then the other copy url solution from the tips.

                      javascript: function copy(c) {   c.clipboardData.setData("text", location.href);   c.preventDefault(); } document.addEventListener("copy", copy); document.execCommand("copy"); document.removeEventListener("copy", copy); history.replaceState({}, "", location.href);
                      
                      Y
                      1 Reply Last reply
                      Reply Quote 0
                      • mikeyb2001
                        M
                        mikeyb2001 Supporters Ambassador
                        last edited by mikeyb2001

                        So I made a custom command chain to open Vivaldi help articles and the forums simultaneously and just recently deleted the default Vivaldi help And replaced it with my command chain in the Help menu as well as assign F1 to execute the command instead of just triggering help it opens the forums as well

                        1.Vivaldi Help
                        2. Open link in New tab:Forum.vivaldi.net
                        3.Tile vertically

                        Michael Burke
                        Vivaldi Links 🔗 Search Engine collection Windows 10(Laptop)|Android 15(Mobile)

                        1 Reply Last reply Reply Quote 3
                        • Y
                          yashpalgoyal1304 Ambassador @kjvdven
                          last edited by

                          @kjvdven said in Command Chain Recipes:

                          because I only needed the link.

                          C-l (focus address bar field) > C-c (copy)

                          does this not work for u?

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

                            @yashpalgoyal1304 This is about command chains, not commands entered manually in series.

                            github ◊ vfm

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

                              I have a Command Chain button before the URL Field to copy the URL. I use it frequently.

                              • Focus Address Field
                              • Delay 10ms
                              • Copy
                              • Delay 10ms
                              • Focus Page

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

                              Granite1
                              G
                              1 Reply Last reply
                              Reply Quote 1
                              • Y
                                yashpalgoyal1304 Ambassador
                                last edited by

                                any working one for copying title?

                                @yashpalgoyal1304 said in Copy Page Title:

                                @pafflick said in Copy Page Title:

                                Alternatively, add this as the Command Parameter, in order to preserve the URL in the address field:

                                javascript:navigator.clipboard.writeText(document.title);history.replaceState({},"",location.href);
                                

                                This used to work, but ain't working now, I guess the update broke it,

                                DoctorG
                                D
                                1 Reply Last reply
                                Reply Quote 0
                                • DoctorG
                                  D
                                  DoctorG Soprano @yashpalgoyal1304
                                  last edited by

                                  @yashpalgoyal1304 Broke in Chromium 120, too.

                                  _bug hunter · Volunteer helper · Sopranos tester · Language DE,EN · ♀👵
                                  Known old dragon lady: Gwen aka Dr. Gwen Agon aka GwenDragon aka DoctorGTesting


                                  Linux Debian 12 KDE X11 / Windows 11 Pro
                                  Intel i5-7400 / NVidia GT 710

                                  1 Reply Last reply Reply Quote 1
                                  • I
                                    idurand
                                    last edited by idurand

                                    Search current query in 3 different engines (Google, DuckDuckGo, and Brave)

                                    I have been using this command chain for some time now and it has worked well for me, so I thought of sharing it here.

                                    Basically, if you are in a search engine (which uses q or query as url search param), then this command chain will open the same search query in Google, DuckDuckGo, and Brave and tile to grid:

                                    1. Open Link in Current Tab
                                      Command Parameter:

                                      javascript:(function(){var urlParams = new URLSearchParams(window.location.search); var queryValue = urlParams.get('q') || urlParams.get('query') || ''; window.open( 'https://www.google.com/search?q=' + encodeURIComponent(queryValue));})();
                                      
                                    2. Delay
                                      Command Parameter: 1000

                                    3. Open Link in Current Tab
                                      Command Parameter:

                                      javascript: (function () { var urlParams = new URLSearchParams(window.location.search); var queryValue = urlParams.get('q') || urlParams.get('query') || ''; window.open('https://duckduckgo.com/?q=' + encodeURIComponent(queryValue)); })();
                                      
                                    4. Select Current Tab

                                    5. Delay
                                      Command Parameter: 500

                                    6. Select Previous Tab

                                    7. Delay
                                      Command Parameter: 500

                                    8. Stack Tabs

                                    9. Delay
                                      Command Parameter: 500

                                    10. Open Link in Current Tab
                                      Command Parameter:

                                      javascript:(function () { var urlParams = new URLSearchParams(window.location.search); var queryValue = urlParams.get('q') || urlParams.get('query') || ''; window.open( 'https://search.brave.com/search?q=' + encodeURIComponent(queryValue) + '&source=desktop');})();
                                      
                                    11. Delay
                                      Command Parameter: 100

                                    12. Tile to Grid

                                    Granite1
                                    G
                                    1 Reply Last reply
                                    Reply Quote 5
                                    • aminought
                                      A
                                      aminought
                                      last edited by

                                      If you are a romantic and want to please your beloved with just one button:

                                      1. Open Link in New Tab: https://web.telegram.org/k/#@{login}
                                      2. Delay: 1000
                                      3. Open Link in Current Tab:
                                      javascript:(() => {
                                          s = document.getElementsByClassName('input-message-input scrollable scrollable-y no-scrollbar')[0];
                                          s.innerHTML = "I love you ❤️";
                                          const e = new KeyboardEvent("keydown", {
                                              view: window,
                                              key: 'Enter',
                                              code: 'Enter',
                                              keyCode: 13,
                                              bubbles: true,
                                              cancelable: true,
                                          });
                                          s.dispatchEvent(e);
                                      })()
                                      
                                      1. Delay: 500
                                      2. Close Tab
                                      1 Reply Last reply Reply Quote 5
                                      • aminought
                                        A
                                        aminought
                                        last edited by

                                        If you want to use Yandex for page translation + tiling. Actually, you can choose your favorite translator and modify this command chain:

                                        1. Move Tabs to End. First, move the tab to the end of the group. Without this, the link will open at the end as well and be placed next to the previous tab, not the last one.
                                        2. Delay: 200
                                        3. Open Link in Current Tab:
                                        javascript:(() => {
                                            u = "https://translate.yandex.ru/translate?view=compact&url=" + encodeURIComponent(location.href);
                                            window.open(u);
                                        })()
                                        
                                        1. Delay: 200
                                        2. Select Previous Tab
                                        3. Delay: 200
                                        4. Tile Vertically
                                        5. Delay: 200
                                        6. Deselect Tabs
                                        1 Reply Last reply Reply Quote 3
                                        • aminought
                                          A
                                          aminought
                                          last edited by

                                          If you use my previous command chain and want to change source language:

                                          1. Open Link in Current Tab:
                                          javascript:(()=>{
                                              url = location.href;
                                              if (url.includes('translated.turbopages.org')) {
                                                  var lang = prompt('Choose source lang:', 'en');
                                                  url = url.replace(/..(-[^0-9]+)/ig, lang + '$1');
                                                  window.location = url;
                                              } else {
                                                  history.replaceState({}, "", location.href);
                                                  alert('Not translated page!');
                                              }
                                          })()
                                          

                                          The language is specified as a locale: en, de, ru, es, no and so on.

                                          1 Reply Last reply Reply Quote 1
                                          • aminought
                                            A
                                            aminought
                                            last edited by

                                            Tab Scroll Smooth

                                            javascript:(() => {
                                                let o = window.scrollY;
                                                if (o > 0) {
                                                    window.sessionStorage.setItem("tabOffset", o);
                                                    window.scrollTo({top: 0, behavior: 'smooth'});
                                                } else {
                                                    window.scrollTo({top: window.sessionStorage.getItem("tabOffset") || 0, behavior: 'smooth'});
                                                }
                                                history.replaceState({}, "", location.href);
                                            })()
                                            

                                            Actually, I found more useful commands for myself:

                                            1. Scroll Up:
                                            javascript:(() => {
                                                let o = window.scrollY;
                                                if (o > 0) {
                                                    window.sessionStorage.setItem("tabOffset", o);
                                                    window.scrollTo({top: 0, behavior: 'smooth'});
                                                }
                                                history.replaceState({}, "", location.href);
                                            })();
                                            
                                            1. Scroll Down
                                            javascript:(() => {
                                                let o = window.scrollY;
                                                if (o == 0) {
                                                    window.scrollTo({top: window.sessionStorage.getItem("tabOffset") || 0, behavior: 'smooth'});
                                                }
                                                history.replaceState({}, "", location.href);
                                            })()
                                            

                                            Now these commands can be assigned to mouse gestures up and down respectively, very useful and nice.

                                            oudstand
                                            O
                                            1 Reply Last reply
                                            Reply Quote 1
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            • 1
                                            • 2
                                            • 5
                                            • 6
                                            • 7
                                            • 8
                                            • 9
                                            • 10
                                            • 11
                                            • 12
                                            • 7 / 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