🏠 返回首頁 

Greasy Fork is available in English.

cybertyrant.com -and others- link shortener auto-skipper

Auto-click the buttons and redirect to the download link.


安装此脚本?
  1. // ==UserScript==
  2. // @name cybertyrant.com -and others- link shortener auto-skipper
  3. // @version 1.2
  4. // @description Auto-click the buttons and redirect to the download link.
  5. // @author Rust1667
  6. // @match *://cybertyrant.com/*
  7. // @match *://profitshort.com/*
  8. // @match *://courselinkfree.us/*
  9. // @match *://technorozen.com/*
  10. // @match *://hubdrive.me/*
  11. // @match *://bestadvise4u.com/*
  12. // @match *://newztalkies.com/*
  13. // @match *://10desires.org/*
  14. // @match *://theapknews.shop/*
  15. // @match *://aiotechnical.com/*
  16. // @match *://cryptonewzhub.com/*
  17. // @match *://trendzguruji.me/*
  18. // @match *://techvybes.com/*
  19. // @match *://wizitales.com/*
  20. // @match *://101desires.com/*
  21. // @match *://gdspike.com/*
  22. // @grant none
  23. // @namespace https://greasyfork.org/users/980489
  24. // ==/UserScript==
  25. (function() {
  26. 'use strict';
  27. // Variable to store the interval ID
  28. var intervalId;
  29. // Variable to track whether the link is found
  30. var linkFound = false;
  31. // Function to check and redirect, and simulate a click if 'rd_btn' is found
  32. function checkRedirectAndClick() {
  33. // If the link is found, stop the interval
  34. if (linkFound) {
  35. clearInterval(intervalId);
  36. return;
  37. }
  38. // Find the element with class 'rd_btn'
  39. var rdBtnElement = document.querySelector('.rd_btn');
  40. // Check if the element is found and contains an href attribute
  41. if (rdBtnElement && rdBtnElement.href) {
  42. var rdBtnHref = rdBtnElement.href;
  43. if (rdBtnHref.includes("/?re=")) {
  44. // Show the link in an alert
  45. alert("Download link: " + rdBtnHref);
  46. }
  47. // Redirect the current window to the href link
  48. window.location.href = rdBtnHref;
  49. // Set the linkFound variable to true
  50. linkFound = true;
  51. // Stop the interval once the link is found
  52. clearInterval(intervalId);
  53. } else if (rdBtnElement) {
  54. console.log("trying to click...");
  55. // Simulate a click on the 'rd_btn' element
  56. rdBtnElement.click();
  57. }
  58. }
  59. // Start the interval and store the interval ID
  60. intervalId = setInterval(checkRedirectAndClick, 1000); // Check every 1000 milliseconds (1 second)
  61. })();