how to turn off javascript warning popups?

User Help for Mozilla Firefox
Post Reply
User avatar
quixote9
Posts: 63
Joined: September 7th, 2005, 8:48 am

how to turn off javascript warning popups?

Post by quixote9 »

I thought I did this once before, but now I can't figure it out! I'd like to stop the javascript warning popup that demands my attention for nothing.

(The issue is that I'm working on the Stardust@home project, which involves downloading images viewed in series as a "movie." Every once in a while one of the images is missing, so there's a blank frame. I really don't need the wretched warning message, which makes me stop everything and hit "ok." It's not like the message does anything.)

I'm using Firefox 2.0 on Ubuntu Edgy Eft 6.1. I have javascript enabled. I don't have noscript on that machine. Under "Tools" all I see is "Error Console," which doesn't give me the option to ignore warnings. I've looked in the knowledgebase, I've searched the forum, and meanwhile the stupid popups are driving me bananananas.

Is there a line I can put in the about:config? Something in the dom. section? Is there a javascript preferences config file somewhere?

Thanks for any help you folks can give me!
Guest
Guest

Post by Guest »

I assume you are referring to Alert dialogs that show "Javascript error: ..."

I'm looking at the source, and it appears that threre are two different types of alerts that can open: The one mentioned above and another that displays "Here: + a number + a message". Do you want to disable both only on that site or all alert dialogs regardless of the site?
Guest
Guest

Post by Guest »

It doesn't really matter. To disable all Javascript alerts, add this to user.js in your profile:

Code: Select all

user_pref("capability.policy.default.Window.alert", "noAccess");


If you only want to disable that particular function at Stardust@home:

Code: Select all

user_pref("capability.policy.default.Window.JS_error", "noAccess");


If user.js doesn't exist, create a new file with that name in your profile:
http://kb.mozillazine.org/User.js

Firefox needs to be restarted in order for the pref to take affect.
User avatar
quixote9
Posts: 63
Joined: September 7th, 2005, 8:48 am

Post by quixote9 »

Yessss! Thank you, thank you, thank you. I chose option 1 above, since I'm feeling bilious about the things, but now I know what to do if I decide I've gone too far.

You're right, it was the Alert dialogs I was talking about. The one that's been annoying me is the "Javascript error" kind.
Guest
Guest

Post by Guest »

You're welcome.

I just signed up myself. I've always been interested in particle physics. Thanks for bringing that to my attention.
Guest
Guest

Post by Guest »

^ It's not really 'particle physics', but it does remind me of particle tracks in a cloud chamber.
User avatar
quixote9
Posts: 63
Joined: September 7th, 2005, 8:48 am

Post by quixote9 »

(Well, interstellar dust particles are the same idea: tiny bits zipping through a medium at huge speeds. Except since we're only seeing a microsegment of the trajectory, it looks straight.)
Post Reply