HTML5 Zone is brought to you in partnership with:

Vladimir is a DZone MVB and is not an employee of DZone and has posted 21 posts at DZone. You can read more from them at their website. View Full User Profile

Clear Flash Ads with one line of jQuery

03.20.2013
| 1939 views |
  • submit to reddit

 Few years ago I made ClipR distraction free readability bookmarklet based on jQuery. One of first things that ClipR does is trying to eliminate all Flash from the website.

That is done with just one line of jQuery:

$("iframe,object,embed,input[type=image],ins").hide();

With little help of Ben Alman’s bookmarklet making tool we can transform this simple jQuery into a bookmarklet.


ClearAds - Drag or Save this link to your bookmarks


Use this bookmarklet to eliminate all annoying flash ads from any website.


Cheers


Published at DZone with permission of Vladimir Carrer, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Comments

Maxime Euziere replied on Wed, 2013/03/20 - 10:13am

Well, I don't want to state the obvious, but doesn't this also hide all iframes, objects, embeds, image inputs and ins that are NOT ads?

Also, this could be done easily without jQuery. Pure JS or even a simple CSS rule would be enough.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.