b站复用历史稿件限制30解除

可以使用任意投稿历史作为投稿模板

// ==UserScript==
// @name         b站复用历史稿件限制30解除
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  可以使用任意投稿历史作为投稿模板
// @author       Yuandiaodiaodiao
// @match        *://member.bilibili.com/platform/upload/video/frame*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=bilibili.com
// @license MIT
// @grant        none
// ==/UserScript==

(function () {
    'use strict';
    setInterval(() => {
        const el = document.querySelector('.archive-list-container');
        if (!el) return;
        const v = el.__vue__;
        if (!v.totalArchives) return;
        if (v.hacked) return;
        v.hacked = true;
        Object.defineProperties(v,
            {
                totalPages:
                {
                    value: Math.ceil(v.totalArchives / 8),
                    writeable: false
                }
            });
        const ori = v.$api.getArchives;
        v.$api.getArchives = function (...args) {
            const oriRes = ori.apply(this, args);
            return oriRes.then((res) => {
                res.archives.slice = function () { return this };
                return res;
            })
        }
    }, 100);

})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址