-   Linux - Software (
-   -   Block javascript animation in Firefox? (

crxssi 10-09-2008 09:24 PM

Block javascript animation in Firefox?
Does anyone know a way to get Firefox to block Javascript animation without breaking javascript completely???

I *can't stand* things moving on my screen while I am trying to read. Adblock, of course, is a mandatory start. The Flashkiller plugin works great for stopping Flash. And Firefox has a built-in way to disable GIF animation. But more and more sites are using Javascript to somehow create unwanted, constant or intermittent movements, animations, scrollings, and slideshows that I can't stop or even block.

Here is an example

At least the changes on that one are slow, but still VERY annoying to me- to the point I have to pick up the whole window and shove the animated part off the edge of the screen.

GlennsPref 10-09-2008 09:40 PM

Hi, you need the firefox plugin, NoScript

It is a per user configurable javascript filter/blocker

Cheers, and happy browsing, Glenn

crxssi 10-09-2008 11:55 PM

I have looked at noscript in the past (and recently), and it isn't able to block just animation. If you use it to block all javascript, many pages don't work at all. I was hoping there might be something that just targets animation by default, without disabling other javascript, and without complex configuration.

So far, my research hasn't turned up anything. I am kinda surprised, since I thought there had to be lots of other people annoyed by all this animation.

Perhaps I need to suggest that to the noscript people as an option...

GlennsPref 10-10-2008 02:36 AM

sorry, double post!


GlennsPref 10-10-2008 02:37 AM

Hi, I simple apply the filters to the animations I don't want, but from that page only.

You can block by


full addresses (
Full Domains (
and Base 2nd level Domains (

There's a white list where you can specify which web sites are allowed to execute scripts.

And in the Plugins section there are additional options to select for both trusted and untrusted sites.

and much more.
Happy hunting, Glenn

craigevil 10-10-2008 03:27 AM

Animated images are annoying.

Add the following to your user.js

/* Disable image animation */
user_pref("image.animation_mode", "none");

You might also want:
/* Put an end to blinking text! */
user_pref("browser.blink_allowed", false);
user_pref("browser.display.show_image_placeholders", false)

The above along with NoScript and AdBlock Plus will get rid of all that annoying flashing blinking crap.

crxssi 10-10-2008 06:30 AM

Thank you both for the replies, but I have tried noscript and it just doesn't do what I am looking for. I don't want to turn off all javascript, nor do I want to edit whitelists/blacklists. Just looking for something that will always and automatically target just the javascript that causes animation.

Sounds like the makings for a new type of plugin, if it is even possible.

craigevil 10-10-2008 09:09 AM

Perhaps: - controledescripts: index

I must be missing something, because I very rarely see any animation of any kind unless I want to see it. Do you have a url with an example of what you want to block?

Tom Austin 09-08-2009 09:52 PM

I have the same problem and same request to selectively block javascript.

Here is an example of a site that uses a javascript slideshow.

Adblock blocks only the background image. NoScript renders parts of the site unfunctional. There needs to be a solution to selectively block code that can easily be found when viewing the source.


crxssi 09-11-2009 04:01 PM

Actually, if it involves manual intervention, then it really isn't a good fix. I don't know much about AJAX/Javascript, but I suspect there are some certain calls or statements that are commonly used to create animations. Those I would just want to block by default.

I started this thread almost a year ago, and in that time, I have seen use of AJAX/Javascript animation on sites just about double :(

Tom Austin 09-14-2009 12:49 PM

See these threads for more on this subject:


crxssi 09-14-2009 04:29 PM

Well, I am glad I am not the only one who has major issues with Javascript/Ajax animation. However, those threads are still about just blocking specific elements of specific sites with a lot of manual rule adding and fiddling and experimentation.

I, on the other hand, was (and still am) looking for a solution that will disable the "typical" methods used on most websites that are used for animation, such that it will just work automatically for most websites.

My users can't possibly add rules and such.

It really sounds like the making of a new type of Firefox addon, something like "Animation Strip" or something, and has sets of rules for stripping or hiding typical animation elements (and this all works on the theory that there even ARE some typical elements).

The main problem is that our system uses thin clients. Sites that use such animation simply destroy the server and network. Although, even at home, such an addon would be a god-send (since I hate seeing movement on the screen anyway, regardless of CPU and network load).

catkin 09-14-2009 04:52 PM

It seems people haven't noticed craigevil's post above.

crxssi 09-14-2009 07:40 PM


Originally Posted by catkin (Post 3682733)
It seems people haven't noticed craigevil's post above.

I saw it, but it wasn't designed specifically for stopping animation. So, unless you are an expert in Javascript, it won't help much. (I will admit I have not tried it). I put it kinda in the same category as noscript. Am I missing something?

Matir 09-14-2009 08:03 PM

As a hint, there's no such thing as "javascript animation". Javascript can relocate elements or change their contents, but that functionality is required for things like dynamic forms, AJAX sites, etc.

My advice: if a site sucks that badly, don't use it. :) I know that's not always practical, but deciding whether javascript code is "animation" or "functionality" is a human-level decision, making it very hard to automate.

All times are GMT -5. The time now is 09:15 AM.