click thx

感謝解鎖

  1. // ==UserScript==
  2. // @name click thx
  3. // @name:zh-CN 感谢解锁
  4. // @name:zh-TW 感謝解鎖
  5. // @namespace https://oursogo.com
  6. // @match https://oursogo.com/thread*
  7. // @match https://oursogo.com/forum.php?mod=viewthread&tid=*
  8. // @grant none
  9. // @version 2024-08-31 07:37
  10. // @icon https://oursogo.com/static/image/common/bbs.ico
  11. // @author qq
  12. // @description 感謝解鎖
  13. // @description:zh-CN 解锁感谢
  14. // @description:zh-TW 解鎖感謝
  15. // @license MIT
  16. // ==/UserScript==
  17.  
  18. setTimeout(function(){
  19. let thx = document.querySelector('div.locked a[onclick*="thanks"]');
  20. if (!!thx) {
  21. thx.click();
  22. setInterval(function(){
  23.  
  24. let sendthx = document.querySelector('div.pns button');
  25. if (!!sendthx){
  26. sendthx.click();
  27.  
  28. }
  29. }, 500);
  30. }
  31.  
  32. }, 2500);