BlockFlash2
Hides Flash animations until you click on individual [Play Flash] buttons.
Replaces Flash elements with a small orange "button" that says [Play Flash]. Clicking the button displays the Flash animation.
Simpler and less intrusive than Adblock, though certainly not as comprehensive.
A revision of BlockFlash (http://userscripts.org/scripts/show/3204), which was revised by BlockFlash-Revisited (http://userscripts.org/scripts/show/6532).
Version History
0.3 - 2007-10-07 - v - eliminated anonymous function, condensed code
0.2 - 2007-10-06 - v - substituted xpath function for getElement and forEach for for loop
You could comment on this script if you were logged in.
20 comments
You could comment on this script if you were logged in.

login to vote
It looks like this script needs an update. On youtube and vimeo, for example, videos won't start. Also the placeholder is broken, showing "{div}[Play Flash]".
login to vote
This extension blocks flash fine, but when I click play flash, the flash does not play properly.
login to vote
yes sry, im french so scuse my english
i would like a script like this for my website,
Hide all my flash animations
but for everyone ! not only those who have greasemonkey.
because loading many many embeded flash object sux for visitors..
is it possible to have a simple .js file to include in my page ? (<head></head>)
i hope you understand something ^^
login to vote
to exclude pages you just make a new line below include and put something like this:
// @exclude *youtube.com*
that will let youtube work
and thanks for the script, works well
login to vote
Sorry I'm late in replying, but Darky.ben I don't think I understand what you are trying to do.
login to vote
is it possible to make a version for a website ?
that block only the flash on my website ?
login to vote
hi !
i would like to include this script but only in my website ! just fo my visitors.. is it possible ? someone could help me please ?
login to vote
Doug:
1. I still work on the script from time to time. (I have come around to the idea that I should pretty thoroughly revise it, but since it still works well for me, I haven't had any compelling reason to change it much.)
2. The exclude sites option works on Greasemonkey rather than individual scripts. I have found it easiest to use it this way: A. Go to the site you want to exclude. B. Then do Tools/Greasemonkey/Manage User Scripts/. Confirm that the correct script is highlighted on the left and then hit the Add button. Typically, the popup will have the correct site name displayed. Hit OK and you're done.
For your sites, use: http://youtube.com/*
In your case,
login to vote
Ok, first I would like to say I love this script so far (better than flashblock) ok, now I have 2 questions.
1. Is this still being developed?
2. I have two sites listed on the exclude white list
http://video.google.com/*
and
http://www.youtube.com/*
But when I visit this sites I still have to click "Play Flash"
By adding them to the white list shouldn't that prevent that?
login to vote
Thank you so much much muchy :P
login to vote
mrnukem - I'm glad it works for you. Thanks for the note.
login to vote
Really nice script. Lets me pick and choose what Flash I want to display. Makes pages with flash frames load faster thats for sure
Thank you
login to vote
notyou - Cool. I'm glad the script is useful.
login to vote
hmm couldnt edit my former post, dunno why,
anyhow im deff keeping this script! Instead of the huge grey field taking up like half the bleeding screen of the (otherwise great) Flashblock, its just a small orange field, and i didnt notice any ads/banners/junkware slip by this ! :-D
login to vote
i havent noticed anything different with this script and my flashblock addon, but having TWICE the amount of protection cannot ever be redundant :) Im gonna test this a lil further and without having flashblock to test it, ill edit this post in a lil while :)
login to vote
Notyou - I don't know. This script would probably be redundant. What I like about using this script is that, unlike flashblock, it doesn't "preserve" the space that would the flash element would normally fill. In other words, there are none of those big empty spaces with a macromedia icon in the middle of them. I ended up here, because I thought flashblock was too intrusive. I want to read the content of a page as efficiently as possible.
You can disable flashblock (Tools/Add-ons), install this script, and see what you think. I don't think that one size fits all. Uninstalling this script (Tools/Greasemonkey/Manage User Scripts) and enabling flashblock, if you don't like this script is easy.
login to vote
umm i have flashblock, if i install this script will that interfer in any way with flashblock??
login to vote
Jake - Have you tried Tools/Greasemonkey/Manage User Scripts and then adding the sites to be excluded to the list of Excluded Pages?
login to vote
I hate how you can't really "exclude" any websites.
login to vote
This version deals with flash animations inside embed tags, as well as those in object tags. I restructured the code to make it simpler to add other tags if needed. (So far, object and embed searching deals with everything I've seen - probably not as much as you.)
I also included pix's revision to the on/off code, which improved the script's function tremendously.
My testing has been limited, but it seems to catch most things. On a rare occasion the on/off switch doesn't work - mlb.com is an example. I'd be interested if you find other problems.