Greasy Fork is available in English.
通过每次进入页面时更改cookie来使哔哩哔哩自动回到旧版页面
当前为
// ==UserScript==
// @name 哔哩哔哩(B站)自动回到旧版页面
// @description 通过每次进入页面时更改cookie来使哔哩哔哩自动回到旧版页面
// @author Tinhone
// @namespace 让我们对新版页面使用炎拳吧
// @license GPL-3.0
// @version 1.1.0
// @icon https://app.bilibili.com/favicon.ico
// @compatible firefox V35+
// @compatible edge V35+
// @compatible chrome V35+
// @match *://www.bilibili.com/*
// ==/UserScript==
(function() {
'use strict';
const temp=document.cookie //先赋值给 temp 运行速度更快
if (temp.match(/(?:(?:^|.*;\s*)i-wanna-go-back\s*\=\s*([^;]*).*$)|^.*$/)[1]!=2 || temp.match(/(?:(?:^|.*;\s*)go_old_video\s*\=\s*([^;]*).*$)|^.*$/)[1]!=1){
document.cookie="i-wanna-go-back=2; expires=Fri, 1 Jan 2077 00:00:00 GMT; domain=bilibili.com; path=/"
document.cookie="go_old_video=1; expires=Fri, 1 Jan 2077 00:00:00 GMT; domain=bilibili.com; path=/"
location.reload()
}
})();