Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var jq = document.createElement('script');
- jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js";
- document.getElementsByTagName('head')[0].appendChild(jq);
- setTimeout(function(){
- var increment = parseInt(localStorage.getItem('increment'));
- if(increment){
- loop(increment);
- }
- else {
- loop(0);
- }
- }, 4000);
- function loop(i){
- setTimeout(function(){
- console.log(i);
- var downloads = $('#table_holder a');
- var button = downloads[i];
- console.log(button);
- if(button){
- var href = $(button).attr('href');
- i++;
- localStorage.setItem('increment', i);
- window.location.href = href;
- loop(i);
- }
- }, 2000);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement