Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Define a hidden preference for the install delay.

Fixes #1464
  • Loading branch information...
commit ff9bd12704df8435fd2d3c463cfa0469d2d351ee 1 parent 2366075
@arantius arantius authored
Showing with 3 additions and 1 deletion.
  1. +2 −1  content/install.js
  2. +1 −0  defaults/preferences/greasemonkey.js
View
3  content/install.js
@@ -1,3 +1,4 @@
+Components.utils.import('resource://greasemonkey/prefmanager.js');
Components.utils.import('resource://greasemonkey/util.js');
var gRemoteScript = window.arguments[0].wrappedJSObject[0];
@@ -9,7 +10,7 @@ var gAcceptButton = null;
var gCurrentDelay = null;
var gProgress = 0;
var gTimer = null;
-var gTotalDelay = 5;
+var gTotalDelay = new GM_PrefManager().getValue('installDelay', 5);
function init() {
setUpIncludes('includes', 'includes-desc', gScript.includes);
View
1  defaults/preferences/greasemonkey.js
@@ -1,6 +1,7 @@
pref("extensions.{e4a8a97b-f2ed-450b-b12d-ee082ba24781}.description", "chrome://greasemonkey/locale/greasemonkey.properties");
pref("greasemonkey.fileIsGreaseable", false);
pref("greasemonkey.globalExcludes", '[]');
+pref("greasemonkey.installDelay", 5);
pref("greasemonkey.unmhtIsGreaseable", false);
pref("greasemonkey.enableScriptRefreshing", true);
pref("greasemonkey.uninstallPreferences", true);
Please sign in to comment.
Something went wrong with that request. Please try again.