• 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 75.1k 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
      last edited by

      @ukanuk If you enable:

      Include Active Tab in Initial Selection

      1. New Tab
      2. Stack Tabs

      Should stack the new tab with the current tab without any delay, and whatever the new tab position.

      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
    • ukanuk
      U
      ukanuk Ambassador
      last edited by ukanuk

      @Pesala , I only see that option under "Tabs > Tab Features > Tab Selection". Do you see it in a second place? In any case, it was already enabled for all my testing.

      Without changing the "New Tab Position" setting, I found that Vivaldi stacks the new tab with whatever tab is to its left -- "Previous" tab apparently means the one to the left of the current tab, not the previous one by recent order.

      Without the delay, I found that Vivaldi actually stacked the Previous Tab with the second previous tab -- the just-newly-created tab apparently doesn't appear quite quickly enough to be included as part of the initial selection.

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

      New chain Open Selection

      This used to be »Search Engine with Selection«. In an update a while ago we got the ability to search any engine with parameter, which made this previous chain obsolete. The difference to the inbuilt command »Search with Selection« is being able to open addresses which aren’t hyperlinks.

      @ukanuk If you’re happy with your chain, we can include it. I have to admit I forgot about it after seeing it initially.

      github ◊ vfm

      ukanuk
      U
      1 Reply Last reply
      Reply Quote 0
    • ukanuk
      U
      ukanuk Ambassador @luetage
      last edited by

      @luetage Yep, I've been using my chain as-is for a month now and don't see anything changing until/unless Vivaldi changes stuff.

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

      Figure out the publish date of an article (if hidden):

      Open link in current tab with-----> javascript:window.open("https://www.google.com/search?q=inurl:"+encodeURIComponent(location.href)+" "+('&as_qdr=y15'))

      This script will search the link on Google, from 15 years ago. The date appears on Google.

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

      @aperrizio Nice idea, included.

      github ◊ vfm

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

      @luetage I discovered that there is no need to define a variable when "restoring" the URL. I believe that adding a delay is not necessary either. Changing the URL with replaceState shouldn't affect the execution of the code. If anything, it's added at the end, so it should be the last thing to execute anyway.
      For example, I changed this (from your "Dark (Invert)" snippet):
      setTimeout(()=>{const t=window.location.href;window.history.replaceState("stateObj","",t)},300)
      into:
      history.replaceState({},"",location.href)
      and it works just as well (or slightly better, since the change of the URL is almost unnoticeable). 😅

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

      @pafflick Can’t recall why I introduced a timeout, it’s been too long. But great if it continues to work for you without it.

      github ◊ vfm

      1 Reply Last reply Reply Quote 0
    • ukanuk
      U
      ukanuk Ambassador
      last edited by

      @luetage, I added a new chain to my previous post. My old "New Stacked Tab" chain required changing a setting that adversely affected "New Top Level Tab" behavior, and my new command "New Top Level Tab at End" functionally restores the desired behavior using new v5.1 commands.

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

      Thought I'd cross-post this here (from the Copy from adress bar in a formated way (like on MS Edge) feature request thread):

      Copy the current page's URL & title as a rich text

      (eg. copy Home | Vivaldi Forum instead of https://forum.vivaldi.net)

      Command 1: Open Link in Current Tab
      Command Parameter: javascript:function copy(c){c.clipboardData.setData('text/html','<a href="'+location.href+'">'+document.title+'</a>');c.preventDefault();}document.addEventListener("copy",copy);document.execCommand("copy");document.removeEventListener("copy",copy);history.replaceState({},"",location.href);

      K
      PaRr0tBoy
      P
      2 Replies Last reply
      Reply Quote 7
    • luetage
      L
      luetage Supporters Soprano
      last edited by

      @legobuilder26 @ukanuk @pafflick Nice ideas, added all of them to OP now.

      @pafflick I added your chain, but it doesn’t work for me, it makes no new entry in clipboard. Hard to tell why, looks ok to me. But I’d assume people could run into issues in certain circumstances. Beats me. Other chains that copy to clipboard work fine.

      github ◊ vfm

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

      @luetage Could you check if this is working for you? I used this method as I couldn't find a way to copy HTML using navigator.clipboard 🤔

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

      @pafflick This works.

      github ◊ vfm

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

      @luetage any errors in the console? Does it work when you execute it through the console?

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

      @pafflick No, nothing in the console.

      edit: figured it out, the copied text just doesn’t show up in the clipboard history program but is still being copied.

      github ◊ vfm

      1 Reply Last reply Reply Quote 1
    • Tuexss
      T
      Tuexss
      last edited by

      I see many recipes that work on either current URL or selected text - I'm wondering if it's possible to use the context menu for images, to work on the URL of the image? Does anyone know if that's possible, or do I have to open the image in a new tab first and then work on the tab URL?

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

      @tuexss There is no command to open image in new tab as part of a command chain. And if there was one, you would need to select the image first. You also can’t work on the image URL in the context menu. What is it you try to achieve exactly? You could always write a bookmarklet as part of the command chain to get the URL of the image and either process it directly or open in a new tab to work from there. But yeah, no idea what you’re trying to do.

      github ◊ vfm

      Tuexss
      T
      1 Reply Last reply
      Reply Quote 0
    • Tuexss
      T
      Tuexss @luetage
      last edited by

      @luetage I'm trying to search for an image in three reverse image search engines in parallel. Currently I have an item in the context menu "Search for image" in google search, but other search engines I have to open manually, and it's an annoying mindless task. So I thought command chains would be perfect for that.

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

      @tuexss And the engines search when you feed them the image url? That should be doable. E.g.:

      • hover image
      • trigger command chain
      • first command is a bookmark which triggers javascript code to get the image url for the image under the cursor
      • copy the url
      • paste url either in address field or by creating a temporary fake input field
      • select the url
      • then three commands to search with selection, the image reverse engines have to be part of your search engine list

      The only tricky thing is writing the bookmarklet, but it’s not too bad.

      github ◊ vfm

      Tuexss
      T
      1 Reply Last reply
      Reply Quote 0
    • Tuexss
      T
      Tuexss @luetage
      last edited by

      @luetage ah ok, so bookmarklets are the trick to get this. didn't think of that, nice.

      luetage
      L
      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
    • 11
    • 12
    • 3 / 12
    • First post
      Last post

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