function refresh() { switch (GM_getValue('$x', '')) { case "0": if (window.find(":53")) { window.location.reload(); } break; case "1": if (window.find(":10")) { window.setTimeout( function() { GM_setValue('$x', '2'); window.location.reload(); }, 383000); } break; case "2": if (window.find(":53")) { GM_setValue('$x', '1'); window.location.reload(); } break; default: GM_setValue('$x', '0'); go(); break; } }
There must be a syntax error because it's not compiling the function, but I can't seem to find it.
Edited by Metigue, 15 November 2010 - 10:29 AM.