Greasy Fork is available in English.
将B站链接重定向到单独的视频页面
// ==UserScript==
// @name 重定向B站视频分享链接
// @namespace http://greasyfork.icu/zh-CN/scripts/479942
// @version 0.1.4
// @description 将B站链接重定向到单独的视频页面
// @author rteta
// @match https://www.bilibili.com/*bvid=*
// @exclude https://www.bilibili.com/festival/*
// @exclude https://www.bilibili.com/video/*/?bvid=*
// @grant none
// @license MIT
// ==/UserScript==
(function() {
'use strict';
var url = window.location.href;
var cleanUrl = url.split('&')[0];
window.location.href = cleanUrl.replace("/?bvid=", "/video/") + "/?t=0";
})();
//将域名里的 /?bvid= 替换为 /video/ 并且在末尾加上 /?t=0