Skip to content

Commit

Permalink
sligthly increase pause between hold submissions
Browse files Browse the repository at this point in the history
  • Loading branch information
AlterTobi committed Oct 20, 2023
1 parent 296468e commit d45e60a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wfes-AutoHold.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @name AutoHold
// @version 1.1.0
// @version 1.1.1
// @description put nomination on HOLD when additional stament contains the text "#hold"
// @author AlterTobi

Expand All @@ -10,7 +10,7 @@

const searchRegex = /#hold|,yxcv/;
const idlist = [];
const timeout = 2000;
const timeout = 2500;
const nomlistURL = "https://wayfarer.nianticlabs.com/new/nominations";

// based on example from https://www.w3schools.com/js/js_cookies.asp
Expand Down Expand Up @@ -66,7 +66,7 @@
_setHold(o.id);
} else {
window.wfes.f.createNotification("AutoHold: all nominations processed, reloading page", "green");
setTimeout(()=>{window.location.href=nomlistURL;}, timeout);
setTimeout(()=>{window.location.href=nomlistURL;}, 2*timeout);
}
}

Expand Down

0 comments on commit d45e60a

Please sign in to comment.