LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux > 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

Tags used in this thread
Popular LQ Tags , , , ,

Reply
 
Thread Tools
Old 10-09-2008, 10:24 PM   #1
crxssi
Member
 
Registered: Apr 2005
Location: Virginia
Distribution: Mandrake/Mandriva
Posts: 66
Thanked: 0
Block javascript animation in Firefox?


[Log in to get rid of this advertisement]
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.
crxssi is offline  
Tag This Post , , , ,
Reply With Quote
Old 10-09-2008, 10:40 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mandriva x86_64 KDE4
Posts: 2,049
Blog Entries: 10
Thanked: 59
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
GlennsPref is offline     Reply With Quote
Old 10-10-2008, 12:55 AM   #3
crxssi
Member
 
Registered: Apr 2005
Location: Virginia
Distribution: Mandrake/Mandriva
Posts: 66
Thanked: 0

Original Poster
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...
crxssi is offline     Reply With Quote
Old 10-10-2008, 03:36 AM   #4
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mandriva x86_64 KDE4
Posts: 2,049
Blog Entries: 10
Thanked: 59
sorry, double post!

:-)

Last edited by GlennsPref; 10-10-2008 at 03:39 AM.. Reason: double post again...
GlennsPref is offline     Reply With Quote
Old 10-10-2008, 03:37 AM   #5
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mandriva x86_64 KDE4
Posts: 2,049
Blog Entries: 10
Thanked: 59
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
GlennsPref is offline     Reply With Quote
Old 10-10-2008, 04:27 AM   #6
craigevil
Senior Member
 
Registered: Apr 2005
Location: down the rabbit hole
Distribution: Debian Sid forever
Posts: 2,730
Blog Entries: 2
Thanked: 80
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.
craigevil is offline     Reply With Quote
Old 10-10-2008, 07:30 AM   #7
crxssi
Member
 
Registered: Apr 2005
Location: Virginia
Distribution: Mandrake/Mandriva
Posts: 66
Thanked: 0

Original Poster
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.
crxssi is offline     Reply With Quote
Old 10-10-2008, 10:09 AM   #8
craigevil
Senior Member
 
Registered: Apr 2005
Location: down the rabbit hole
Distribution: Debian Sid forever
Posts: 2,730
Blog Entries: 2
Thanked: 80
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?
craigevil is offline     Reply With Quote
Old 09-08-2009, 10:52 PM   #9
Tom Austin
LQ Newbie
 
Registered: Sep 2009
Posts: 8
Thanked: 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
windows_xp_2003 Tom Austin is offline     Reply With Quote
Old 09-11-2009, 05:01 PM   #10
crxssi
Member
 
Registered: Apr 2005
Location: Virginia
Distribution: Mandrake/Mandriva
Posts: 66
Thanked: 0

Original Poster
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
linuxmandriva crxssi is offline     Reply With Quote
Old 09-14-2009, 01:49 PM   #11
Tom Austin
LQ Newbie
 
Registered: Sep 2009
Posts: 8
Thanked: 0
See these threads for more on this subject:

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

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

Tom
windows_xp_2003 Tom Austin is offline     Reply With Quote
Old 09-14-2009, 05:29 PM   #12
crxssi
Member
 
Registered: Apr 2005
Location: Virginia
Distribution: Mandrake/Mandriva
Posts: 66
Thanked: 0

Original Poster
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).
linuxmandriva crxssi is offline     Reply With Quote
Old 09-14-2009, 05:52 PM   #13
catkin
Senior Member
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Slackware 13.0
Posts: 1,850
Blog Entries: 6
Thanked: 226
It seems people haven't noticed craigevil's post above.
linux catkin is offline     Reply With Quote
Old 09-14-2009, 08:40 PM   #14
crxssi
Member
 
Registered: Apr 2005
Location: Virginia
Distribution: Mandrake/Mandriva
Posts: 66
Thanked: 0

Original Poster
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?
linuxmandriva crxssi is offline     Reply With Quote
Old 09-14-2009, 09:03 PM   #15
Matir
Moderator
 
Registered: Nov 2004
Location: Atlanta, GA
Distribution: Ubuntu
Posts: 8,347
Thanked: 13
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.
linuxubuntu Matir is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 03:49 AM
Anyone know how to Block JavaScript from being run in HTML Comment Editors farmerjoe Programming 8 02-13-2007 03:57 PM
Ubuntu Edgy/Firefox 2/Javascript - Firefox closes accessing websites with Javascript Interdictor Ubuntu 8 11-02-2006 12:58 PM
javascript in firefox jackdoll Fedora 1 11-19-2005 03:18 AM
No sound or animation in Firefox or Thunderbird chumley115 Fedora 23 11-24-2004 05:32 PM


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

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration