您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
自动从指向123盘/蓝奏云/迅雷云盘的酷安“未知网页安全提示”页面跳转至目标地址
// ==UserScript== // @name 酷安网盘链接重定向 // @namespace CoolApkFileDirect // @version 1.3 // @description 自动从指向123盘/蓝奏云/迅雷云盘的酷安“未知网页安全提示”页面跳转至目标地址 // @author 2943398@CoolApk // @license MIT // @icon https://www.coolapk.com/favicon.ico // @match *://www.coolapk.com/link* // @run-at document-start // @grant none // ==/UserScript== (function (coolUrl) { 'use strict'; let notCool = coolUrl.match(/^https?:\/\/www\.coolapk\.com\/link\?url=(\S+)/i); if (notCool) { const rawTarget = new URL(decodeURIComponent(notCool[1]).replace(/^(?!\w+:\/\/)(\/\/)?/, 'https://')); if (/^(\w+\.)?(123pan|ilanzou|xunlei)\.com$/i.test(rawTarget.hostname)) { window.location.replace(rawTarget.href); } else if (/^(\w+\.)?lanzou\w\.com$/i.test(rawTarget.hostname)) { rawTarget.hostname = 'pan.lanzouq.com'; // In case lanzou's domain gets robbed window.location.replace(rawTarget.href); } else { console.log('[CoolApkFileDirect]: Neither 123pan nor lanzou url detected.'); } } })(window.location.href);