Open ronstudy1 opened 2 years ago
Great idea, I have the same use case - not to show link hints for links that I never use. I inspected Vimium source code for clues and discovered that it ignores elements with aria-disabled
attribute. To filter the hints, you can author a userscript and set the attribute based on any rules you (or ChatGPT) can imagine.
Example:
// ==UserScript==
// @name Vimium filter
// @version 1
// @grant none
// @match https://news.ycombinator.com/*
// ==/UserScript==
document.querySelectorAll('a').forEach(a=>a.href.includes('vote') ? a.setAttribute('aria-disabled', 'false') : a.setAttribute('aria-disabled', 'true'))
@Klaster1 Thank you for sharing this workaround. Currently, it seems like the easiest solution. Yet, I would still be glad to have this feature implemented so that everything can be managed through the same extension and be included in the same backups
it could be great to add the ability to exclude some links from being suggested by the link-hints shortkeys
Example Scenarios:
Duplicate Links: Github's comments have links to the user's profile both in the avatar picture and in the username. In this case, one may wish to exclude "img.avatar" links all over "github.com"
Rarely-Used Links: Gerrit includes a link "add this review to your favorites" per each record in the search results Those links double the amount of link-hints in the page although not being used so often
Advantages: