Preview text on link-hover?
-
Do anyone have any code that can pop up the text on a specific site when hovering a link.
I've been looking around quite a lot but haven't found any, including extensions. All I found was an extension (Snappylink) that previews the whole page of the link you're hovering and has no settings so it's applied to all sites, and untweakable to fit the requirements.
My usecase would be something very similar to this example, just on other sites:
The thread "Modding Vivaldi in https://forum.vivaldi.net/category/52/modifications goes to the last post in that thread (right now https://forum.vivaldi.net/topic/10549/modding-vivaldi/116).
Hovering that link, I'd like to see x amount of the first characters in the first post of that thread.So I guess 4 things:
- Hover and popup function (like in snappylink)
- Edit of the link hovered (example https://forum.vivaldi.net/topic/10549/modding-vivaldi/116 -> https://forum.vivaldi.net/topic/10549/modding-vivaldi?page=1)
- Fetching just text
- Applied only to specific site(s)
It feels like it should be a popular function for all browsers and users, but I just can't find extensions or scripts doing this. Is it a difficult task?
-
@dumpamental Why would this be popular? It would load third party domains on hover. I also don’t see how you easily load “text.” On some sites you would maybe want to look for the first paragraph element, for others you’d want titles as well. It’s not as straightforward as you might imagine it. I guess loading the whole page is good enough, so you might as well use the extension you already discovered.
-
I mean look at wikipedia. There must be tones of people who love their hover function. So used to it they don't even think about it, until the day it gets removed.
It's the third party thing that is the issue with the lack of configuration on that extension. It doesn't care where you are and what you hover, it shows all links.
Wouldn't this return text only? https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseText
But true, it would probably need some big tweaking on each site to get any text of interest. -
@dumpamental Yeah, on Wikipedia it makes sense, may other websites follow on their own terms. But I don’t see this as a Vivaldi UI modification, what you want is a chrome extension.