MozillaZine

Disable extension install delay - Firefox

From MozillaZine Knowledge Base

(Difference between revisions)
Revision as of 04:06, 5 September 2005
Elfguy (Talk | contribs)

<-- Previous diff
Revision as of 18:56, 6 September 2005
Unarmed (Talk | contribs)
(General cleanup, links)
Next diff -->
Line 1: Line 1:
-[http://www.squarefree.com Jesse Ruderman] gives us [http://www.squarefree.com/archives/000487.html reasons for not doing this] EVEN IF YOU ARE AN ADVANCED USER. Please read it before proceeding.+Whenever you install an extension (or click on a link to an XPI file), a confirmation dialog pops up with a short delay, preventing you from immediately confirming the install. It may be convenient to disable this delay, and there are two ways to do this.
 + 
 +''Note: [http://www.squarefree.com/ Jesse Ruderman] gives us [http://www.squarefree.com/archives/000487.html reasons for not doing this] EVEN IF YOU ARE AN ADVANCED USER. Please read it before proceeding.''
 + 
 +==Editing toolkit.jar==
Change the necessary lines in "toolkit.jar/content/mozapps/xpinstall/xpinstallConfirm.js" to: Change the necessary lines in "toolkit.jar/content/mozapps/xpinstall/xpinstallConfirm.js" to:
-: <code>_installCountdown: 0</code>+ _installCountdown: 0
And And
-: <code>this._installCountdownInterval = setInterval("XPInstallConfirm.okButtonCountdown()",0);</code>+ this._installCountdownInterval = setInterval("XPInstallConfirm.okButtonCountdown()",0);
 + 
 +You can access "<code>xpinstallConfirm.js</code>" by unzipping "<code>toolkit.jar</code>" in your "<code>/path/to/Firefox/chrome</code>" folder to somewhere else, keeping directory/folder structure intact. Modify the JS file and repackage everything with the folder structure it originally was stored into ZIP file. Rename the ZIP file to "<code>toolkit.jar</code>" and rename the original "<code>toolkit.jar</code>" to "<code>toolkit.jar.bak</code>" (as a backup). Then place the new "<code>toolkit.jar</code>" into "<code>/path/to/Firefox/chrome</code>".
 + 
 +(Source: [http://forums.mozillazine.org/viewtopic.php?p=536158#536158 MozillaZine Forums post by Cusser].)
 + 
 +==Using an Extension==
 + 
 +The extension [https://addons.mozilla.org/extensions/moreinfo.php?application=firefox&id=775 MR Tech Disable XPI Install Delay] does essentially the same thing as above, but in a convenient XPI format.
-You can access "xpinstallConfirm.js" by unzipping "toolkit.jar" in your "/path/to/Firefox/chrome" folder to somewhere else, keeping directory/folder structure intact. Modify the JS file and repackage everything with the folder structure it originally was stored into ZIP file. Rename the ZIP file to "toolkit.jar" and rename the original "toolkit.jar" to "toolkit.jar.bak" (as a backup). Then place the new "toolkit.jar" into "/path/to/Firefox/chrome".+==Preferences==
-Stolen from [http://forums.mozillazine.org/viewtopic.php?p=536158#536158 Cusser].+There are currently no preferences you can set to disable the delay. "security.dialog_enable_delay" would be a likely candidate for this purpose, and there is a [https://bugzilla.mozilla.org/show_bug.cgi?id=245737 bug filed for this enhancement].
-Note that the extension MR Tech Disable XPI Install Delay does this. Also, the preference "security.dialog_enable_delay" should technically do this also when set to "0" but it currently is bugged.+==External links==
 +* [http://www.squarefree.com/2004/07/01/race-conditions-in-security-dialogs Jesse Ruderman - Race conditions in security dialogs]
 +* [https://bugzilla.mozilla.org/show_bug.cgi?id=162020 Bug 162020 - pop up XPInstall/security dialog when user is about to click]
 +* [http://forums.mozillazine.org/viewtopic.php?p=536158#536158 MozillaZine Forums - XPI Install Delay extension]
 +* [https://addons.mozilla.org/extensions/moreinfo.php?application=firefox&id=775 MR Tech Disable XPI Install Delay]
 +* [https://bugzilla.mozilla.org/show_bug.cgi?id=245737 Bug 245737 - Install countdown should honor "security.dialog_enable_delay"]

Revision as of 18:56, 6 September 2005

Whenever you install an extension (or click on a link to an XPI file), a confirmation dialog pops up with a short delay, preventing you from immediately confirming the install. It may be convenient to disable this delay, and there are two ways to do this.

Note: Jesse Ruderman gives us reasons for not doing this EVEN IF YOU ARE AN ADVANCED USER. Please read it before proceeding.

Contents

Editing toolkit.jar

Change the necessary lines in "toolkit.jar/content/mozapps/xpinstall/xpinstallConfirm.js" to:

_installCountdown: 0

And

this._installCountdownInterval = setInterval("XPInstallConfirm.okButtonCountdown()",0);

You can access "xpinstallConfirm.js" by unzipping "toolkit.jar" in your "/path/to/Firefox/chrome" folder to somewhere else, keeping directory/folder structure intact. Modify the JS file and repackage everything with the folder structure it originally was stored into ZIP file. Rename the ZIP file to "toolkit.jar" and rename the original "toolkit.jar" to "toolkit.jar.bak" (as a backup). Then place the new "toolkit.jar" into "/path/to/Firefox/chrome".

(Source: MozillaZine Forums post by Cusser.)

Using an Extension

The extension MR Tech Disable XPI Install Delay does essentially the same thing as above, but in a convenient XPI format.

Preferences

There are currently no preferences you can set to disable the delay. "security.dialog_enable_delay" would be a likely candidate for this purpose, and there is a bug filed for this enhancement.

External links