LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Block javascript animation in Firefox? (https://www.linuxquestions.org/questions/linux-software-2/block-javascript-animation-in-firefox-675414/)

GlennsPref 05-24-2010 08:16 AM

I don't mean to sound/read insensitive, but I never have these problems, only flash.

Is there an example of what is accessible and what is not?

I just try to cut bandwidth with an in-system proxy and script blocking (noscript).

I have donated to noscript and download(dw)helper (I swear I am not biased!).

I took me quite some time to reveal noscript's elements and how to use them, rtfm!

I don't use any other add blocker.

Cheers, Glenn

John VV 05-24-2010 02:33 PM

there are A LOT of settings for no-script and for add block to ( updating the "bad" list )
what to block and what not to block ..

some sites ( ilke this one LQ )ad-block is set to OFF

and from here
http://www.precentral.net/

The "Featured Apps"
that can be turned of in ad block ( there is a option on the r-click menu )

nexus555 11-02-2010 02:40 AM

Javascript FILTER!
 
Quote:

Originally Posted by crxssi (Post 3305701)
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.

crxssi, I completely agree with you.
I switched to GNU/Linux mainly because I think the user should be enabled to decide what our computer exactly does or does not.
WE MISS A *SELECTIVE* JAVASCRIPT FILTER.
It could be a FireFox/Iceweasel add-on.
It could be a modified version of FireFox/Iceweasel, with an improved javascript engine, with added switches for executing instructions.
It could even be another browser, redesigned to give back control to the user.

At the moment, I'm using Iceweasel (Debian's Firefox) with disabled Gif animation, Flashblock, Adblock. And Prefswitch, which I think is useful but incomplete, for the same reasons that you already pointed at. I also resize the browser's window to avoid to see the annoying moving crap.

A fast improvement of Prefswitch could be adding a "CTRL+something" keyboard shortcut for fast on/off switching, but the perfect solution should be a selective javascript filter that blacklists the javascript single commands that I don't want my computer to execute (even on a keyword basis).
The same applies to NoScript: selective code blocking capability.
To the first users, the task of experimenting and finding-out-the-code. To the others, simply a copy-and-paste operation.

Maybe we should look around to see how many people feel the same need:
1) make a single webpage addressing the problem, and
2) thoroughly spread the argument around the net (Linux community, Firefox and Iceweasel developers, Add-on developers, or whatever)

Please keep us informed if you find any solution to this relevant (and still unsolved) problem...

nexus555 01-11-2011 01:13 AM

Foreground defence
 
Sad to see there's not much interest around the web, on this topic.
In the meantime, I found another defence strategy under Linux:
opening and resizing (to the desired dimension) a Gedit window, right-clicking on the title-bar, and checking the "always on top" box.
I like to call it "anti-moving-crap mask"... ;-) Hope it helps anyone with the same problem, accidentally stumbling upon this page during his daily googling.
Please, let me know if you find any more advanced strategy...

nobrowser 12-03-2012 11:59 PM

Help from stylesheet
 
I've had the problem discussed here for a long time, but the adoption of these techniques by site designers seems to be accelerating :mad: The page that finally made me seriously look for a solution (and hence stumble on this thread) was this:

https://www.anaplan.com/

So using the element inspector of firefox to look at the properties of that darn hexagon, I came up with this snippet of CSS code which I added to my ~/.mozilla/firefox/*/chrome/userContent.css file:

Code:

/* Turn off annoying mozilla-specific animation. */
div
{
    -moz-transform: none !important ;
    -moz-transition-duration: 0s !important ;
    -moz-transition-property: none !important ;
    -moz-transition: none 0s linear 0s !important ;
}

And in fact that does stop the movement. It is not perfect because the successive logos are still alternated, but only as flat 2d blits which is less distracting. So the next step is for someone to figure out how to block even that ;)

Tom Austin 12-05-2012 02:10 PM

How ingenious! It worked the same for me. I'm wondering, though, if there may be unintended consequences, preventing me from seeing something on another site I'd want to see.

I completely got rid of that element using AdBlock Plus with this filter, found near the bottom of the list by opening the blockable items

||anaplan.com/assets/UserUploadedPageBehaviors/*

Still, I wonder if your solution would be the best. I'm trying to imagine a situation where I wouldn't want to use it.

nexus555 12-06-2012 01:34 AM

It could be worth to mention that, in the meantime, I added to Firefox's extensions:
"Element Hiding Helper for Adblock Plus 1.2.3"
(unfortunately, it doesn't seem to work under Debian's Iceweasel - but I also use Linux Mint with Firefox "in parallel").

Testing: I visited the Anaplan page, with that annoying rotating element!
From Adblock's menu - I chosed "Select an element to hide" (= Ctrl+Shift+S), I moved the mouse over the Darn Hexagon, and...
CLICK! The element was gone!

I like this extension...

Nice idea, that of trying "userContent.css" personalization!
I will try it sooner or later... For now I will stick to Mint/Firefox (or reinstall the new LTS of Ubuntu, even if I don't like Unity) and use Adblock+ElementBlocking...


All times are GMT -5. The time now is 07:09 PM.