Advertisement
tblop

jQuery_NSFW_Tumblr_Grower_v0.04

Nov 18th, 2017
548
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* Number of follow links in the queue to autoclick (1 every 5 to 8 seconds, up to 10 at a time) */
  2. if (!window.fnum || window.fnum<1 || window.fnum>50){window.fnum=1;}
  3.  
  4. /* Last timestamp when a follow was clicked */
  5. window.lastftime = Date.now();
  6.   jQuery('article.not_mine a.follow_link:contains(.is-following)').remove();
  7. /* If a post is a photo and the tumblr is set as nsfw, look for a follow-text link */
  8. jQuery('article.not_mine.post--owner_flagged_nsfw a.follow_link:not(.is-following)').each(
  9.     function () {
  10.        window.fnum++;
  11. console.log('QUEUED! '+window.fnum);
  12.                    
  13.         let that = this;
  14.         let tumname=jQuery(this).parent('article').attr('tumblelog');
  15.             window.setTimeout(function () {
  16.                 if (Date.now() - window.lastftime > 3000) {
  17.                     jQuery(that).click();
  18.                     console.log(tumname+' BOOM! '+window.fnum);
  19.        window.fnum--; jQuery('article a.follow_link:contains(.is-following)').remove();jQuery('#dialog_0 > div > div > div:nth-child(1) > button').click(); jQuery('.ui_dialog_lock.opaque').remove();jQuery('.ui_dialog_1').remove();
  20.                     window.lastftime = Date.now()
  21.                 }
  22.             }, ((Math.random() * 5000) + (5000 * window.fnum)))
  23.        
  24.     });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement