LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-09-2008, 09:24 PM   #1
crxssi
Member
 
Registered: Apr 2005
Location: USA
Distribution: Mageia,Fedora,RHEL,CentOS
Posts: 95

Rep: Reputation: 16
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
http://www.absolutegadget.com/200810...-networks.html

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.
 
Old 10-09-2008, 09:40 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Hi, you need the firefox plugin, NoScript

It is a per user configurable javascript filter/blocker

http://noscript.net/?ver=1.8.2.1&prev=1.8.1.3

Cheers, and happy browsing, Glenn
 
Old 10-09-2008, 11:55 PM   #3
crxssi
Member
 
Registered: Apr 2005
Location: USA
Distribution: Mageia,Fedora,RHEL,CentOS
Posts: 95

Original Poster
Rep: Reputation: 16
noscript

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...
 
Old 10-10-2008, 02:36 AM   #4
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
sorry, double post!

:-)

Last edited by GlennsPref; 10-10-2008 at 02:39 AM. Reason: double post again...
 
Old 10-10-2008, 02:37 AM   #5
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

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


You can block by

Quote:
full addresses (http://www.noscript.net)
Full Domains (www.noscript.net)
and Base 2nd level Domains (noscript.net)

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
 
Old 10-10-2008, 03:27 AM   #6
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,884
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
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.
 
Old 10-10-2008, 06:30 AM   #7
crxssi
Member
 
Registered: Apr 2005
Location: USA
Distribution: Mageia,Fedora,RHEL,CentOS
Posts: 95

Original Poster
Rep: Reputation: 16
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.
 
Old 10-10-2008, 09:09 AM   #8
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,884
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
Perhaps:
mozdev.org - controledescripts: index
http://controledescripts.mozdev.org/

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?
 
Old 09-08-2009, 09:52 PM   #9
Tom Austin
LQ Newbie
 
Registered: Sep 2009
Posts: 12

Rep: Reputation: 0
I have the same problem and same request to selectively block javascript.

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

http://eanesisd.hcms.schoolfusion.us/

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.

Tom
 
Old 09-11-2009, 04:01 PM   #10
crxssi
Member
 
Registered: Apr 2005
Location: USA
Distribution: Mageia,Fedora,RHEL,CentOS
Posts: 95

Original Poster
Rep: Reputation: 16
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
 
Old 09-14-2009, 12:49 PM   #11
Tom Austin
LQ Newbie
 
Registered: Sep 2009
Posts: 12

Rep: Reputation: 0
See these threads for more on this subject:

http://www.linuxquestions.org/questi...indows-753715/

http://forums.mozillazine.org/viewto...71765#p7471765

Tom
 
Old 09-14-2009, 04:29 PM   #12
crxssi
Member
 
Registered: Apr 2005
Location: USA
Distribution: Mageia,Fedora,RHEL,CentOS
Posts: 95

Original Poster
Rep: Reputation: 16
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).
 
Old 09-14-2009, 04:52 PM   #13
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
It seems people haven't noticed craigevil's post above.
 
Old 09-14-2009, 07:40 PM   #14
crxssi
Member
 
Registered: Apr 2005
Location: USA
Distribution: Mageia,Fedora,RHEL,CentOS
Posts: 95

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by catkin View Post
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?
 
Old 09-14-2009, 08:03 PM   #15
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
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.
 
  


Reply

Tags
blocking, firefox, javascript, webbrowser



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
JavaScript and Firefox JonBL Linux - Newbie 4 11-17-2007 02:49 AM
Anyone know how to Block JavaScript from being run in HTML Comment Editors farmerjoe Programming 8 02-13-2007 02:57 PM
Ubuntu Edgy/Firefox 2/Javascript - Firefox closes accessing websites with Javascript Interdictor Ubuntu 8 11-02-2006 11:58 AM
javascript in firefox jackdoll Fedora 1 11-19-2005 02:18 AM
No sound or animation in Firefox or Thunderbird chumley115 Fedora 23 11-24-2004 04:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration