BlockFlash2

Last update on Jun 18, 2008

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 Feed-icon

1 point
login to vote
merriam scriptwright
Posted Aug 22, 2008

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]".

1 point
login to vote
Andrew- user
Posted Aug 1, 2008

This extension blocks flash fine, but when I click play flash, the flash does not play properly.

1 point
login to vote
Darky.ben user
Posted Jun 24, 2008

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 ^^

1 point
login to vote
Posted Jun 20, 2008

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

1 point
login to vote
varanasi script's author
Posted Jun 18, 2008

Sorry I'm late in replying, but Darky.ben I don't think I understand what you are trying to do.

1 point
login to vote
Darky.ben user
Posted Apr 25, 2008

is it possible to make a version for a website ?
that block only the flash on my website ?

1 point
login to vote
Darky.ben user
Posted Apr 25, 2008

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 ?

1 point
login to vote
varanasi script's author
Posted Jan 17, 2008

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,

1 point
login to vote
Doug Adams user
Posted Jan 12, 2008

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?

1 point
login to vote
bobielawlintine scriptwright
Posted Nov 11, 2007

Thank you so much much muchy :P

1 point
login to vote
varanasi script's author
Posted Oct 28, 2007

mrnukem - I'm glad it works for you. Thanks for the note.

1 point
login to vote
mrnukem user
Posted Oct 26, 2007

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

1 point
login to vote
varanasi script's author
Posted Oct 12, 2007

notyou - Cool. I'm glad the script is useful.

1 point
login to vote
notyou user
Posted Oct 10, 2007

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

1 point
login to vote
notyou user
Posted Oct 9, 2007

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 :)

1 point
login to vote
varanasi script's author
Posted Oct 8, 2007

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.

1 point
login to vote
notyou user
Posted Oct 7, 2007

umm i have flashblock, if i install this script will that interfer in any way with flashblock??

1 point
login to vote
varanasi script's author
Posted Sep 29, 2007

Jake - Have you tried Tools/Greasemonkey/Manage User Scripts and then adding the sites to be excluded to the list of Excluded Pages?

1 point
login to vote
Posted Sep 28, 2007

I hate how you can't really "exclude" any websites.

1 point
login to vote
varanasi script's author
Posted Sep 28, 2007

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.

You could comment on this script if you were logged in.