hyperbeam VIP

unlock VIP

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==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;
            };
        }
    });
})();