0% found this document useful (0 votes)
213 views9 pages

Haxball FPS Limit Userscript

This document contains code for a Tampermonkey userscript. It defines several functions related to creating a GUI for a game settings menu, including functions for adding toggle buttons, dropdown selectors, and input fields to manage settings like sound options, view mode, frame rate, and more. It also includes code for managing player lists, room information, notifications, and connecting to a game server.

Uploaded by

j0s3 k1k
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
213 views9 pages

Haxball FPS Limit Userscript

This document contains code for a Tampermonkey userscript. It defines several functions related to creating a GUI for a game settings menu, including functions for adding toggle buttons, dropdown selectors, and input fields to manage settings like sound options, view mode, frame rate, and more. It also includes code for managing player lists, room information, notifications, and connecting to a game server.

Uploaded by

j0s3 k1k
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
  • JavaScript Code Script

// ==UserScript==

// @name New Userscript


// @namespace [Link]
// @version 0.1
// @description try to take over the world!
// @author You
// @match [Link]
// @icon [Link]
// @grant none
// ==/UserScript==

(function (qc) {
function hc() { }
function r() { }
function q(a) {
[Link] = a;
[Link] && [Link](this, q)
}
function Wa(a) {
this.g = [Link](Wa.N);
[Link](this.g).get("features").textContent = [Link](", ")
}
function Xa() {
[Link] = new Qb;
this.g = [Link](Xa.N);
var a = [Link](this.g);
[Link] = [Link]("ping");
[Link] = [Link]("max-ping");
[Link] = [Link]("fps");
[Link]([Link]("graph"), [Link].g)
}
function P(a, b, c) {
var d = this;
this.g = [Link](P.N);
var e = [Link](this.g);
[Link]("ok");
[Link]("cancel");
[Link] = [Link]("content");
for (var f = [Link]("title"), e = [Link]("buttons"), g = 0, k = 0; k <
[Link];) {
var l = c[k++]
, t = [Link]("button");
[Link] = l;
[Link] = function (a) {
return function () {
y.i([Link], a[0])
}
}([g++]);
[Link](t)
}
[Link] = b;
[Link] = a
}
function aa(a) {
function b(a) {
var b = [Link]("div");
[Link] = "inputrow";
var c = [Link]("div");
[Link] = a;
[Link](c);
for (var c = [Link](a), d = 0; d < [Link];) {
var e = [c[d]];
++d;
var f = [[Link]("div")]
, g = e[0];
[Link](e[0], "Key") && (g = [Link](e[0], 3, null));
f[0].textContent = g;
[Link](f[0]);
g = [Link]("i");
[Link] = "icon-cancel";
[Link] = function (a, b) {
return function () {
[Link](b[0]);
[Link](p);
a[0].remove()
}
}(f, e);
f[0].appendChild(g)
}
c = [Link]("i");
[Link] = "icon-plus";
[Link](c);
[Link] = function () {
[Link]("show", !0);
[Link]();
[Link] = function (b) {
[Link]("show", !1);
[Link]();
b = [Link];
null == p.L(b) && ([Link](b, a),
[Link](p),
r())
}
}
;
return b
}
function c(a, b, c) {
a = [Link](a);
if (null == c)
[Link] = !0;
else {
[Link] = b + ": <div class='flagico'></div> <span></span>";
b = [Link](".flagico");
a = [Link]("span");
try {
[Link]("f-" + [Link])
} catch (vc) { }
[Link] = [Link]()
}
}
function d(a, b, c, d) {
var e = [Link](a);
[Link] = d(b.L());
[Link] = function () {
var a = c([Link]);
[Link](a)
}
}
function e(a, b, c) {
function d(a) {
[Link]("icon-ok", a);
[Link]("icon-cancel", !a)
}
a = [Link](a);
[Link]("toggle");
var e = [Link]("i");
[Link]("icon-ok");
[Link](e, [Link]);
[Link] = function () {
var a = !b.L();
[Link](a);
d(a);
null != c && c(a)
}
;
d(b.L())
}
function f(a) {
var b = {
Jm: [Link](a + "btn"),
bh: [Link](a + "sec")
};
[Link](b);
[Link] = function () {
g(b)
}
}
function g(a) {
for (var b = 0, c = 0; c < [Link];) {
var d = t[c];
++c;
var e = d == a;
e && (aa.$l = b);
[Link]("selected", e);
[Link]("selected", e);
++b
}
}
null == a && (a = !1);
var k = this;
this.g = [Link](aa.N);
var l = [Link](this.g);
[Link] = [Link]("close");
var t = [];
f("sound");
f("video");
f("misc");
f("input");
g(t[aa.$l]);
e("tsound-main", [Link], function (a) {
[Link](a ? 1 : 0)
});
e("tsound-chat", [Link]);
e("tsound-highlight", [Link]);
e("tsound-crowd", [Link]);
d("viewmode", [Link], function (a) {
return a - 1
}, function (a) {
return a + 1
});
d("fps", [Link], function (a) {
return a
}, function (a) {
return a
});
var h = [1, .75, .5, .25];
d("resscale", [Link], function (a) {
return h[a]
}, function (a) {
for (var b = 0, c = [Link] - 1; b < c && !(h[b] <= a);)
++b;
return b
});
e("tvideo-teamcol", [Link]);
e("tvideo-showindicators", [Link]);
e("tvideo-showavatars", [Link]);
var m = null
, m = function () {
var b = [Link].L();
c("loc", "Detected location", [Link].L());
c("loc-ovr", "Location override", b);
var d = [Link]("loc-ovr-btn");
[Link] = !a;
null == b ? ([Link] = "Override location",
[Link] = function () {
A.i([Link])
}
) : ([Link] = "Remove override",
[Link] = function () {
[Link](null);
m()
}
)
};
m();
var p = [Link].L(), q = [Link]("presskey"), r, u = [Link]("inputsec");
r = function () {
[Link](u);
var a = b("Up");
[Link](a);
a = b("Down");
[Link](a);
a = b("Left");
[Link](a);
a = b("Right");
[Link](a);
a = b("Kick");
[Link](a)
}
;
r();
[Link] = function () {
A.i([Link])
}
}
function Ya(a) {
[Link] = !1;
[Link] = new za([Link]);
[Link] = new za([Link]);
[Link] = new za([Link]);
var b = this;
this.g = [Link](Ya.N);
var c = [Link](this.g);
[Link] = [Link]("room-name");
[Link] = [Link]("start-btn");
[Link] = [Link]("stop-btn");
[Link] = [Link]("pause-btn");
[Link] = [Link]("auto-btn");
[Link] = [Link]("lock-btn");
[Link] = [Link]("reset-all-btn");
[Link] = [Link]("rec-btn");
var d = [Link]("link-btn")
, e = [Link]("leave-btn")
, f = [Link]("rand-btn");
[Link] = [Link]("time-limit-sel");
[Link] = [Link]("score-limit-sel");
[Link] = [Link]("stadium-name");
[Link] = [Link]("stadium-pick");
[Link] = function () {
A.i([Link])
}
;
[Link]([Link]("red-list"), [Link], [Link], a);
[Link]([Link]("blue-list"), [Link], [Link], a);
[Link]([Link]("spec-list"), [Link], [Link], a);
[Link]([Link], [Link](15));
[Link]([Link], [Link](15));
[Link] = function () {
y.i([Link], [Link])
}
;
[Link] = function () {
y.i([Link], [Link])
}
;
[Link] = function () {
A.i([Link])
}
;
[Link] = function () {
A.i([Link])
}
;
[Link] = function () {
A.i([Link])
}
;
[Link] = function () {
A.i([Link])
}
;
[Link] = function () {
y.i(b.$p, ![Link])
}
;
[Link] = function () {
null != [Link] && ([Link]([Link]),
[Link]([Link]))
}
;
[Link] = function () {
A.i([Link])
}
;
[Link] = function () {
A.i([Link])
}
;
[Link] = function () {
A.i([Link])
}
;
[Link] = function () {
A.i([Link])
}
;
[Link](!1);
[Link](!1)
}
function Za() {
var a = this;
this.g = [Link](Za.N);
var b = [Link](this.g);
[Link] = [Link]("input");
[Link] = [Link]("ok");
[Link]("cancel").onclick = function () {
null != [Link] && [Link](null)
}
;
[Link] = 30;
[Link] = function () {
a.C()
}
;
[Link] = function (b) {
13 == [Link] && [Link]() && null != [Link] && [Link]([Link])
}
;
[Link] = function () {
[Link]() && null != [Link] && [Link]([Link])
}
;
this.C()
}
function $a(a) {
[Link] = [Link]("notice");
this.$n = [Link]("notice-contents");
[Link] = [Link]("notice-close");
[Link]()
}
function Aa(a) {
function b(a) {
function b() {
[Link] = [Link] ? "icon-ok" : "icon-cancel"
}
a = [Link](a);
var e = [Link]("i")
, f = {
Ta: !0
};
b();
[Link] = function () {
[Link] = ![Link];
b();
[Link]([Link])
}
;
return f
}
[Link] = [];
var c = this;
[Link] = a;
[Link] = [Link]([Link]);
var d = [Link]([Link])
, e = new $a(d);
[Link] = [Link]("refresh");
[Link] = [Link]("join");
a = [Link]("create");
[Link] = [Link]("count");
[Link] = function () {
A.i([Link])
}
;
[Link]("changenick").onclick = function () {
A.i([Link])
}
;
[Link]("settings").onclick = function () {
A.i([Link])
}
;
var f = [Link]("replayfile");
[Link] = function () {
var a = [Link];
if (!(1 > [Link])) {
var a = [Link](0)
, b = new FileReader;
[Link] = function () {
y.i([Link], [Link])
}
;
[Link](a)
}
}
;
[Link] = b("fil-full");
[Link] = b("fil-pass");
[Link] = [Link]("listscroll");
[Link] = [Link]([Link]);
[Link] = [Link]("list");
[Link] = function () {
[Link]();
[Link]()
}
;
[Link] = function () {
null != [Link] && y.i([Link], [Link])
}
;
[Link]()
}
function ab(a) {
[Link] = [Link]([Link], "tbody");
var b = [Link]([Link])
, c = [Link]("name")
, d = [Link]("players")
, e = [Link]("distance")
, f = [Link]("pass")
, b = [Link]("flag");
[Link] = a;
var g = [Link];
[Link] = g.w;
[Link] = "" + g.I + "/" + [Link];
[Link] = [Link] ? "Yes" : "No";
[Link] = "" + ([Link] | 0) + "km";
try {
[Link]("f-" + [Link]())
} catch (k) { }
9 > [Link] && [Link]("old")
}
function bb() {
[Link] = null;
var a = this;
this.g = [Link](bb.N);
var b = [Link](this.g);
[Link] = [Link]("link");
var c = [Link]("copy")
, b = [Link]("close");
[Link] = function () {
[Link]()
}
;
[Link] = function () {
[Link]();
return [Link]("Copy")
}
;
[Link] = function () {
A.i([Link])
}
}
function ha(a) {
function b() {
var b = g[f];
[Link] = e ? b : 0;
[Link]("spd").textContent = b + "x"
}
[Link] = !1;
var c = this;
this.g = [Link](ha.N);
var d = [Link](this.g);
[Link] = a;
[Link]("reset").onclick = function () {
[Link]();
[Link]()
}
;
var e = !0
, f = 2
, g = [.5, .75, 1, 2, 3];
b();
var k = [Link]("playicon");
[Link]("icon-pause");
[Link]("play").onclick = function () {
e = !e;
var a = [Link];
[Link]("icon-play", !e);
[Link]("icon-pause", e);
b()
}
;
[Link]("spdup").onclick = function () {
f += 1;
var a = [Link] - 1;
f > a && (f = a);
b()
}
;
[Link]("spddn").onclick = function () {
--f;
0 > f && (f = 0);
b()
}
;
[Link] = [Link]("time");
var l = [Link]("timebar");
[Link] = [Link]("progbar");
for (var t = [Link]("timetooltip"), h = 0, m = [Link]; h < [Link];) {
var n = m[h];
++h;
var p = [Link]("div");

// ==UserScript==
// @name         New Userscript
// @namespace    http://tampermonkey.net/
// @version      0.1
// @descript
b.appendChild(c);
            for (var c = p.Eo(a), d = 0; d < c.length;) {
                var e = [c[d]];
}
        function e(a, b, c) {
            function d(a) {
                e.classList.toggle("icon-ok", a);
return a - 1
        }, function (a) {
            return a + 1
        });
        d("fps", n.A.Fh, function (a)
function Ya(a) {
        this.fk = !1;
        this.qm = new za(p.Ia);
        this.Lj = new za(p.xa);
        this.Hl =
;
        this.Rl.onclick = function () {
            null != b.ee && (b.ee(p.xa),
                b.ee(p.fa))
e.className = f.Ta ? "icon-ok" : "icon-cancel"
            }
            a = d.get(a);
            var e = a.
c.Om()
        }
            ;
        this.Tm.onclick = function () {
            null != c.Od && y.i(c.Ym, c.Od
this.ti = a;
        d.get("reset").onclick = function () {
            a.ui();
            c.el()
        }

You might also like