Skip to content

【油猴脚本】bilibili 投稿页面返回旧版+旧版页面强制允许分P上传

Published: at 22:38

更新:现在返回旧版按钮点了也没用了。推荐使用 sswa 进行上传。


干掉叔叔的新版灰度。

如果旧版页面原来就(因为粉丝数限制)传不了分P的话,显示出的增加分P按钮也只能看看,需要用手机端/投稿工具来增加分P容量,不知道是哪个天才想出来的分P容量这个东西。

原理是给 Vuex 上了 hook,之前想在网页上模拟投稿工具/移动端协议的,但还是放弃了//

1
// ==UserScript==
2
// @name bilibili 返回旧版+恢复分P上传
3
// @namespace https://mmf.moe/
4
// @version 0.1
5
// @description wdnmd
6
// @author Yesterday17
7
// @match https://member.bilibili.com/video/upload.html*
8
// @match https://member.bilibili.com/york/videoup*
9
// @run-at document-start
10
// @grant unsafe-window
11
// ==/UserScript==
12
13
(function () {
14
function __defineProperty__(defineProperty) {
15
const entries = {
16
isEpArchive: false,
17
useMaxVideoCountLimit: false,
18
userWeight: 0,
19
back_to_old: true,
20
};
21
return function (object, key, attributes) {
22
if (key in entries && "get" in attributes) {
23
attributes.get = () => entries[key];
24
}
25
return defineProperty(object, key, attributes);
26
};
27
}
28
29
unsafeWindow.Object.defineProperty = __defineProperty__(
30
Object.defineProperty
31
);
32
unsafeWindow.Reflect.defineProperty = __defineProperty__(
33
Reflect.defineProperty
34
);
35
})();