Reddit Comment Delete

Automatically removes all comments one-by-one from the reddit profile page. THIS WILL RUN IF THE SCRIPT IS ENABLED!

  1. // ==UserScript==
  2. // @name Reddit Comment Delete
  3. // @description Automatically removes all comments one-by-one from the reddit profile page. THIS WILL RUN IF THE SCRIPT IS ENABLED!
  4. // @license GNU GPLv3
  5. // @namespace https://gf.qytechs.cn/en/scripts/475588-reddit-comment-delete
  6. // @match https://www.reddit.com/user/*
  7. // @version 1.1
  8. // ==/UserScript==
  9.  
  10. location.href = "javascript:(" + function()
  11. {
  12.  
  13.  
  14.  
  15. var deleted = 0;
  16. var links = document.getElementsByTagName("a");
  17. var i = 0;
  18. var d = 0;
  19. for (i = 0; i < links.length; i++)
  20. {
  21. var l = links[i];
  22. if (l.href)
  23. {
  24. if (l.innerHTML == "delete")
  25. {
  26. toggle(l);
  27. d = 1;
  28. }
  29. if (d && (l.innerHTML == "yes"))
  30. {
  31. deleted++;
  32. l.id='xxx'+i;
  33.  
  34. var butter="document.getElementById('xxx"+i+"')";
  35. var f=function(a)
  36. {
  37. hide_thing(a);
  38. };
  39. setTimeout("change_state( "+butter+", 'del', hide_thing)", 1000*deleted);
  40. d=0;
  41. }
  42. }
  43. }
  44. if(deleted>0)
  45. {
  46. setTimeout("location.reload(true);",1000*(deleted+1));
  47. }
  48. } + ")()";
  49.  

QingJ © 2025

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