kook降噪无限试用

实现无buff会员无限制使用AI降噪2.0

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         kook降噪无限试用
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  实现无buff会员无限制使用AI降噪2.0
// @author       Hell
// @match        https://www.kookapp.cn/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=kookapp.cn
// @grant        none
// @run-at       document-start
// @license MIT
// ==/UserScript==

(function() {
    'use strict';
    const urls = ["https://www.kookapp.cn/api/v3/user/rights-remaining","https://www.kookapp.cn/api/v3/user/rights-start"]
    const sJson = Response.prototype.json;
    Response.prototype.json = function () {
        let result = sJson.call(this);
        if (!urls.includes(this.url)) {
            return result;
        }
        return new Promise((resolve, reject) => {
            result
                .then((resolve2) => {
                resolve2.data.is_vip = true;
                resolve2.data.remaining = 10086;
                resolve(resolve2);
            })
                .catch((reject2) => {reject(reject2)})
        })
    }
})();