Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

BlockFlash-Revisited

Do not start Flash animation until you click on them.

A slight tweak of BlockFlash, in order to look a bit nicer. The gray box was almost as annoying as the ads it blocked.






1 point
login to vote
jasn user
Posted Oct 6, 2007

This is definitely my favorite script method for blocking flash stuff on the internet. However I am not able to install this as a regular user on my system. (latest Gentoo Linux, Firefox, Greasemonkey, as well as Adblock Plus and Noscript extensions installed). I am able to install it as root user, and was able to get it installed for my regular user account, by copying the script and config.xml from the gm_scripts directory for root's firefox config directory, to my regular user's firefox config directory. But not by doing the regular click to install.

Any idea of what's going on?

1 point
login to vote
varanasi scriptwright
Posted Sep 28, 2007

I posted an update that deals with embeds and adds pix's modification, see below, here:

http://userscripts.org/scripts/show/12617

1 point
login to vote
easier_rhino scriptwright
Posted Jul 17, 2007

This might be a minor thing, but while the script handles the "object" tag just fine, it doesn't deal with the "embed" tag at all. I don't know the semantic differences between the two tags.

1 point
login to vote
pix scriptwright
Posted May 22, 2007

So that would enable/disable all flash movies? What if you want to watch flash movies and block other flash ads on a site?

with the current code, as it iterates through the list of flash movies on a site, it keeps overwriting the placeholder and flash variables. so if you have more than one flash movie on a page, clicking the [Play Flash] button only activates/deactivates the last flash movie on the page.

with my fix, it doesn't use this variable from the click listener anymore, but rather finds these elements relative to the element calling the handler, so you can activate and deactivate individual movies on a page individually.

ahh, i use flashblock now anyway ;)

pix.

1 point
login to vote
Andrew Penne... script's author
Posted Apr 4, 2007

So that would enable/disable all flash movies? What if you want to watch flash movies and block other flash ads on a site?

1 point
login to vote
pix scriptwright
Posted Mar 4, 2007

here is a small fix to make this work with pages containing multiple flash movies.

change these lines:

          placeholder.addEventListener(
              'click',
              function() {
                  if (flash.on) {
      


to

          placeholder.addEventListener(
              'click',
              function() {
                  placeholder=this;
                  flash=this.nextSibling;
                  if (flash.on) {
      

1 point
login to vote
Andrew Penne... script's author
Posted Feb 25, 2007

Sure! Pick whichever colors you like.

1 point
login to vote
simon! scriptwright
Posted Feb 21, 2007

cool!! it's much much better than Flashblock (https://addons.mozilla.org/firefox/433/) but it'll be very helpful to block flv players flash based like on youtube

if I'll want to allow this kinda flash objects (those flv players) than I'll do it manualy, till then I'll use Flashblock at the same time with BlockFlash-Revisited (and BlockFlash {http://userscripts.org/scripts/show/3204} lol)

BTW - thnX for the great color (I'm redhead, so its fit pretty well lol)

if ya can, build another one in azure, light blue color. or you can give us a list of what color do you want and just pike it...

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