Skip to content

Commit 2bf1af1

Browse files
authored
Add files via upload
1 parent c21a704 commit 2bf1af1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

DIM - Auto Ghost Switcher.user.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
// ==Config==
1414
const STEAMID3 = 82699538; // steamID3, get from https://steamid.io/lookup/
15-
const INTERVAL = 1; // seconds, time between checking current in-game status
15+
const INTERVAL = 10; // seconds, time between checking current in-game status
1616
// ==/Config==
1717

1818
// ==Code==
@@ -126,9 +126,9 @@ const INTERVAL = 1; // seconds, time between checking current in-game status
126126
if (!aoe) { continue; }
127127

128128
var equip = () => doubleClick(item);
129-
var name = item.title;
129+
var name = item.title.trim().replace(/(\r\n\t|\n|\r\t)/gm,"");;
130130
var node = item;
131-
var ghost = { equip, name, ghost };
131+
var ghost = { equip, aoe, name, ghost };
132132
ghosts[aoe] = ghosts[aoe] || ghost; // keep first, assuming best is first
133133
ghosts.default = ghosts.default || ghost;
134134
}

0 commit comments

Comments
 (0)