Link skipper

Script to make illegal fandsub bankrupt!! this script to auto decode short link when you try download something. save your time, save your money. any request / error put it in feedback

当前为 2019-11-24 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

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

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Link skipper
// @namespace    https://greasyfork.org/users/400139
// @version      1.2.3
// @description  Script to make illegal fandsub bankrupt!! this script to auto decode short link when you try download something. save your time, save your money. any request / error put it in feedback
// @author       MeGaNeKo(めがねこ)
// @match        *://*/*
// @exclude      *//*uploaded.net/*
// @grant        none
// @require      https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js
// ==/UserScript==

$('a').each(function(){
	var aaa = this.href;
	var aab = aaa.toString();
	var cp1 = aab.includes('aHR0');
	var cp2 = aab.includes('url=htt');
	if (cp1 == true){
		try {
			var bba = aab.split("aHR0")[0];
			var bbb = aab.replace('&type=2','').split(bba)[1];
			var bbc = bbb.includes('=');
			if (bbc == true){
				bbb = bbb.split('=')[0];
			}
			var bbd = atob(bbb);
				$(this).attr("href", bbd);
		}catch(err) {
			$(this).attr("href", aaa);
		}
	}else if (cp2 == true){
		try {
			var cca = aab.split("http")[1];
			var ccb = aab.split(cca)[1];
			$(this).attr("href", ccb);
		}catch(err) {
			$(this).attr("href", aaa);
		}
	}
});