Hi,
I was wondering if there's an option in Adblock Plus to block the linking URl attached to an image?
I have a few sites that have links on images that I would prefer to block the link because it redirects to an unnecessary page, that I may accidentally click on.
A little outside Adblock's realm but I was wondering if there's such a way to enable it?
Perhaps there's a GreaseMonkey script someone knows of that would augment Adblock plus in regard to this?
Thanks!
Ability to block linkable item?
- Gingerbread Man
- Posts: 1339
- Joined: Fri Aug 12, 2011 5:28 am
Re: Ability to block linkable item?
Hello,
en/filters#elemhide_attributes
Caveats:
Create a filter like the following, where example.com is the site you're on, and badsite.evil is the URL you don't want to accidentally visit. You can also omit example.com altogether if you want to apply the filter to all sites you visit.blocker-fan wrote:I was wondering if there's an option in Adblock Plus to block the linking URl attached to an image?
Code: Select all
example.com##a[href*="badsite.evil"]
Caveats:
- This may not work if the link directs you to a new page using JavaScript rather than an href attribute. This shouldn't be common.
- There's no way to block the image in this case. So you'll still download it, and it will be hidden from view.