Last active
August 28, 2018 20:24
-
-
Save bdelespierre/cf6ba1613bc339904f4f094f1af33a84 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(e,s,n) { | |
e.src = s; | |
e.onload = function() { | |
console.log('jQuery injected'); | |
n(jQuery.noConflict()); | |
}; | |
document.head.appendChild(e); | |
})(document.createElement('script'), '//code.jquery.com/jquery-latest.min.js', function($){ | |
(function follow() { | |
// change the inner HTML to your language | |
var btns = $('button').filter(function (i, item) { return item.innerHTML == "S’abonner" }); | |
if (btns.length == 0) { | |
// scroll to load more... | |
window.scrollTo(0,document.body.scrollHeight); | |
console.log("moar!"); | |
} else { | |
// click one at random *sneaky* *sneaky* | |
$(btns[Math.floor(Math.random()*btns.length)]).click(); | |
console.log("click."); | |
} | |
// resume in 15~20s | |
setTimeout(follow, 15000 + Math.floor(Math.random()*5000)); | |
})(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment