BILIBILI收藏夹调转

Bilibili跳转

// ==UserScript==
// @name         BILIBILI收藏夹调转
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Bilibili跳转
// @author       Lost
// @match        https://www.bilibili.com/medialist/play/ml*/av*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

     var iSite = window.location.href;
 var reg = /av[0-9]{1,20}/g;
 var numList = iSite.match(reg);
 var sUrl="";
 sUrl='https://www.bilibili.com/video/'+ numList;window.location.href =sUrl;

})();