{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

RSS IconTwitter icon Twitter icon Twitter icon

About Me <<<

Name: Vladimir Carrer
vladocar [at] gmail.com
Location: Verona, Italy
I'm a web designer, developer, teacher, speaker, generally web addicted ...

My projects <<<

§§Previous Posts <<<

Hand Drawn Icons
 

Other Profiles <<<

View Vladimir Carrer's profile on LinkedIn

Content is licensed under a Creative Commons Public Domain License