Tumblrisms

Click all loaded Like buttons (Gab.ai bookmarklet)

Nov 7th, 2016
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Go to http://mrcoles.com/bookmarklet/ and put the below script, LESS this comment, into the box. Don't check the option to include jQuery. The site will then give you a button ("this link") you can drag into your browser's UI and use anytime. When activated, it will hit all available Like buttons.
  2.  
  3. var nodes = document.evaluate(".//a[not(@class) or @class!='active']/i[@class='ion-chevron-up']", document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
  4.            
  5. for (var i = 0; i < nodes.snapshotLength; i++)
  6. {
  7.     if (nodes.snapshotItem(i).style.display != "none")
  8.     {
  9.         nodes.snapshotItem(i).click();
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment