Skip to content

Instantly share code, notes, and snippets.

@cons0ul
Created April 28, 2012 21:00
Show Gist options
  • Save cons0ul/2521985 to your computer and use it in GitHub Desktop.
Save cons0ul/2521985 to your computer and use it in GitHub Desktop.
Grease-monkey script to load html pages one by one
setTimeout( function () { try { i = GM_getValue("INDEX" , -11 );
if(i == -11){ GM_setValue("INDEX",1); }
else{
url="http://localhost/HTML/fuzzy-"+i.toFixed()+".html";
window.location.replace(url);
i+=1
GM_setValue("INDEX",i);
}
}catch(e){alert(e);}
},
30
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment