There's a firefox ext and it's great, but I need multi-OS and multi-browser and the only thing that fits the bill is a bookmarklet. I've deep-searched more than a few times for this and turned up nothing. If you see one in your travels, let me know.
do you want the links to:
a. visually appear visited
b. actually be visited by so the URLs shows up in your history
c. actually be visited by so the visits show up in log files
d. something else
B.
Here's the FF extension, which worked perfectly for me. It is a little more feature-loaded than I need in a bookmarklet. I rarely used the toggle individual link option. In the bookmarklet-on-toolbar environment, I think a simple "mark all as visited" would suffice.
https://addons.mozilla.org/en-US/firefox/addon/link-visitor-3/
QuoteThis add-on provides the ability to add single or multiple links to the browser history, making them appear visited, without having to actually visit them. It also allows them to be removed from the history.
For a single link, right click and select 'Toggle visited status'.
For older versions of Firefox , right click and select "Mark link as visited" or "Mark link as unvisited" (depending on current state).
For multiple links, The View and Context menus contain the menu entry to "Mark Links Un/Visited", which provides the ability to mark all links, or those within a selected region, as visited or unvisited.
Here's a Greasemonkey script I happened upon
https://greasyfork.org/scripts/552-link-visited/code
<added>
Use scenario: I read a lot of news aggregators that move the headline up/down on the page based on popularity. I scan the page, read any I want to read, then mark all article links as visited. When I return, any new articles in the list are easy to pick out.
history.pushState ?
I'm not knowledgeable enough to answer that, Jason.
Sorry.
Are all the links you want to show as visited on the same domain as the page that you'll be on?
If so, history.pushState should/ will do it.
If the links point to pages on different domains then a different route will have to happen (I think it's still very doable, by EG opening each link in hidden iFrames on the page but pushstate is much cleaner)
No, the bulk of the links are almost always on other domains. A reddit page would be a good/easy example to cite
http://www.reddit.com/
javascript:var array = [];var links = document.getElementsByTagName("a");for(var i=0; i<links.length; i++) {var iframe;iframe = document.createElement('iframe');iframe.src = links[i].href;iframe.style.display = 'none';document.body.appendChild(iframe);}
N.B. This is likely to hang your browser on pages with lots of links (if it works at all) but "should" / "might" do what you want.
Couldn't get it to work (Win8.1 Chrome). I'll play with the code sometime. Thanks for trying.
It's a known bug in Chrome and most (but not all) other Webkit browsers.
URLs opened in Iframes don't show in history as visited.
To make this work it will either need an extension / plugin to get past the same origin security policies or physically open then close once loaded, the URLs.
>iframe
Would it work to throw it to a (named) new window?
Quote from: rcjordan on June 10, 2014, 09:03:13 PM
>iframe
Would it work to throw it to a (named) new window?
It should, yes :)
Thought it should. It'd be a kludge, but worth it for my high-volume online reading habit. I'll see what I can cobble together out of your js. Thanks!
No probs. Hope it helps.
update:
There's a chrome ext now. Looks to be about 2 months old. Very fast. Combined with an rss reader, it really ramps up the power-reading process.
https://chrome.google.com/webstore/detail/mark-all-as-read/hocgdeifbnjnhhjiphmooojohmahocdl?hl=en-US
That's pretty neat. It doesn't click on the links. It just marks them read. Just tried it out on HackerNews. Works as advertised.
Handy on any site that you visit for updates, but **particularly** those like HN and reddit where user activity reorders the page content.
I also use Stylist to change the visited link color to something more distinctive, orange instead of purple. I can fly through a site now.
https://chrome.google.com/webstore/detail/stylist/pabfempgigicdjjlccdgnbmeggkbjdhd
Cool. I'd been using Stylish for that, but this one looks a bit easier to manage. I'll give it a try.
....and good thing I stopped using Stylish when they were sold...
https://robertheaton.com/2018/07/02/stylish-browser-extension-steals-your-internet-history/
oy vey
>Stylish
Saw that, but didn't remember that anyone here was using it.
I'm using this one now. Works great. Haven't heard (yet) that it's phoning home.
https://chrome.google.com/webstore/detail/mark-selected-links-as-vi/pmoldfbmipffdecleeffgfcoahobhkpp