Greasy Fork镜像 支持简体中文。

Delete Weibo Comment

try to take over the world!

  1. // ==UserScript==
  2. // @name Delete Weibo Comment
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description try to take over the world!
  6. // @author Lu
  7. // @match https://weibo.com/comment/*
  8. // @resource html http://tampermonkey.net/index.html
  9. // ==/UserScript==
  10. window.setInterval(deleteComment,1000);
  11. var item1=document.getElementsByClassName("W_ficon ficon_close S_ficon")
  12. var item2=document.getElementsByClassName("W_btn_a btn_34px")
  13. function deleteComment() {
  14. 'use strict';
  15. if ( item1.length>0){
  16. item1[1].click()
  17. item2[0].click()
  18. }
  19. else {
  20. document.getElementsByClassName("page next S_txt1 S_line1")[0].click()}
  21. // Your code here...
  22. };

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址