[not working] gplinks auto-skip

auto-click buttons for the gplinks link shortener

当前为 2024-12-09 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name [not working] gplinks auto-skip
  3. // @description auto-click buttons for the gplinks link shortener
  4. // @version 1.1
  5. // @include *
  6. // @run-at document-start
  7. // @namespace https://gf.qytechs.cn/users/980489
  8. // ==/UserScript==
  9.  
  10. (function() {
  11. 'use strict';
  12.  
  13. document.addEventListener('DOMContentLoaded', function() {
  14.  
  15. // part 1
  16. // can't specify a domain, they add new ones daily
  17. let button1 = document.querySelector('#VerifyBtn');
  18. let button2 = document.querySelector('#NextBtn');
  19. if (button1 && button2) {
  20. setTimeout(function() {button1.click()}, 3000);
  21. setTimeout(function() {button2.click()}, 5000);
  22. }
  23.  
  24. // part 2
  25. const part2domainRegex = /gplinks.co\/[^/#]+\/(?:#|\?pid=)/
  26. if (part2domainRegex.test(window.location.href)) {
  27. let button3 = document.querySelector('a.get-link');
  28. setTimeout(function() {button3.click()}, 6000);
  29. }
  30.  
  31. });
  32.  
  33. })();

QingJ © 2025

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