Jike Auto Click Like

即刻网页版自动点赞

目前为 2019-03-11 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Jike Auto Click Like
  3. // @namespace JikeWebAutoClickLike
  4. // @version 0.1
  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(".symbol-dig");
  17. zan.forEach(function(item,index){
  18. var p=item.parentElement;
  19. if(p.parentElement.getAttribute("class") == "op-item "){p.click();}
  20. })
  21. }
  22. })();