MT 论坛自动回帖

自动回复

  1. "use strict";
  2. // ==UserScript==
  3. // @name MT 论坛自动回帖
  4. // @namespace http://tampermonkey.net/
  5. // @version 2024-05-02-2
  6. // @description 自动回复
  7. // @author You
  8. // @match https://bbs.binmt.cc/thread-*
  9. // @match https://bbs.binmt.cc/forum.php*
  10. // @icon https://www.google.com/s2/favicons?sz=64&domain=binmt.cc
  11. // @grant none
  12. // ==/UserScript==
  13. (function () {
  14. var config = {
  15. /** 随机回复文本 */
  16. texts: ['路过看看', '感谢分享', '值得一读', '让我看看'],
  17. /** 每条评论间隔时间 */
  18. waitTime: 15000,
  19. };
  20. try {
  21. var randText = function () { return config.texts[Math.floor(Math.random() * config.texts.length)]; };
  22. var textarea = document.getElementById('fastpostmessage');
  23. textarea.value = randText();
  24. var button = document.getElementById('fastpostsubmit');
  25. button.click();
  26. }
  27. catch (error) { }
  28. setTimeout(function () {
  29. document.title = '正在自动评论...';
  30. window.scrollTo(0, document.body.scrollHeight);
  31. }, 1000);
  32. setTimeout(function () {
  33. document.querySelector('.comiis_sxy a:nth-child(2)').click();
  34. }, config.waitTime);
  35. })();

QingJ © 2025

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