-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdestiny-lfg-updater.chrome.user.js
49 lines (44 loc) · 1.18 KB
/
destiny-lfg-updater.chrome.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// ==UserScript==
//
// @name Destiny LFG Refresher
// @author Daniel Aquino
// @namespace https://github.com/chino
// @description Clicks Refresh and Update Gaurdian button repeatedly
// @include *destinylfg.com*
//
// ==/UserScript==
//
if(typeof ___updater == 'undefined')
{
// refresh the list
___refresher = setInterval(function(){
var e = document.getElementById('refresh');
if(e && e.click)
{
e.click();
console.log("refreshing Gaurdian list");
}
else
{
console.log("no #refresh button?");
}
}, 60 * 1000);
// update the listed gaurdian
___updater = setInterval(function(){
var e = document.getElementById('updateMe');
if(e && e.click && e.style.display == "block")
{
e.click();
document.getElementById('updateMeForm').click();
console.log("updating Gaurdian listing");
}
else
{
//console.log("no #updateMe button?");
}
}, 60 * 1000);
}
/*
window.__timer = window.setInterval(function(){ $('#updateMe').click(); $('#updateMeForm').click(); },60000)
window.__timer_refresh = window.setInterval(function(){ $('#refresh').click(); },10000)
*/