autoliker

12/4/2019, 1:00:36 AM

  1. // ==UserScript==
  2. // @name autoliker
  3. // @namespace Violentmonkey Scripts
  4. // @match *://www.tumblr.com/dashboard
  5. // @grant none
  6. // @version 1.0
  7. // @author ghostplantss
  8. // @description 12/4/2019, 1:00:36 AM
  9. // ==/UserScript==
  10.  
  11. (
  12. function scroll (f) {
  13. var count = 0;
  14. window.addEventListener("scroll", ( //every time you scroll
  15. function fun() //it runs this function!
  16. {
  17. count++;
  18. $("div.like").each(function() //it finds the like button
  19. {
  20. if(!$(this).hasClass("liked") ) //if the post is not yet liked
  21. {
  22. this.click();//it clicks the button!
  23. }
  24. });
  25. }), false);//the end
  26. }
  27.  
  28. )(window.jQuery);