hyperbeam VIP

unlock VIP

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

You will need to install an extension such as Tampermonkey to install this script.

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         hyperbeam VIP
// @namespace    hyperbeam.taozhiyu.github.io
// @version      0.1
// @description  unlock VIP
// @author       涛之雨
// @match        *://hyperbeam.com/*
// @icon         https://hyperbeam.com/images/favicon.png
// @require      https://greasyfork.org/scripts/455943-ajaxhooker/code/ajaxHooker.js?version=1124435
// @grant        none
// @run-at       document-start
// @license      WTFPL
// ==/UserScript==

/* global ajaxHooker*/
/* jshint esversion: 11 */
(function() {
    'use strict';

    ;(()=>{
        const Date_=Date;
        Date=function(a){
            const d=new Date_(a);
            this.tao=a;
            this.zhiyu=d;
            return isNaN(d)?a:d;
        };
        Object.getOwnPropertyNames(Date_.prototype).map(a=>{
            Date.prototype[a]=function(){
                const d=new Date_(this.zhiyu)[a]();
                return isNaN(d)?this.tao:d;
            };
        });
        Date.now=Date_.now;
    })();
    ajaxHooker.hook(request => {
        if (request.url.includes('/private/graphql')) {
            request.response = res => {
                const a=res.json;
                if(a?.data?.me?.user){
                    a.data.me.user.admin=true;
                    a.data.me.subExpiryDate=true;
                    a.data.me.billing={
                        ...a.data.me.billing,
                        renewalDate:"someday(Maybe)",
                        billingDate:"2099",
                        status: "ACTIVE",
                    };
                    a.data.me.subExpiryDate="2099";
                }
                res.json=a;
            };
        }
    });
})();