• Community
    • Community
    • Vivaldi Social
    • Blogs
  • Forum
    • Vivaldi Forum
    • Categories
    • Recent
    • Popular
  • Themes
    • Vivaldi Themes
    • My Themes
    • FAQ
  • Contribute
    • Contribute
    • Volunteer
    • Donate
  • Browser
    • Vivaldi Browser
    • Latest News
    • Snapshots
    • Help
Register Login

Vivaldi

  • Community
  • Themes
  • Contribute
  • Browser

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

    Scheduled Pinned Locked Moved Tips & Tricks
    235 Posts 45 Posters 72.5k Views 34 Watching
    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.
    • Pesala
      P
      Pesala Ambassador @kyu3a
      last edited by

      @kyu3a Drag the camera icon to the address bar, then you can hide the status bar.

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

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

      @pesala Thank you for replying! I could caputre without showing Status-bar.

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

      Funny command chains were introduced in Makeuseof.com. It is "Netflix Mode". This chains will change Vivaldi to the mode watching Netflix for a hour intently.

      1. Open Link in New Tab (Command Parameter: netflix.com)
      2. Fullscreen Mode
      3. Delay (Command Parameter: 5000)
      4. Mute Other Tabs
      5. Delay (Command Parameter: 3600000) (For 1 Hour)
      6. Unmute Other Tabs
      7. Fullscreen Mode
      8. Close Tab

      Source:
      How to Use Vivaldi Command Chains to Simplify Your Workflow
      https://www.makeuseof.com/how-to-use-vivaldi-commands/

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

      general question:
      is it possible, to adress the guestwindow?
      at the moment, we can't give the URL of a tab (or a link) to guest window (links only to other profiles). with the command chain it would be possible, but I encountered, that I can't give the adress to a (new) guest window

      any hints or tricks?

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

      @derday Window commands of any kind are excluded from command chains, because a command chain runs as a process of the current window. I hope there will be a solution or workaround to this at some point.

      github ◊ vfm

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

      These command chains had been featured in OP previously. Moved to collect links to all command chains instead.

      Inspect UI

      Opens DevTools for the user interface.

      1. Open Link in New Tab
        Paramenter: vivaldi://experiments
      2. Delay
        Parameter: 50
      3. Developer Tools
      4. Close Tab
      {"category":"CATEGORY_COMMAND_CHAIN","chain":[{"defaultValue":"https://vivaldi.com","key":"f57b8092-9426-4bc8-8e39-fcf3e315b065","label":"Open Link in New Tab","name":"COMMAND_OPEN_LINK_DEFAULT","param":"vivaldi://experiments"},{"defaultValue":1000,"key":"2eb81004-6703-46db-9933-6afcfde924e4","label":"Delay","name":"COMMAND_CHAINED_SLEEP","param":50},{"key":"e6a1c7d5-21ad-4195-bc9e-95ebcb6ee2eb","label":"Toggle Developer Tools","name":"COMMAND_DEVTOOLS_INSPECTOR"},{"key":"f0a3a628-6977-4812-ab11-96a1d1fbc08d","label":"Close Tab","name":"COMMAND_CLOSE_TAB"}],"key":"cl12fs5mr00i42z5wtv7rvu1b","label":"Inspect UI","name":"COMMAND_cl12fs5mr00i42z5wtv7rvu1b"}
      

      Copy Page Address

      Copies current URL to the clipboard. Already available native as mouse gesture and from menu, but not as keyboard shortcut or quick command.

      1. Focus Address Field
      2. Delay
        Parameter: 100
      3. Select All
      4. Copy
      5. Delay
        Parameter: 500
      6. Focus Page
      {"category":"CATEGORY_COMMAND_CHAIN","chain":[{"key":"96a396d8-d485-4f61-926b-bdab1eddaf94","label":"Focus Address Field","name":"COMMAND_FOCUS_ADDRESSFIELD"},{"defaultValue":1000,"key":"2eb81004-6703-46db-9933-6afcfde924e4","label":"Delay","name":"COMMAND_CHAINED_SLEEP","param":100},{"key":"ce41214f-6878-42ef-b120-3deb06cfcf2e","label":"Select All","name":"COMMAND_CLIPBOARD_SELECT_ALL"},{"key":"6dae1e1a-695b-41c5-9ca9-deb1fabe9cc9","label":"Copy","name":"COMMAND_CLIPBOARD_COPY"},{"defaultValue":1000,"key":"2eb81004-6703-46db-9933-6afcfde924e4","label":"Delay","name":"COMMAND_CHAINED_SLEEP","param":500},{"key":"f71373d5-f966-4603-b7c5-a4a1722b3989","label":"Focus Page","name":"COMMAND_FOCUS_WEBVIEW"}],"key":"cl12ftdyo00i52z5wyg8ux8vy","label":"Copy Page Address","name":"COMMAND_cl12ftdyo00i52z5wyg8ux8vy"}
      

      Tab Scroll

      Scrolls to top of the current page and scrolls back to initial position when toggled again. This is an existing browser modification, but works very well as command chain when assigning a shortcut to it. I’m using Shift-PageDown.

      1. Open Link in Current Tab
        Parameter: javascript:(()=>{let o=window.pageYOffset;if(o>0){window.sessionStorage.setItem("tabOffset",o);window.scrollTo(0,0)}else{window.scrollTo(0,window.sessionStorage.getItem("tabOffset")||0)}history.replaceState({},"",location.href)})();
      {"category":"CATEGORY_COMMAND_CHAIN","chain":[{"defaultValue":"https://vivaldi.com","key":"0b01337b-4c13-4197-90c8-179c5c91cfff","label":"Open Link in Current Tab","name":"COMMAND_OPEN_LINK_CURRENT","param":"javascript:(()=>{let o=window.pageYOffset;if(o>0){window.sessionStorage.setItem(\"tabOffset\",o);window.scrollTo(0,0)}else{window.scrollTo(0,window.sessionStorage.getItem(\"tabOffset\")||0)}history.replaceState({},\"\",location.href)})();"}],"key":"cl12fv64y00i62z5wbv0ecyiy","label":"Tab Scroll","name":"COMMAND_cl12fv64y00i62z5wbv0ecyiy"}
      

      github ◊ vfm

      Granite1
      G
      1 Reply Last reply
      Reply Quote 2
    • luetage
      L
      luetage Supporters Soprano
      last edited by

      Close Tab Move Left

      1. Previous Tab (by Order)
      2. Delay
        Parameter: 100
      3. Select Next Tab
      4. Close Tab

      Close Tab Move Right

      1. Next Tab (by Order)
      2. Delay
        Parameter: 100
      3. Select Previous Tab
      4. Close Tab

      Control which tab gets activated after closing a tab. I personally use alt-, and alt-. to operate. Currently the only downside is you gotta disable »include active tab in initial selection« in vivaldi://settings/tabs, or both your tabs will be deleted.

      github ◊ vfm

      A
      D
      2 Replies Last reply
      Reply Quote 2
    • luetage
      L
      luetage Supporters Soprano
      last edited by luetage

      Close Stack

      1. Select Current Tab
      2. Close Tab

      There is no keyboard shortcut to close a tab stack, this simple command chain creates it. Works only if your active tab is part of the stack.

      Open Clipboard in New Tab

      1. New Tab
      2. Delay
        Parameter: 300
      3. Focus Address Field
      4. Paste and Go

      Whenever you copy a link by clicking on a dedicated webpage button, or you copied it in another application, this is the way to open the link in a new tab painlessly.

      github ◊ vfm

      neltherion
      N
      H
      2 Replies Last reply
      Reply Quote 8
    • luetage
      L
      luetage Supporters Soprano
      last edited by luetage

      For me personally command chains have replaced bookmarklets. There is no good reason (other than sync) for saving Javascript code as a bookmark when using Vivaldi.

      DeepL

      1. Open Link in Current Tab
        Parameter: javascript:(function%20translate()%7Bfunction%20se(d)%20%7Breturn%20d.selection%20?%20d.selection.createRange().text%20:%20d.getSelection()%20%7Ds%20=%20se(document);for%20(i=0;%20i%3Cframes.length%20&&%20!s;%20i++)s%20=%20se(frames%5Bi%5D.document);if%20(!s%20%7C%7C%20s=='')%20s%20=%20prompt('Enter%20text%20to%20translate%20with%20DeepL','');open('https://www.deepl.com/translator#'+document.documentElement.lang+'/en/'%20+%20(s%20?%20encodeURIComponent(s)%20:%20'')).focus();%7D)();

      Grabs your current selection and sends it to DeepL for translation.

      Dark (Invert)

      1. Open Link in Current Tab
        Parameter: javascript:(d=>{var css=`:root{background-color:#fefefe;filter:invert(100%)}*{background-color:inherit}img:not([src*=".svg"]),video{filter: invert(100%)}`,style,id="dark-theme-snippet",ee=d.getElementById(id);if(null!=ee){ee.parentNode.removeChild(ee)}else{style=d.createElement('style');style.type="text/css";style.id=id;if(style.styleSheet){style.styleSheet.cssText=css}else{style.appendChild(d.createTextNode(css))}(d.head||d.querySelector('head')).appendChild(style)}setTimeout(()=>{const t=window.location.href;window.history.replaceState("stateObj","",t)},300)})(document);

      Similar to the invert filter in page actions. The difference is it tries to leave images alone and it doesn’t reload the page when toggled. See https://gist.github.com/frontdevops/8aea1e0252dd826488dad63319e3ec88

      github ◊ vfm

      pafflick
      P
      luetage
      L
      Granite1
      G
      4 Replies Last reply
      Reply Quote 12
    • luetage
      L
      luetage Supporters Soprano @luetage
      last edited by luetage

      OP contains a collection of all command chains now, for an easier overview going forward.

      github ◊ vfm

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

      @legobuilder26 This requires the exact opposite setting, good find. I dream of selection commands being independent from the setting when called from a command chain.

      github ◊ vfm

      1 Reply Last reply Reply Quote 1
    • shifte
      S
      shifte
      last edited by

      Mute for 3 minutes.
      Cup Noodles Timer

      1, Open Link in New Tab
       parameter: https://www.youtube.com/watch?v=t5CAQU6KsMI (your taste video)
      2, Mute All Tabs
      3, Delay
       parameter: 30000
      4, Delay
       parameter: 30000
      5, Delay
       parameter: 30000
      6, Delay
       parameter: 30000
      7, Delay
       parameter: 30000
      8, Delay
       parameter: 30000
      9, Unmute All Tabs

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

      @shifte haha

      github ◊ vfm

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

      Periodic Reload Context Menu

      To add the periodic reload menu to the Page Context menu so that you don't have to move your mouse cursor to the tab bar:

      • Add a new Command Chain for each reload period that you wish to use: Name the Commands as 1 Minute, 2 Minutes, etc.
      • In Settings, Appearance, Menu Customisation, Page Context Menu, add a new folder named "Periodic Reload*
      • In the new folder, add your Command Chains for 1 Minute, 2 Minutes, etc.

      Periodic Reload Command Chains.png

      Customise Menu.png

      Custom Reload Submenu.png

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

      derDay
      D
      deneban
      D
      2 Replies Last reply
      Reply Quote 3
    • derDay
      D
      derDay Supporters @Pesala
      last edited by

      @pesala
      you can already add this menu without a command chain 🤔
      search for perio at the commands section

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

      @derday Been there, done that, but it does not work. There are no timer settings when the period command is added to the page context menu.

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

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

      @pesala
      strange, works for me since "ages"

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

      @pesala You need to add [Periodic Reload], this will give you the submenu. @derDay is right, it works already.

      github ◊ vfm

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

      @luetage I added the “Periodic Reload” command, not the “[Periodic Reload]” submenu. The former does nothing, and should probably not exist in the list of Application Commands.

      Anyway, if you create Command Chains for each period that you need, you can customise the subfolder to contain only those commands that you actually use.

      It is that time of the month again when the developers need to update a lot of things before the Stable build. The feature request for Right-click menu option for periodic tab reload also needs to be tagged as DONE, which is what led me on this wild-goose-chase.

      I reported the bug as:

      (VB-82802) Periodic Reload Command Does Nothing

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

      1 Reply Last reply Reply Quote 0
    • E
      erazer101
      last edited by pafflick

      I just answered a question here and tought this might be useful for others as well.
      I know there is a "Search Engine with Selection" recipe allready but I think I have found a cleaner way of doing it with just a single javascript line and no delays. The ability to add a custom shortcut for every search engine is also a game changer...

      Result:
      Highlight/select Text, Hit a custom shortcut > a new Tab opens with the results of the search engine of your choice.

      Known Issue:
      Currently only suitable for URLs where the search term is at the end of the URL. (could be solved with some more Javascript)
      I will use google as an example. To change the engine just replace the URL in the parameter below with your searchengine url.
      Here are some working URL examples that you can try.
      'https://www.amazon.com/s?k='
      'https://maps.google.com/?q='
      'https://en.wikipedia.org/wiki/Special:Search/'
      'https://www.ebay.com/sch/?_nkw='

      TIP:
      How to find those URLs if you can't google them like for not so popular sites?
      Here is what i do: I just do a search with the term "TEST" on the site I want the search URL for. Than i check the URL on the result page.
      For example searching TEST on amazon will forward you to:
      https://www.amazon.com/s?k=TEST&__mk_de_DE=ÅMÅŽÕÑ&ref=nb_sb_noss_2
      Than I just delete everything behind the keyword, in this case:
      https://www.amazon.com/s?k=TEST
      Than i hit enter again to check if the shortened URL still gives the expacted result page and in most cases it does.
      Now all you need to do is remove the TEST from the URL as well and you have your search engine URL.
      https://www.amazon.com/s?k=
      But dont forget to add the single quotation marks ' in the parameter!

      nuff said...
      here is the Recipe:

      Chain Name:
      HotkeyHighlightSearch

      Command 1:
      Open Link in Current Tab (Javascript will take care of opening the result in a NEW tab)

      Parameter:
      javascript:var root = 'https://www.google.com/search?q='; var selection= ''+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);var myurl = root+selection;window.open(myurl);

      Now go to Settings>Keyboard>Chains (at the very bottom of the keyboard settings)
      add Shortcut to "HotkeyHighlightSearch" e.q. CTRL+q

      BTW instead of selecting/highlighting text and pressing your shortcut you could also highlight the text and then press F2 and type "HotkeyHighlightSearch" and hit Enter.

      //MODEDIT: added inline code tags

      Granite1
      G
      1 Reply Last reply
      Reply Quote 2
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    • 1
    • 2
    • 3
    • 4
    • 5
    • 11
    • 12
    • 2 / 12
    • First post
      Last post

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