BlockFlash-Revisited

By Andrew Pennebaker Last update Apr 4, 2007 — Installed 4,395 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 9 posts, 7 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
jasn User

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?

 
varanasi Scriptwright

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

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

 
easier_rhino Scriptwright

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.

 
pix Scriptwright

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.

 
Andrew Penne... Script's Author

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

 
pix Scriptwright

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

 
Andrew Penne... Script's Author

Sure! Pick whichever colors you like.

 
simon! Scriptwright

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

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel