Jike Auto Click Like

即刻网页版自动点赞

目前为 2020-06-16 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Jike Auto Click Like
  3. // @namespace JikeWebAutoClickLike
  4. // @version 0.2
  5. // @description 即刻网页版自动点赞
  6. // @author smilevent(@即刻:秋犯)
  7. // @match https://web.okjike.com/*
  8. // @run-at document-end
  9. // @homepage https://gist.github.com/smilevent/15243c150e268da74aae655843cbcde1
  10. // @license The MIT License (MIT); http://opensource.org/licenses/MIT
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. document.body.onmousewheel=function(){
  16. var zan = document.querySelectorAll('svg[liked=false]')
  17. //console.log("点赞列表长度",zan.length);
  18. zan.forEach(function(item,index){
  19. var p=item.parentElement;
  20. p.click();
  21. //if(p.parentElement.getAttribute("class") == "op-item "){p.click();}
  22. })
  23. }
  24. })();