adfoc.us skip

Auto Open Skip Link & Show Hidden Button

当前为 2025-03-12 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name adfoc.us skip
  3. // @namespace Violentmonkey Scripts
  4. // @match http://adfoc.us/*
  5. // @grant none
  6. // @version 1.1
  7. // @author Baba-Yagan
  8. // @license CC BY-NC-SA 4.0
  9. // @license https://creativecommons.org/licenses/by-nc-sa/4.0/
  10. // @description Auto Open Skip Link & Show Hidden Button
  11. // @homepage https://greasyfork.org/en/scripts/529579-adfoc-us-skip
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16.  
  17. // Make #showSkip visible
  18. let skipDiv = document.querySelector("#showSkip");
  19. if (skipDiv) {
  20. skipDiv.removeAttribute("style");
  21. }
  22.  
  23. // Wait for the page to fully load
  24. window.onload = function() {
  25. let skipLink = document.querySelector("#showSkip a");
  26. if (skipLink && skipLink.href) {
  27. window.location.href = skipLink.href; // Redirect to the URL
  28. }
  29. };
  30. })();