{Carrer web log}


Blog about web design & development

Clear Flash Ads with one line of jQuery

Tuesday, March 19, 2013 { 2 Comments }

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




2 Responses to “Clear Flash Ads with one line of jQuery”

  1. // Anonymous Anonymous // 3/19/2013

    Just a question: but instead of .hide() could .remove() be used? Or would it not matter considering the AD's already loaded into the DOM  

  2. // Blogger Vladimir // 3/19/2013

    Yes .remove() will also work. hide() is like setting .css('display', 'none')  

Post a Comment

<< Home

Content is licensed under a Creative Commons Public Domain License