您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
新浪微博短链接自动跳转
当前为
// ==UserScript== // @name WeiboURL // @namespace http://tampermonkey.net/ // @version 0.1 // @description 新浪微博短链接自动跳转 // @author disksing // @match *://t.cn/* // @grant none // ==/UserScript== (function() { 'use strict'; if (window.location.href.match(/^https?:\/\/t.cn\/[a-zA-Z0-9]+(\?.*)?$/) == null) { return; } var link = document.querySelector(".link"); if (link==null || !link.innerText.startsWith("http")) { return; } console.log("redirecting to "+link.innerText); setTimeout(function(){window.location.href=link.innerText}, 500); })();