PT万能签到

支持99.99%PT站点签到

  1. // ==UserScript==
  2. // @name PT万能签到
  3. // @namespace shareit,smilenet
  4. // @version 1.2.1
  5. // @description 支持99.99%PT站点签到
  6. // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAgCAYAAACYTcH3AAAAAXNSR0IArs4c6QAAAbxJREFUWEftlz1IQlEUx/9Xn4hBRGNNBdXQh0a1RIsRfdDmUCQ0CAUt0ahCi0sNrrUEDm4NDQ8iomiwIWjRIKmlpaYc4xVU0vPduI8EET/O1ScOvTs+/uec3/ufc97lMRCPqhspgD8FFOcWMQSqXjgC2FBAccxSYhhFJDSqbnAA19TEfzEpAP6A4iDVIYn+L4w3oq05GHY4x3S1tsX2OvHyXEAy8UntLEKbHejrdyK2+1ErJsO5cZaNd8eYL6xtg+GgXoUWwpilGeOrzBfR0gAm2w3DOc8KGLEldY+wPPdawOV5vq62KFhcdqOn10luLRmGTNCE0IapZp7tjO3MxJQLd+kf8n61bGZWgh6MjCo4Vb/JQC2BKYI8Pug4Of5qnzONgpj3E/U6EJbPL7lxdZGHeONKpxkQKZiBQQXrIY/JIKwvB2oWRApGiIU7omg5kBUg0jCVgIbHXCak7LBWajN5ZkqDSx0Sz60AaciZIpQAmltwI5czpNa31p435Az5wyEptGHsW1tyZMB8Ue0GHDOygVbrGcMt84bfNxjjCauTy+bjQND88R+PvvkBx36t31vZ5BL6DDiS9/Guw1/5Ifek+Vvu+AAAAABJRU5ErkJggg==
  7. // @author shareit
  8.  
  9. // @match https://ptfans.cc/*
  10. // @match https://www.hddolby.com/*
  11. // @include https://www.hddolby.com/*
  12. // @match https://t.tosky.club/*
  13. // @include https://crabpt.vip/*
  14. // @include https://qingwapt.com/*
  15. // @match https://qingwapt.com/*
  16. // @match https://www.yemapt.org/#/consumer/checkIn
  17. // @match https://www.yemapt.org/#/consumer/*
  18. // @include https://www.qingwapt.com/*
  19. // @match https://www.qingwapt.com/*
  20. // @include https://new.qingwa.pro/*
  21. // @include https://www.okpt.net/*
  22. // @include https://dajiao.cyou/*
  23. // @include https://www.woyushu.com/*
  24. // @include https://ultrahd.net/*
  25. // @include http://pt.tu88.men/*
  26. // @include https://srvfi.top/*
  27. // @include https://ptvicomo.net/*
  28. // @include https://www.ptlsp.com/*
  29. // @include https://pt.gtk.pw/*
  30. // @include https://share.ilolicon.com/*
  31. // @include https://hdvbits.com/*
  32. // @include https://pt.hdupt.com/*
  33. // @include https://pt.upxin.net/*
  34. // @include https://www.hdkyl.in/*
  35. // @include https://pt.hd4fans.org/*
  36. // @include https://discfan.net/*
  37. // @include https://www.agsvpt.com/*
  38. // @include https://azusa.wiki/*
  39. // @include https://star-space.net/*
  40. // @include https://ptsbao.club/*
  41. // @include https://hdpt.xyz/*
  42. // @include https://kufei.org/*
  43. // @include https://ptcafe.club/*
  44. // @include https://public.ecustpt.eu.org/*
  45. // @include https://pt.ecust.pp.ua/*
  46. // @include https://www.3wmg.com/*
  47. // @include https://oldtoons.world/*
  48. // @include https://xingtan.one/*
  49. // @include https://leaves.red/*
  50. // @include http://hdmayi.com/*
  51. // @include http://ihdbits.me/*
  52. // @include https://zhuque.in/*
  53. // @include https://1ptba.com/*
  54. // @include https://audiences.me/*
  55. // @include https://byr.pt/*
  56. // @include https://ccfbits.org/*
  57. // @include https://club.hares.top/*
  58. // @include https://cyanbug.net/*
  59. // @include https://discfan.net/*
  60. // @include https://et8.org/*
  61. // @include https://filelist.io/*
  62. // @include https://hdatmos.club/*
  63. // @include https://hdchina.org/*
  64. // @include https://hdcity.leniter.org/*
  65. // @include https://hdcity.city/*
  66. // @include https://hdfans.org/*
  67. // @include https://hdhome.org/*
  68. // @include https://hdmayi.com/*
  69. // @include https://hdsky.me/*
  70. // @include https://hdtime.org/*
  71. // @include https://hdvideo.one/*
  72. // @include https://hhanclub.top/*
  73. // @include https://hudbt.hust.edu.cn/*
  74. // @include https://iptorre*
  75. // @include https://kp.m-team.cc/*
  76. // @include https://lemonhd.org/*
  77. // @include https://nanyangpt.com/*
  78. // @include https://npupt.com/*
  79. // @include https://ourbits.club/*
  80. // @include https://piggo.me/*
  81. // @include https://pt.btschool.club/*
  82. // @include https://pt.eastgame.org/*
  83. // @include https://pt.hdbd.us/*
  84. // @include https://pt.keepfrds.com/*
  85. // @include https://ptchina.org/*
  86. // @include https://pterclub.com/*
  87. // @include https://pthome.net/*
  88. // @include https://totheglory.im/*
  89. // @include https://u2.dmhy.org/*
  90. // @include https://www.beitai.pt/*
  91. // @include https://www.carpet.net/*
  92. // @include https://www.haidan.video/*
  93. // @include https://www.hd.ai/*
  94. // @include https://www.hdarea.co/*
  95. // @include https://hdarea.club/*
  96. // @include https://www.hddolby.com/*
  97. // @include https://www.hdpt.xyz/*
  98. // @include https://www.htpt.cc/*
  99. // @include https://www.icc2022.com/*
  100. // @include https://www.nicept.net/*
  101. // @include https://www.oshen.win/*
  102. // @include https://www.pthome.net/*
  103. // @include https://www.tjupt.org/*
  104. // @include https://www.torrent*
  105. // @include https://zmpt.cc/*
  106. // @include https://carpt.net/*
  107. // @include https://wintersakura.net/*
  108. // @include https://sharkpt.net/*
  109. // @include https://gainbound.net/*
  110. // @include https://hdvideo.one/*
  111. // @include https://pt.2xfree.org/*
  112. // @include http://www.oshen.win/*
  113. // @include http://uploads.ltd/*
  114. // @include https://ubits.club/*
  115. // @include http://hdzone.me/*
  116. // @include https://pt.soulvoice.club/*
  117. // @include https://www.gamegamept.com/*
  118. // @include https://pt.itzmx.com/*
  119. // @include https://pt.0ff.cc/*
  120. // @include https://carpt.net/*
  121. // @include https://www.pttime.org/*
  122. // @include https://rousi.zip/*
  123. // @include https://pandapt.net/*
  124. // @include https://invites.fun/*
  125. // @include https://wukongwendao.top/*
  126. // @include https://hdfun.me/*
  127. // @include https://pt.cdfile.org/*
  128. // @include https://bitporn.eu/*
  129. // @include https://kamept.com/*
  130.  
  131.  
  132. // @grant none
  133. // @compatible Chrome
  134. // @compatible Firefox
  135. // @compatible Edge
  136. // @compatible Safari
  137. // @compatible Opera
  138. // @compatible UC
  139. // @license MIT
  140. // ==/UserScript==
  141.  
  142. //// @include https://springsunday.net/*
  143. (function() {
  144. function xpath(query) {
  145. //console.log("document.evaluate(\""+query+"\", document, null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);");
  146. return document.evaluate(query, document, null,
  147. XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  148. }
  149.  
  150. var host = window.location.host;
  151. var href = window.location.href;
  152. function formatDate(date) {
  153. const yyyy = date.getFullYear();
  154. const MM = String(date.getMonth() + 1).padStart(2, '0'); // 月份从 0 开始
  155. const dd = String(date.getDate()).padStart(2, '0');
  156.  
  157. return `${yyyy}-${MM}-${dd}`;
  158. }
  159.  
  160. // 获取今天的日期,格式为 YYYY-MM-DD
  161. const today = formatDate(new Date());
  162.  
  163. // 创建自定义提示框的方法
  164. function showAlert(message, duration, callback) {
  165. // 创建提示框元素
  166. const alertBox = document.createElement('div');
  167. alertBox.innerText = message;
  168. alertBox.style.fontSize = '16px';
  169.  
  170. // 添加样式
  171. Object.assign(alertBox.style, {
  172. position: 'fixed',
  173. top: '50%',
  174. left: '50%',
  175. transform: 'translate(-50%, -50%)', // 将元素移动到中心
  176. padding: '20px 30px',
  177. backgroundColor: '#DF4E0E',
  178. color: '#fff',
  179. borderRadius: '5px',
  180. zIndex: '10000',
  181. boxShadow: '0 2px 10px rgba(0, 0, 0, 0.5)',
  182. transition: 'opacity 0.5s ease',
  183. textAlign: 'center' // 文本居中
  184. });
  185.  
  186. // 将提示框添加到页面
  187. document.body.appendChild(alertBox);
  188.  
  189. // 在指定时间后让提示框消失
  190. setTimeout(() => {
  191. alertBox.style.opacity = '0'; // 设置透明度为0,以便于淡出效果
  192. //setTimeout(() => {
  193. document.body.removeChild(alertBox); // 从DOM中移除提示框
  194.  
  195. // 执行回调函数(如果提供)
  196. if (typeof callback === 'function') {
  197. callback();
  198. }
  199. //}, 500); // 等待过渡效果完成后再移除
  200. }, duration);
  201. }
  202.  
  203.  
  204. setTimeout(function() {
  205.  
  206. var attendanceTexts = [
  207. "签到得魔力",
  208. "签 到",
  209. "签到得猫粮",
  210. "签到",
  211. "每日签到",
  212. "簽到得魔力",
  213. "每日打卡",
  214. "签到领魔力",
  215. "签到得莉莉",
  216. "Check in",
  217. "[Sign in]",
  218. "签到得鲸币",
  219. "签到得",
  220. "Attend get bonus",
  221. "[Attend get bonus]",
  222. "attend get bouns",
  223. "Attend get bouns",
  224. ];
  225.  
  226. function signIn() {
  227.  
  228. for (var index in attendanceTexts) {
  229. var text = attendanceTexts[index];
  230. var allElements = xpath("//*[contains(text(), '" + text + "')]");
  231. for (var i = 0; i < allElements.snapshotLength; i++) {
  232. var ptSignElements = allElements.snapshotItem(i);
  233. if (ptSignElements != null) {
  234. console.log(ptSignElements.innerText);
  235. if (ptSignElements.innerText.indexOf(text) != -1) {
  236. try {
  237. showAlert(window.location.host + "疑似未签到,签到中...", 1.5 * 1000, () => {
  238. console.log(ptSignElements);
  239. localStorage.setItem('signInDate', today)
  240. localStorage.setItem('originalUrl',window.location.href)
  241. ptSignElements.click();
  242. console.log("签到:" + window.location.host);
  243.  
  244. })
  245.  
  246. } catch (error) {
  247. // do nothing
  248. console.log(error);
  249. }
  250. }
  251. return;
  252. }
  253. }
  254. }
  255. }
  256.  
  257.  
  258. // 从 localStorage 获取签到状态
  259. const signInDate = localStorage.getItem('signInDate');
  260.  
  261. if (signInDate !== today) {
  262. // 如果今天未签到,执行签到逻辑
  263.  
  264. // 这里替换为你的签到代码,比如发送请求或点击按钮
  265. console.log("今天未签到,执行签到操作...");
  266.  
  267. const regex = /签到.*(\d+).*天/;
  268. for (var index in attendanceTexts) {
  269. var text = attendanceTexts[index];
  270. var allElements = xpath("//*[contains(text(), '" + text + "')]");
  271. for (var i = 0; i < allElements.snapshotLength; i++) {
  272. var ptSignElements = allElements.snapshotItem(i);
  273. if (ptSignElements != null) {
  274. console.log(ptSignElements.innerText);
  275. if (ptSignElements.innerText.indexOf(text) != -1) {
  276. if (ptSignElements.innerText.indexOf("已") != -1 ||
  277. ptSignElements.innerText.indexOf("总") != -1 ||
  278. ptSignElements.innerText.match(regex) ||
  279. ptSignElements.innerText.indexOf("Attend got") != -1 ||
  280. ptSignElements.innerText.indexOf("got today") != -1 ||
  281. ptSignElements.innerText.indexOf("got today") != -1 ||
  282. ptSignElements.innerText.indexOf("already attended") != -1
  283.  
  284. ) {
  285. console.log("已签到:" + window.location.host)
  286. localStorage.setItem('signInDate', today)
  287. showAlert(window.location.host + "今日签到完成...", 2 * 1000, () => {
  288. const referrerUrl = document.referrer;
  289.  
  290. // 检查是否有有效的上一页 URL
  291. if (referrerUrl) {
  292. // 跳转到上一页
  293. console.log("返回:"+referrerUrl);
  294. window.location.href = referrerUrl;
  295. }
  296.  
  297. })
  298. return;
  299. }
  300. }
  301. }
  302. }
  303. }
  304.  
  305. signIn();
  306. } else {
  307. // 今天已签到,跳过
  308. console.log("今天已签到,跳过签到操作。");
  309. const originalUrl = localStorage.getItem('originalUrl');
  310. if(originalUrl && originalUrl != window.location.href){
  311. console.log("返回:"+originalUrl);
  312. localStorage.removeItem('originalUrl')
  313. window.location.href = originalUrl;
  314. }
  315. }
  316.  
  317.  
  318. }, 500);
  319.  
  320.  
  321.  
  322. })();

QingJ © 2025

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