Opened 4 years ago

Last modified 4 years ago

#3840 closed change

Prevent websites from making collapsed elements visible again — at Initial Version

Reported by: sebastian Assignee: sebastian
Priority: P3 Milestone: Adblock-Plus-1.12-for-Chrome-Opera-Safari
Module: Platform Keywords:
Cc: Blocked By:
Blocking: Platform: Unknown / Cross platform
Ready: yes Confidential: no
Tester: Ross Verified working: yes
Review URL(s):

https://codereview.adblockplus.org/29338713

Description

Background

When Adblock Plus blocks an element, like an image or frame, it also hides the blocked element in order to prevent placeholders to show up and make more space for the actual content.

However, websites can override the style applied by Adblock Plus, in order to hide those elements. Some websites, e.g. pornhub.com (NSFW), do so in an attempt to circumvent ad blocking.

While making those elements visible again, only brings back the placeholders, this is still annoying. And in combination with other circumvention techniques it might even cause some ads to show up.

What to change

Use a MutationObserver to detect and prevent collapsed elements from being made visible again.

Change History (0)

Note: See TracTickets for help on using tickets.