summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorportix <none@none>2012-07-19 00:41:58 +0200
committerportix <none@none>2012-07-19 00:41:58 +0200
commitcb20623756e4adcc32dc77f28d9beacdb85cad8f (patch)
treefa7d4ea4f32d89035717e58e3971f691f0632a77 /extensions
parent2c2c2ac95fa9863919e58a3dff87c08306d3eb7b (diff)
downloaddwb-cb20623756e4adcc32dc77f28d9beacdb85cad8f.zip
Respect userscript.delay in userscripts
Diffstat (limited to 'extensions')
-rw-r--r--extensions/userscripts6
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/userscripts b/extensions/userscripts
index 8038d353..2fa84e32 100644
--- a/extensions/userscripts
+++ b/extensions/userscripts
@@ -204,7 +204,7 @@ function matchMatches(frame, items) //{{{
function doInject(frame, item) {
if (item.delay > 0) {
- timerStart(1000, function() {
+ timerStart(item.delay, function() {
frame.inject(item.script, item.unwrap);
return false;
});
@@ -226,10 +226,10 @@ function handle(frame, array, isMainFrame) //{{{
continue;
if (matchIncludeExclude(frame, item.include)) {
- doInject(frame, item, isMainFrame);
+ doInject(frame, item);
}
else if (matchMatches(frame, item.match)) {
- doInject(frame, item, isMainFrame);
+ doInject(frame, item);
}
}
catch (e) {