4 ms·
This is possible with a custom user stylesheets and a clever CSS rule (I haven't verified this, currently on my phone): a[href*="forbes.com"] { color
by tlrobinson 11y ago
This is possible with a custom user stylesheets and a clever CSS rule (I haven't verified this, currently on my phone):
a[href*="forbes.com"] {
color: red;
}
You can make it more restrictive (e.x. match the beginning of the attribute with ^=) if this results in false positives.
If you don't just want red links you can also combine it with pseudo elements, e.x.
a[href*="forbes.com"]:after {
content: "[warning: forbes]"; /* or an emoji or something */
}
Unfortunately Chrome removed user stylesheets awhile ago, but there are 3rd party extensions (Stylish etc) which fake it.
- 91bananas 11y agoI've been using Stylebot with great success. So much so that when I visit sites on other peoples machines it takes me a minute to figure out why certain sites are so hideous
- johnmaguire2013 11y agoWhat's the advantage of Stylebot over Stylish?
- 91bananas 11y agoI've not used Stylish, but from looking their Chrome Extension page it looks like they don't allow you to write CSS for pages, but rather apply themes that have been built for sites by third parties? Stylebot lets me just write css, or can grab an element off the page and they give you a GUI to edit the most common style properties. The ability to just write CSS as simple as .stupid-ad { display: none; } is what I was after.
- trobertson 11y agoStylish lets you write your own CSS. It doesn't give you a GUI for it, it expects you to look up the elements yourself. I have custom CSS for a number of sites, and find Stylish sufficient.
- ChrisGranger 11y agoVerified, as I had the same idea earlier and have started a userstyle to alert myself when a link points to one of these anti-Adblock sites. To anyone who wishes to do this, you can add more sites by listing them, comma-separated, except for the last entry, like so: a[href^="siteone.com"]::after, a[href^="sitetwo.com"]::after, a[href^="sitethree.com"]::after { content: "[generic warning because multiple sites]" }