您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
在点击CSDN中的跳转链接时,不需再次点击继续就能立马离开CSDN,去往某某某某目的地!
// ==UserScript== // @name 您立马离开CSDN,去往某某某某 // @namespace http://tampermonkey.net/ // @version 2.0 // @description 在点击CSDN中的跳转链接时,不需再次点击继续就能立马离开CSDN,去往某某某某目的地! // @author Huang Sir // @match http*://link.csdn.net/* // @icon https://www.google.com/s2/favicons?sz=64&domain=csdn.net // @grant none // @license everyone // ==/UserScript== (function() { 'use strict'; // Your code here... /* var target = document.getElementById('linkPage').getElementsByTagName('a'); console.log('target[1] ='+target[1]+'\n'+(target[1] != null)); if(target[1] != null){ window.location.href=target[1]; console.log('target[1]跳转成功!\n'); var target_go = target[1].attributes.href.value; console.log(target_go+'\n'+(target_go != null)); if(target_go != null){ window.location.href=target_go; console.log('跳转成功!\n'); } } */ var url = window.location.href; // console.log(url) var target = url.substring(30); // window.location.href=target; console.log('target = '+ target) // location.href=target; target = target.replace(/%2F/g,"/").replace("%3A",":") window.location.href=target; //console.log(target[1]+'\n跳转失败!\n'); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址