微博外链重定向

此脚本用于点击新浪微博外链时自动跳转

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// weibo-external-link-redirection
// ==UserScript==
// @name         微博外链重定向
// @namespace    weibo-external-link-redirection
// @version      0.0.2
// @description  此脚本用于点击新浪微博外链时自动跳转
// @include     http://t.cn/*
// @require     http://libs.baidu.com/jquery/2.0.0/jquery.min.js
// @require     https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js
// @require     https://cdn.staticfile.org/jquery/1.12.4/jquery.min.js
// @author      AmemiyaKokoro

// ==/UserScript==
(function () {
  console.log($('.text').html())
  if ($('.text').html().includes('将要访问')) {
    window.location.replace($('.desc').html())
  }
})();