吾爱破解论坛自动签到

吾爱破解论坛自动签到,打开页面时自动检测签到的图片,如果是“打卡签到”则自动打开一个 iframe 用于签到,1 秒之后关闭 iframe,并且将图片换成“签到完毕”

  1. // ==UserScript==
  2. // @name 吾爱破解论坛自动签到
  3. // @namespace https://www.52pojie.cn/thread-747305-1-1.html
  4. // @version 0.1
  5. // @description 吾爱破解论坛自动签到,打开页面时自动检测签到的图片,如果是“打卡签到”则自动打开一个 iframe 用于签到,1 秒之后关闭 iframe,并且将图片换成“签到完毕”
  6. // @author Ganlv
  7. // @match https://www.52pojie.cn/*
  8. // @icon https://www.52pojie.cn/favicon.ico
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. var img = document.querySelector('img[src="https://www.52pojie.cn/static/image/common/qds.png"]');
  16. if (img) {
  17. var href = img.parentElement.href;
  18.  
  19. var div = document.createElement('div');
  20. div.style.display = 'none';
  21. div.style.position = 'fixed';
  22. div.style.top = '112px';
  23. div.style.right = '12px';
  24. div.style.width = '626px';
  25. div.style.height = '98px';
  26. div.style.overflow = 'hidden';
  27. div.style.zIndex = '9999';
  28. div.style.boxShadow = '0 3px 6px #999';
  29. div.onscroll = function () {
  30. div.scrollLeft = 0;
  31. div.scrollTop = 0;
  32. };
  33.  
  34. let iframe = document.createElement('iframe');
  35. iframe.style.border = 'none';
  36. iframe.width = '1280';
  37. iframe.height = '5000';
  38. iframe.onload = function () {
  39. iframe.style.position = 'absolute';
  40. iframe.style.left = '-328px';
  41. iframe.style.top = '-264px';
  42. img.src = 'https://www.52pojie.cn/static/image/common/wbs.png';
  43. div.style.display = '';
  44. setTimeout(function () {
  45. div.remove();
  46. }, 1000);
  47. };
  48. div.appendChild(iframe);
  49.  
  50. var wrapper = document.createElement('div');
  51. wrapper.style.position = 'absolute';
  52. wrapper.style.left = '0';
  53. wrapper.style.top = '0';
  54. wrapper.style.width = '1280px';
  55. wrapper.style.height = '5000px';
  56. wrapper.style.zIndex = '10000';
  57. wrapper.onclick = function () {
  58. div.remove();
  59. };
  60. div.appendChild(wrapper);
  61.  
  62. document.body.appendChild(div);
  63.  
  64. iframe.src = href;
  65. }
  66. })();

QingJ © 2025

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