Skip Go to

Redirects directly to the final page without "Yes, I confirmed"

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        Skip Go to
// @namespace   Violentmonkey Scripts
// @match       *://forums.socialmediagirls.com/goto/*
// @icon        https://cdn0.iconfinder.com/data/icons/arrow-2-1/512/826-21-512.png
// @grant       none
// @run-at      document-start
// @version     0.1
// @author      drak4r
// @description Redirects directly to the final page without "Yes, I confirmed"
// @license     GPLv3
// ==/UserScript==

(function() {
    'use strict';

    // Wait for the document to be completely loaded
    window.addEventListener('load', function() {
        // Select the link that contains the specific class
        const link = document.querySelector('a.button--cta.button');

        // Checks if the link exists
        if (link) {
            // Capture the href URL
            const url = link.href;

            // Redirects to the captured URL
            window.location.href = url;
        }
    });
})();