链接地址直接跳转跳转到目标网站
// ==UserScript==
// @name CSDN,简书,掘金,gitee,跳转脚本
// @description 链接地址直接跳转跳转到目标网站
// @namespace https://www.example.com/
// @version 1.1
// @match https://link.csdn.net/*
// @match https://www.jianshu.com/go-wild*
// @match https://link.juejin.cn/*
// @match https://gitee.com/link*
// @grant none
// @license MIT
// ==/UserScript==
(function() {
'use strict';
const searchParams = new URLSearchParams(window.location.search);
const target = searchParams.get('target');
if (target !== null) {
window.location.href = decodeURIComponent(target);
}
const url = searchParams.get('url');
if (url !== null) {
window.location.href = decodeURIComponent(url);
}
})();