-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtitle.js
60 lines (59 loc) · 2.29 KB
/
title.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
$(function() {
var title = document.title,
animSeq = ["/", "_", "#", "_"],
animIndex = 0,
titleIndex = 0;
function doInverseSpinZeroPitch() {
var loadTitle = title.substring(0, titleIndex);
if (titleIndex > title.length) {
animIndex = 0;
titleIndex = 0
}
if (animIndex > 3) {
titleIndex++;
animIndex = 0
}
document.title = loadTitle + animSeq[animIndex];
animIndex++
}
window.setInterval(doInverseSpinZeroPitch, 250);
var tKillNames = ["Eni9mv"];
var ctKillNames = ["money.team", "audisquad.ru", "cheater.team", "suicide.cc", "cheater.life", "childlike.xyz"];
var weapons = ["ssg", "ak47", "deagle", "negev"];
var $killFeedContainer = $('.kill-feed');
var $killFeedElement = $('.kill-feed > div').hide();
function handleKillFeed() {
var $newFeedElement = $killFeedElement.clone();
$newFeedElement.find('.weapons img:first-child').attr('src', 'assets/img/guns/' + weapons[Math.floor(Math.random() * weapons.length)] + '.png');
$newFeedElement.find('.t').text(tKillNames[Math.floor(Math.random() * tKillNames.length)]);
$newFeedElement.find('.ct').text(ctKillNames[Math.floor(Math.random() * ctKillNames.length)]);
$killFeedContainer.append($newFeedElement.show().delay(1000).fadeOut(1000, function() {
$(this).remove()
}))
}
window.setInterval(handleKillFeed, 250)
document.onkeydown = function(e) {
if (e.ctrlKey && (e.keyCode === 67 || e.keyCode === 86 || e.keyCode === 85 || e.keyCode === 117)) {//Alt+c, Alt+v will also be disabled sadly.
}
return false;
};
function click() {
if (event.button==2||event.button==3) {
oncontextmenu='return false';
}
}
document.onmousedown=click
document.oncontextmenu = new Function("return false;")
function disableWheelScroll(){
if (document.body.addEventListener) document.body.addEventListener('DOMMouseScroll', blockWheel, false);
document.body.onmousewheel = blockWheel;
}
function blockWheel(event){
if (!event) event = window.event;
if (event.stopPropagation) event.stopPropagation();
else event.cancelBubble = true;
if(event.preventDefault) event.preventDefault();
else event.returnValue = false;
}
disableWheelScroll();
});