Instagram follow

try to take over the world!

当前为 2018-08-13 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Instagram follow
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.3
  5. // @description try to take over the world!
  6. // @author You
  7. // @match https://tampermonkey.net/index.php?version=4.7&ext=dhdg&updated=true
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13. var jq = document.createElement('script');
  14. jq.src = "//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js";
  15. document.getElementsByTagName('head')[0].appendChild(jq);
  16. jQuery.noConflict();
  17.  
  18. //und das als script
  19. window.setInterval(function(){
  20. var x = 0;
  21. $(document.getElementsByClassName("L3NKy")).each(
  22. function(){ if(!this.classList.contains("_8A5w5")){ // delete the exclamation mark to unfollow people
  23. if(x==1) {return false;}
  24. else
  25. {$(this).trigger("click");
  26. x++;console.log('follow');}}
  27. }
  28. )
  29. console.log('loop');
  30. }, 90000); // zeit, die man zwischen den follows wartet. 90000ms ist recht safe 60000 = 1min