Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var unfollow = {
- int_id: 0,
- buttons: {},
- pos: 0,
- click_count: 0,
- click: function(){
- click = this.buttons[this.pos].click();
- this.click_count++;
- this.pos++;
- if(this.click_count >= 10){
- this.scroll();
- this.buttons_refresh();
- this.click_count =0;
- }
- },
- buttons_refresh: function(){
- this.buttons = $(".button-text.unfollow-text");
- },
- scroll: function(){
- $("body").scrollTop($("#doc").scrollTop() + 100000);
- },
- init: function(){
- var fileref=document.createElement('script')
- fileref.setAttribute("type","text/javascript")
- fileref.setAttribute("src", "https://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js")
- document.getElementsByTagName("head")[0].appendChild(fileref);
- },
- start: function(){
- var that = this;
- this.buttons = $(".button-text.unfollow-text");
- this.int_id = setInterval( function(){that.click(); },1000);
- },
- stop: function(){
- window.clearInterval(this.int_id);
- }
- }
- unfollow.start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement