Stratums CrasheR

x

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Stratums CrasheR
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  x
// @author       Pulsar
// @match        *://*.stratums.io/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// ==/UserScript==
let ok = prompt("Enable crash script?")
if (ok) {
let k = Proxy;
let c = null;
let s = WebSocket.prototype.send;
let a = WebSocket.prototype;
let vc = WebSocket.prototype;
a.send = new k(a.send,{
    set(val) { },
    get(target,prop,rec) {
        if (prop.toString().includes("toString")) return s[prop].toString(); // me when toString
        return s[prop];
    },
    apply(target,dat,args) {
        if (!c) {
            c = dat;
            a.send = vc.send // all work is done, fuck you :p
        }
        return target.apply(dat,args);
    }
});
let e = CanvasRenderingContext2D.prototype;
e.moveTo = new k(e.moveTo,{})
e.fillText=new k(e.fillText,{
    apply(target,dat,args) {
        if (args[0]==".crash") for (let r = 0;r < 50;r++) c.close()
        return target.apply(dat,args);
    }
});
}