vimium-c icon indicating copy to clipboard operation
vimium-c copied to clipboard

Question: Search and open all matching urls

Open agzam opened this issue 1 year ago • 1 comments

Is there a way to perform a search e.g., /foo and then open all the matching urls on the page, each in its own tab, without having to cycle through the matches with n?

AFAIK this functionality was not possible before, but I've noticed some powerful new features been added, perhaps that is possible now?

agzam avatar Jul 16 '24 05:07 agzam

Not easy to do so by only using Vimium C commands. LinkHints.click may only click/open one link every time.

You may do so by writing JavaScript code:

map xxx openUrl url="javascript:<add-code-here>"
# or save a long URL as a bookmark
map xxx openBookmark title="the-exact-title-of-a-target-bookmark"

Then the code can call window.find looply and open all matched links.

gdh1995 avatar Jul 17 '24 17:07 gdh1995