I can’t seem to figure this out. I’ve been trying out different news aggregator sites to use as a home page. Right now I’m using skimfeed. I like it, but the links all have skimfeed baggage tacked on. Like this: https://skimfeed.com/r.php?q=1148&l=15649995&u=https%3A%2F%2Fxkcd.com%2F3006%2F
Well, the source looks like this:
<span class='boxtitles'><h2><a class='siteurls ts33' href='/news/xkcd.html'>XKCD</a> <a class='siteurls atat' href='http://xkcd.com' rel='nofollow' target='_blank'>+</a></h2></span>
<ul><li class='nl1 bd33'><a href='r.php?q=1148&l=15649995&u=https%3A%2F%2Fxkcd.com%2F3006%2F' target='_blank' rel='nofollow' title='Demons'>Demons</a> </li><li class='nl2 bd75'><a href='r.php?q=1148&l=15642742&u=https%3A%2F%2Fxkcd.com%2F3005%2F' target='_blank' rel='nofollow' </li></ul></div>
Which, to be honest, is Greek to me. I’d like to rewrite the links so that they just look like https://xkcd.com/3006/
I don’t really care what the link looks like, per se, the encoded bits. I just don’t like the extra skimfeed stuff. Aesthetically.
Is there an extension or something that will help me with this? The couple I’ve looked at are either too complicated for my caveman brain, or site specific (i.e., remove google tracking). If I’m just being a little too retentive, feel free to let me know that too.
Thank you so much. I didn’t even think about Greasemonkey. I went to make a script using your code and it said there was already one available. That script looks like this:
Edit: Updated script
(function() { 'use strict'; var links = document.links; for (var i = 0; i < links.length; i++) { var referer = links[i].href.indexOf('&u='); links[i].href = decodeURIComponent(links[i].href.substr(referer + 3)); } })();
and it worked fine. Then I replaced that code with yours, and it worked just as well. Thanks again.
I think you copied my snippet into your comment by mistake rather than whatever you found elsewhere, but regardless, happy I could help!
You’re right. I updated my response.