r/programmingrequests • u/baconpancakesrock • Jan 22 '25
need help A simple browser plugin that attempts to block annoying news sites internal links.
Shitty News sites are notrious for spamming their articles with crappy internal links to non relevant pages.
This prevents readers from properly following the sources referenced (rarely) in the articles.
They tend to follow a simple pattern eg. internaldomain.com/topic/bacon.
And it will just be a generic page or search with the keyword "bacon" input so all articles about bacon are shown when the link is followed.
If anyone thinks they can do this easily it would be great.
You could have a way for people to customise the links it wants to highlight/block. And rather than blocking the links you could just highlight them to indicate they might be rubbish.
1
u/Ascor8522 Jan 23 '25
Asking for a general solution for any website is unrealistic, and if such service existed, it would likely be paid.
Each website is unique, and it's hard to know whether two articles are related is not.
If you want it for a specific website, then please give as much information as possible in the first place
I'd suggesting trying out a few ad blockers, as some are crow sourced and can do wonders.
2
u/dolorfox Jan 22 '25 edited Jan 22 '25
You can use the Stylus browser extension to give specific links on a website a different style. While on the website, click on the Stylish icon and then click on the name of the website to create a new style for that website. Enter something like the following in the code editor:
Then click on the "Save" button. This will make all links with a URL containing "/topic/" red with a squiggly red underline.
If you have uBlock Origin installed, you can achieve the same with a custom filter. Open up the dashboard of the uBlock Origin extension, and in the editor under the "My filters" tab, enter something like this:
1
u/ConfidentFish09 6d ago
News Blocker chrome extension - if need to block frustrating news. It also blocks ads