• 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
    58.1k
    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 @MasterLeo29
      last edited by

      @MasterLeo29 It’s an interesting idea, but it doesn’t work for me for some reason. I copy/pasted the code and ran it on a page with video. Tried to switch tabs with both shortcut and clicking and pip didn’t trigger.

      github ◊ vfm

      MasterLeo29
      M
      1 Reply Last reply
      Reply Quote 0
      • MasterLeo29
        M
        MasterLeo29 Ambassador @luetage
        last edited by

        @luetage Seems odd. Did you interact with the page after pasting the code ? (the "drawback" I mentioned).
        Also, was the video running ? Was on a particular website, or in any ? (I tested on Youtube and Twitch)

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

          @MasterLeo29 Tested on youtube. When it reacts to switching tabs it doesn’t switch tabs, fullscreens the video and shows pip as empty overlay. When closing pip manually tab switches afterwards. This is completely broken in my case. Might depend on platform. Maybe it would work better listening for tabs.onActivated, checking whether it’s the video tab and then either showing pip or showing original video depending on the outcome.

          github ◊ vfm

          MasterLeo29
          M
          1 Reply Last reply
          Reply Quote 0
          • MasterLeo29
            M
            MasterLeo29 Ambassador @luetage
            last edited by

            @luetage That's ... very weird. Next time I work on some mod/improv, I'll try improving it. Sorry that it doesnt work for your setup

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

              @MasterLeo29 Might take a look at it at some point. Automatic pip is a good idea.

              github ◊ vfm

              MasterLeo29
              M
              1 Reply Last reply
              Reply Quote 0
              • MasterLeo29
                M
                MasterLeo29 Ambassador @luetage
                last edited by

                @luetage Thanks. The idea actually came from a friend of mine. He as a few "unique" ideas that I try to implement every so often with mods.

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

                  @MasterLeo29 I got this to work on a newer version, don’t know what went wrong before. The required click is absolutely annoying and makes this useless. But this is not your fault of course and I doubt there is something we can do about it. The pip api is user gesture restricted and simulating a user event isn’t possible. I tried different versions as page action and also wrote some of my own, but in the end they all have the same problem.

                  One interesting api would be autopictureinpicture, which is a boolean attribute that can be set on a video. Theoretically it should go into pip when tab or app is changed and exit pip when the tab is activated again. This would make the visibility-change event listener obsolete. I didn’t get it to work though…

                  github ◊ vfm

                  MasterLeo29
                  M
                  1 Reply Last reply
                  Reply Quote 0
                  • MasterLeo29
                    M
                    MasterLeo29 Ambassador @luetage
                    last edited by

                    @luetage Well, Im glad it ended up working for you. As for the required click, I ended up "not noticing" it during my daily use because I usually switch tabs by right click + mouse wheel, which works just fine for this (the "right click" also acts as interacting with the page, so all ended well).

                    About that 'autopictureinpicture', after a quick search it seems like that currently is only implemented on safari browsers (mac/iOS), so its normal that you couldnt get it to work.

                    Maybe soon, when I pick up some other mod, I end up finding a solution for this.

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

                      @MasterLeo29 Yeah, when you change tabs like that, it doesn’t matter. A context click seems to be a user gesture. But if you don’t, the click matters, because you might as well have clicked the pip button and foregone the whole automation. Another problem is that focus seems to be on the pip window when it’s being triggered. It’s hard to get this to work in an effortless manner.

                      github ◊ vfm

                      MasterLeo29
                      M
                      1 Reply Last reply
                      Reply Quote 0
                      • MasterLeo29
                        M
                        MasterLeo29 Ambassador @luetage
                        last edited by

                        @luetage Well ... I did try, I guess. But yeah, to be "generally usable" it needs improvements

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

                          @MasterLeo29 Hopefully the autoPictureInPicture api will be available at some point. I expect it not to require a user gesture, which would solve this cleanly.

                          github ◊ vfm

                          1 Reply Last reply Reply Quote 1
                          • deneban
                            D
                            deneban @Pesala
                            last edited by

                            This post is deleted!
                            1 Reply Last reply Reply Quote 0
                            • stardepp
                              S
                              stardepp Translator Ambassador @luetage
                              last edited by

                              I created this chain of command:

                              https://forum.vivaldi.net/topic/80132/command-chain-toggle-read-view-hide-tabbar

                              🍀 Work spaces changed my work flow🍀Search Engine Collection🍀My Themes🍀Windows11 24H2🍀Motorola Edge 60 Fusion * Android 15🍀

                              1 Reply Last reply Reply Quote 3
                              • D
                                dude99 @luetage
                                last edited by

                                @luetage after v team "fixed" the tab selection bug, now the Select Next Tab command no longer loop at the end of the last tab. So it broke this CC & can't close the first tab in tabbar, it close the last tab instead when Close tab move left... faint

                                Sorry, I'm currently hiatus from updating any of my CSS mod until further notice...
                                luetage
                                L
                                1 Reply Last reply
                                Reply Quote 0
                                • luetage
                                  L
                                  luetage Supporters Soprano @dude99
                                  last edited by

                                  @dude99 This has always been the case, at least in the version of the chain I use. I close tab and move right for first, move left for last tab.

                                  github ◊ vfm

                                  1 Reply Last reply Reply Quote 0
                                  • stardepp
                                    S
                                    stardepp Translator Ambassador
                                    last edited by

                                    New chain of command "Deezer Quiz"

                                    Bild Text

                                    Bild Text

                                    Deezle is a music quiz from Deezer, I enjoy it a lot. Every day there is a different musician to find.

                                    Bild Text

                                    🍀 Work spaces changed my work flow🍀Search Engine Collection🍀My Themes🍀Windows11 24H2🍀Motorola Edge 60 Fusion * Android 15🍀

                                    1 Reply Last reply Reply Quote 0
                                    • neltherion
                                      N
                                      neltherion @luetage
                                      last edited by

                                      @luetage Is there a "Open Selected Text in New Background Tab" command chain as well?

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

                                        @neltherion No, I’m afraid it’s not possibletony_side

                                        github ◊ vfm

                                        1 Reply Last reply Reply Quote 0
                                        • derDay
                                          D
                                          derDay Supporters
                                          last edited by

                                          Clone pinned tab and unpin it

                                          1. clone tab
                                          2. pin/unpin tab

                                          nothin great but practical

                                          1 Reply Last reply Reply Quote 0
                                          • Y
                                            yashpalgoyal1304 Ambassador @ukanuk
                                            last edited by yashpalgoyal1304

                                            @ukanuk said in Command Chain Recipes:

                                            New (empty) Stacked Tab

                                            @ukanuk how to do the same while opening a link from an existing page??

                                            I want smth like the context option of "Open in new tab stack" from vivaldi android browser in vivaldi desktop. It opens the long pressed link in a new tab placed in current/new stack with current tab.

                                            ukanuk
                                            U
                                            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
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 8
                                            • 11
                                            • 12
                                            • 6 / 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