0% found this document useful (0 votes)
32 views4 pages

Message

Uploaded by

Manuel Ascate
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)
32 views4 pages

Message

Uploaded by

Manuel Ascate
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

// ==UserScript==

// @name Show Fps and cps


// @namespace -
// @version 1
// @description Keystrokes!
// @author AZ noobs
// @match *://[Link]/*
// @match *://[Link]/*
// @grant none
// ==/UserScript==
var FPS,cps = 0,Mcps = 0,Hue = 0;
(function() {
var UPDATE_DELAY = 360;
var lastUpdate = 0;
var frames = 0;
function updateCounter() {
var now = [Link]();
var elapsed = now - lastUpdate;
if (elapsed < UPDATE_DELAY) {
++frames;
} else {
FPS = [Link](frames / (elapsed / 1000));
frames = 0;
lastUpdate = now;
}
requestAnimationFrame(updateCounter);
}
lastUpdate = [Link]();
requestAnimationFrame(updateCounter);
})();
[Link]("mousedown", click, false);
[Link]("mouseup", endclick, false);
function click(e) {
if (([Link] == 0 || 1 || 2) || [Link] == 32) {
cps++
setTimeout(() => {
cps--
}, 900);
}
if ([Link] == 0) { [Link]("LeftClick").[Link]
= "white";}
if ([Link] == 2)
{ [Link]("RightClick").[Link] = "white";}
}
function endclick(e) {
if ([Link] == 0) {[Link]("LeftClick").[Link]
= "rgba(0, 0, 0, 0.4)";}
if ([Link] == 2) {[Link]("RightClick").[Link]
= "rgba(0, 0, 0, 0.4)";}
}
[Link]('keydown', (e)=>{
if ([Link] == 69) {[Link]("key").[Link] =
"white";
cps++
setTimeout(() => {
cps--
}, 900);}
if ([Link] == 87) {[Link]("keyW").[Link] =
"white";}
if ([Link] == 82) {[Link]("keyR").[Link] =
"white";}
if ([Link] == 70) {[Link]("keyF").[Link] =
"white";}
if ([Link] == 69 && [Link] !== "INPUT") {
if ($("#keyE").css("backgroundColor") == "rgba(0, 0, 0, 0.4)") {
$("#keyE").css("backgroundColor", "white");
} else {
$("#keyE").css("backgroundColor", "rgba(0, 0, 0, 0.4)");
}
}
if ([Link] == 81) {[Link]("keyQ").[Link] =
"red";}
if ([Link] == 65) {[Link]("keyA").[Link] =
"white";}
if ([Link] == 83) {[Link]("keyS").[Link] =
"white";}
if ([Link] == 68) {[Link]("keyD").[Link] =
"white";}
})
[Link]('keyup', (e)=>{
if ([Link] == 32) {[Link]("SpaceBar").[Link]
= "rgba(0, 0, 0, 0.4)";}
if ([Link] == 87) {[Link]("keyW").[Link] =
"rgba(0, 0, 0, 0.4)";}
if ([Link] == 82) {[Link]("keyR").[Link] =
"rgba(0, 0, 0, 0.4)";}
if ([Link] == 70) {[Link]("keyF").[Link] =
"rgba(0, 0, 0, 0.4)";}
if ([Link] == 81) {[Link]("keyQ").[Link] =
"rgba(0, 0, 0, 0.4)";}
if ([Link] == 65) {[Link]("keyA").[Link] =
"rgba(0, 0, 0, 0.4)";}
if ([Link] == 83) {[Link]("keyS").[Link] =
"rgba(0, 0, 0, 0.4)";}
if ([Link] == 68) {[Link]("keyD").[Link] =
"rgba(0, 0, 0, 0.4)";}
})
setInterval(() => {
if (cps > Mcps) Mcps = cps
Hue += [Link]() * .4
[Link] = `hsl(${Hue}, 100%, 70%)`
[Link] = `hsl(${Hue}, 100%, 70%)`
[Link] = `${FPS}FPS<br>${cps}cps ৡ`
}, 0);
let Show = [Link]("div");
[Link] = "SHOW"
[Link](Show);
let Panel = [Link]("div");
[Link] = `
<div id="Panel">
</div>
`
[Link](Panel)

var styleItem = [Link]("style");


[Link] = "text/css";
[Link]([Link](`
#SHOW {
font-size: 18px;
position: absolute;
width: 75px;
height: 50px;
top:30px;
left:10px;
z-index:1000000;
display: block;
text-align: center;
border-radius: 20px;
background-color: rgba(0, 0, 0, 0.4);
box-shadow: 0 0 2px #6dd1ff,0 0 0 4px #353535, 0 0 0 5px #3e3e3e, inset 0 0
10px rgba(0, 0, 0, 1), 0 5px 20px rgba(0,0,0,.5), inset 0 0 15px rgba(0,0,0,.2);
}

`))
[Link](styleItem);
[Link]("SHOW").addEventListener('mousedown', function (e) {

let prevX = [Link];


let prevY = [Link];

[Link]('mousemove', mousemove);
[Link]('mouseup', mouseup);
function mousemove(e) {
let newX = prevX - [Link];
let newY = prevY - [Link];

const rect = [Link]("SHOW").getBoundingClientRect();

[Link]("SHOW").[Link] = [Link] - newX + 'px';


[Link]("SHOW").[Link] = [Link] - newY + 'px';

prevX = [Link];
prevY = [Link];
}
function mouseup() {
[Link]('mousemove', mousemove);
[Link]('mouseup', mouseup);
}
});
[Link]("Panel").addEventListener('mousedown', function (e) {

let prevX = [Link];


let prevY = [Link];

[Link]('mousemove', mousemove);
[Link]('mouseup', mouseup);
function mousemove(e) {
let newX = prevX - [Link];
let newY = prevY - [Link];
const rect = [Link]("Panel").getBoundingClientRect();

[Link]("Panel").[Link] = [Link] - newX + 'px';


[Link]("Panel").[Link] = [Link] - newY + 'px';

prevX = [Link];
prevY = [Link];
}
function mouseup() {
[Link]('mousemove', mousemove);
[Link]('mouseup', mouseup);
}
});

[Link]('hat-menu').[Link] = "rgba(0,0,0,0)"
[Link]("hat_menu_content").[Link] = "rgba(0,0,0,0)"
var styleItem1 = [Link]("style");
[Link] = "text/css";
[Link]([Link](`
.green-button {
background-color: rgba(0, 0, 0, 0.5);
box-shadow:none;
}
.green-button:hover {
background-color: rgba(0, 0, 0);
box-shadow:none;
}
.menu .content .menu-item {
border-bottom: none;
}
#hat-menu {
border: none;
opacity: 0.9;
}
.header {
opacity: 0.4;
}
.description {
opacity: 0.4;
}
`))
[Link](styleItem1);

setInterval(() => {
if (cps > Mcps) Mcps = cps
Hue += [Link]() * .4
var styleItem1 = [Link]("style");
[Link] = "text/css";
[Link]([Link](`
#hat-menu .green-button {
color: hsl(${Hue}, 100%, 70%);
}
`))
})

You might also like