auto-say-hello-plus

化身西部hello哥亚瑟摩根,对每个种子页面都自动感谢!如果未匹配成功请联系我:[email protected]

当前为 2025-05-20 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         auto-say-hello-plus
// @namespace    http://tampermonkey.net/
// @description:zh-CN  化身西部hello哥亚瑟摩根,对每个种子页面都自动感谢!如果未匹配成功请联系我:[email protected]
// @description:en  Transform into the Western Hello Brother Arthur Morgan and automatically send thanks on every torrent page! If it fails to match successfully, please contact me: [email protected]
// @license MIT
// @author       wiiii
// @version      1.0.4
// @email        [email protected]
// @copyright (c) 2025-01-01
// @match        *://pt.m-team.cc/*details.php*
// @match        *://kp.m-team.cc/*details.php*
// @match        *://xp.m-team.io/*details.php*
// @match        *://pt.btschool.club/details.php*
// @match        *://www.haidan.video/details.php*
// @match        *://www.hddolby.com/details.php*
// @match        *://www.hdarea.co/details.php*
// @match        *://hdatmos.club/details.php*
// @match        *://hdhome.org/details.php*
// @match        *://hdsky.me/details.php*
// @match        *://hdtime.org/details.php*
// @match        *://hhanclub.top/details.php*
// @match        *://lemonhd.org/details*
// @match        *://pt.soulvoice.club/details.php*
// @match        *://avgv.cc/details.php*
// @match        *://ptsbao.club/details.php*
// @match        *://www.beitai.pt/details.php*
// @match        *://ubits.club/details.php*
// @match        *://et8.org/details.php*
// @match        *://pt.eastgame.org/details.php*
// @match        *://pthome.net/details.php*
// @match        *://pterclub.com/details.php*
// @match        *://ourbits.club/details.php*
// @match        *://hdzone.me/details.php*
// @match        *://pt.msg.vg/details.php*
// @match        *://hdfans.org/details.php*
// @match        *://rousi.zip/details.php*
// @match        *://carpt.net/details.php*
// @match        *://www.tjupt.org/details.php*
// @match        *://yingk.com/details.php*
// @match        *://www.dragonhd.xyz/details.php*
// @match        *://chdbits.co/details.php*
// @match        *://njtupt.top/details.php*
// @match        *://sunnypt.top/details.php*
// @match        *://audiences.me/details.php*
// @match        *://xingtan.one/details.php*
// @match        *://www.nicept.net/details.php*
// @match        *://tmpt.top/details.php*
// @match        *://open.cd/*.php*
// @grant        none
// @description 化身西部hello哥亚瑟摩根,对每个种子页面都自动感谢!如果未匹配成功请联系我:[email protected]
// ==/UserScript==

(function () {
  "use strict";

  // 定义等待函数
  var wait = (ms) => new Promise((resolve) => setTimeout(resolve, ms));

  // 定义站点组
  const siteGroups = [
    {
      sites: [
        "pt.btschool.club",
        "www.hddolby.com",
        "hdatmos.club",
        "hdhome.org",
        "hdsky.me",
        "audiences.me",
        "lemonhd.org",
        "pt.soulvoice.club",
        "www.beitai.pt",
        "et8.org",
        "pt.eastgame.org",
        "pthome.net",
        "pterclub.com",
        "hdzone.me",
        "pt.msg.vg",
        "hdfans.org",
        "rousi.zip",
        "carpt.net",
        "hhanclub.top",
        "ubits.club",
        "www.dragonhd.xyz",
        "njtupt.top",
        "sunnypt.top",
        "audiences.me",
        "xingtan.one",
        "www.nicept.net",
        "tmpt.top",
        "open.cd",
      ],
      action: () => {
        wait(3000).then(() => {
          const sayThanksButton = document.getElementById("saythanks");
          if (sayThanksButton && !sayThanksButton.disabled) {
            console.log("~~~说谢谢~~~");
            sayThanksButton.click();
          }
        });
      },
    },
  ];

  // 遍历站点组并匹配执行相应动作
  for (const group of siteGroups) {
    console.log('%c 说谢谢。', 'color: green;');
    if (group.sites.some((site) => location.href.indexOf(site) >= 0)) {
      group.action();
      break; // 只执行匹配到的第一个组的动作
    }
  }
})();