爱发电链接自动跳转

在“你正在离开爱发电,请长按复制网址到浏览器后访问”时自动跳转至其网址

目前为 2023-09-28 提交的版本。查看 最新版本

// ==UserScript==
// @name         爱发电链接自动跳转
// @namespace    https://www.cccpserver.cf
// @version      1.0
// @description  在“你正在离开爱发电,请长按复制网址到浏览器后访问”时自动跳转至其网址
// @author       HELPMEEADICE
// @match        https://afdian.net/link?target=*
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';

    // Get the target URL from the current page's URL
    const currentURL = window.location.href;
    const targetURL = new URLSearchParams(currentURL.split('?')[1]).get('target');

    if (targetURL) {
        // Redirect to the target URL
        window.location.href = decodeURIComponent(targetURL);
    }
})();

QingJ © 2025

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