Skip to content

Instantly share code, notes, and snippets.

@bdelespierre
Last active August 28, 2018 20:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bdelespierre/cf6ba1613bc339904f4f094f1af33a84 to your computer and use it in GitHub Desktop.
Save bdelespierre/cf6ba1613bc339904f4f094f1af33a84 to your computer and use it in GitHub Desktop.
(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