Command Chain Recipes
-
This topic is meant to be a place to both collect recipes and ask for advice. Following an overview of all command chains we have accumulated so far:
Collection
- Add Post Search
- Autofill Form Input Fields and Select
- Capture and Tweet
- Clone Tab and Tile Horizontally
- Clone Pinned Tab and Unpin it
- Close Active Panel
- Close Stack
- Close Tab Move Left/Right
- Copy Page Address
- Copy Page Title
- Copy URL & Title of Current Page in Rich Text Format
- Create Bookmark Open Dropdown
- Cup Noodles Timer
- Dark (Invert)
- DeepL
- Embed Youtube
- Enhanced Fullscreen
- Follow PiP
- Follow and Tile
- History Panel Select All
- HotkeyHighlightSearch
- Inspect UI
- Mail Mode/Exit Mail Mode
- Netflix Mode
- New Stacked Tab
- New Top Level Tab at End
- Open Clipboard in New Tab
- Open Selection
- Open Vivaldi Help and Forum
- Periodic Reload Context Menu (Custom)
- Publication Date of Article
- Reverse Image Search
- Romantic
- Rotate Page (Image)
- Save Tab Stack as Session
- Scroll Up / Scroll Down
- Search 2 Engines with Selection and Tile
- Search Query in 3 Different Engines
- Share Current Page with OS Share Menu
- Switch Tab and Mute Others
- Tab Scroll
- Tab Scroll Smooth
- Tile and Deselect
- Tile Link
- Translate and Tile
- Translate and Tile with Different Source Language
- Watch Amazon Prime + Tweetdeck as Webpanel
Backup and Share
Command Chains are not part of Vivaldi Sync. This means we lose our chains when we setup a new profile, or create a separate installation. Inputting everything again is tiresome, especially with a big chain collection. Fortunately @tam710562 has created a custom modification, which can both import and export command chains from and to files and the clipboard. This makes it possible to share chains directly, because he has even coded a direct install button for command chains shared on the forum. It’s definitely worth it and a big help and I would urge you to try it out, even if you haven’t bothered with Javascript modifications before. Here a link to the modification ☛ https://forum.vivaldi.net/post/723047, and here a link to the modifications forum board ☛ https://forum.vivaldi.net/category/52/modifications. Read pinned topics for introduction and help.
Please feel free to share your recipes! This new feature has potential, we should put it to good use and push its limits ️
-
@luetage Sleep is now renamed to Delay
I have Copy Page Address on my Page Context menu. I don't think we need a new Command Chain for that.
Enhanced Fullscreen
- Fullscreen Mode
- Delay: Parameter = 100
- Address Bar
- Bookmark Bar
Clone Tab and Tile Horizontally
- Clone Selected Tabs (active tab included in selection)
- Tile Horizontally
-
@pesala Good point, delay makes more sense than sleep anyway. And yeah, as mentioned in OP, copy page address is a menu item and a mouse gesture. But I want to trigger it with a single key shortcut. I’m sure this will be available as a command and keyboard shortcut at some point in future, until then I’m fine with the chain.
-
Follow and Tile
Creates a follower tab and tiles it with the initial tab, as requested by @syplex.
- Open Link in Current Tab
Parameter:javascript:(()=>{const a=document.getElementsByTagName('a');for(i=0;i<a.length;i++){a[i].setAttribute('target','follow')};setTimeout(()=>{const h=window.location.href;window.history.replaceState('stateObj','',h);a[0].click()},500)})();
- Delay
Parameter: 1000 - Tile Vertically
- Open Link in Current Tab
-
This is great, thanks!
One page I use regularly opens links within the page in a limited fashion on click, but I want to see the full link in the follower tab. The only way to do that is middle click the link, but these are not opened in the follower tab. Any idea on how to do that?
-
@syplex No idea. Can you provide a link?
-
@luetage it's a Jira server in the backlog view.
This page works, but you have to create an account (free) to view it:
Here's another one I found you should be able to use without a login, but it is not the same backlog view. However, a solution here might work on the backlog view:
Basically I want to be able to get the full ticket view in the right tab (background click the ticket number to see the full view).
-
@syplex It’s likely these pages open the links with their own Javascript function at which point this script is helpless. Mind you, I haven’t written follower tabs, I only added some code to make it work well in a command chain with tiling. Another good example is duckduckgo search, doesn’t work there either.
-
@luetage if we could make background tab link opening (ie, shift+click) redirect to the tiled tab it would solve the problem, but I don't know how Vivaldi handles background tab opening, clearly it does something different and maybe ignores the javascript code somehow?
-
Switch tabs and mute inactive tabs
1, Previous Tab(by Order)
or Next Tab(by Oeder)
2, Mute All Tabs
3, Delay
Parameter:300
4, Mute/Unmute TabFor watching Olympic Live on page tiling.
-
Open Selection
Copies the selected text and opens it in a new tab. If there’s no selection, it will use current clipboard contents. If it’s an address, you will navigate to the web page, in any other case it will search your default engine. I’m using the shortcut
Alt-O
for this chain.- Copy
- Quick Commands
- Delay
Parameter:200
- Paste and Go
{"category":"CATEGORY_COMMAND_CHAIN","chain":[{"key":"6dae1e1a-695b-41c5-9ca9-deb1fabe9cc9","label":"Copy","name":"COMMAND_CLIPBOARD_COPY"},{"key":"f8d653f3-1371-4cf2-ab83-b8c62ad98add","label":"Quick Commands","name":"COMMAND_SHOW_QUICK_COMMANDS"},{"defaultValue":1000,"key":"2eb81004-6703-46db-9933-6afcfde924e4","label":"Delay","name":"COMMAND_CHAINED_SLEEP","param":200},{"key":"1ca0b67d-f911-4141-949b-09c728430f2f","label":"Paste and Go","name":"COMMAND_CLIPBOARD_PASTE_AS_PLAIN_TEXT_OR_PASTE_AND_GO"}],"key":"cl4g1bury01j2305zdv63oh2x","label":"Open Selection","name":"COMMAND_cl4g1bury01j2305zdv63oh2x"}
-
This chain is for watching Amazon Prime video with checking and tweeting by Tweetdeck.
I usually hide WEB panel and set the panel display method to "Floating". So, this chain open Amazon Prime video on the current tab. And change the panel display method. And show the panel.
- Open Link in New Tab(現在のタブをリンクで開く)
Paramenter: https://www.amazon.co.jp/gp/browse.html?node=2351649051&ref_=nav_em__aiv_vid_0_2_2_2 - Toggle Floating Panel(パネルのオーバーレイ表示切り替え)
- Panel(パネルを表示 / 非表示)
- Web Panel 1(ウェブパネル 1)
P.S.
This chain is for restoring the settings.- Home(ホームへ移動)
- Toggle Floating Panel(パネルのオーバーレイ表示切り替え)
- Panel(パネルを表示 / 非表示)
- Open Link in New Tab(現在のタブをリンクで開く)
-
Compose Mail
1. Compose New Message
Now, a new message can be composed from any tab and not just M3.
-
@jumpsq That’s interesting, the command »compose new message« is already available as keyboard shortcut, mouse gesture and from quick commands; but only as command chain does it trigger anywhere (no need to visit mail first), as you mentioned. I wonder whether this is a bug.
-
@luetage I reported it as a bug (VB-80380), but I think that it's meant to be like this. It was in the changelog not too long ago that this will now only trigger from M3 directly (though I do not really see any reasoning why this should be the case).
-
@jumpsq The other way around, I think it’s a bug it works as command chain. I would assume the issue is the command can be triggered on a window where m3 is supposed to be unreachable.
-
@luetage Well, it's not an issue, though as it works without issues to compose messages in other windows. But we're derailing - it would need a Gwen now to offer us to split threads ...
-
@jumpsq It’s about command chains. Moreover I will link all shared command chains from OP at some point. I see no issue discussing something like this here.
-
Thanks you @luetage for "Search Engine with Selection"!
This one is for Selected text to be searched in two search engines and tile the result as shown in the gif.
(In reality it's not as smooth because the new tab command opens "Start page" for a moment so it's more flickering..)Search engines url:
Translate - https://translate.google.com/?sl=auto&tl=en&text=%s &op=translate
Nickname: t
Etymology - https://www.google.com/search?q=%s etymology
Nickname: eCommands:
1
Open Link in Current Tab
Parameter:
javascript:(()=>{const c=window.getSelection();const s=e ${c}
;navigator.clipboard.writeText(s);setTimeout(()=>{const t=window.location.href;window.history.replaceState("stateObj","",t)},50)})();2
Delay 2003
New Tab4
Delay 4005
focus Address Field6
Paste and Go7
Previous Tab (Recent)8
Delay 1009
Open Link in Current Tab
Parameter:
javascript:(()=>{const c=window.getSelection();const s=t ${c}
;navigator.clipboard.writeText(s);setTimeout(()=>{const t=window.location.href;window.history.replaceState("stateObj","",t)},50)})();10
Delay 20011
New Tab12
Delay 40013
Focus Address Field14
Paste and Go15
Select Current Tab16
Delay 10017
Select Previous Tab18
Delay 10019
Tile Vertically20
Delay 20021
Stack Tabs.
.
*In my case I used google search for etymology so there is a lot of empty space on left side so I used "Stylus" chrome extension with this code.More instructions here:
https://www.reddit.com/r/vivaldibrowser/comments/fk4cf5/how_to_remove_empty_left_side_of_google_search/#cnt #center_col, .mw #center_col { margin-left: 5px !important } #hdtb-msb-vis { margin-left: 5px !important } .MUFPAc { margin-left: 5px !important } .WE0UJf { margin-left: 5px !important } .A8SBwf { margin-left: 5px !important } /*Border color for dark mode*/ .RNNXgb { border: 2px solid #adb735 !important; margin-left: -25px; } .srp #searchform { top: 9px; margin-top: 0px; } .dodTBe { height: 50px; } /*Something above search*/ .J1hqV { display: none; }
-
@chimeralove In both instances you are using the search engine nickname
e
. Otherwise great job.