-
Notifications
You must be signed in to change notification settings - Fork 0
/
KahootNameBypasser.user.js
117 lines (109 loc) · 3.93 KB
/
KahootNameBypasser.user.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
// ==UserScript==
// @name Kahoot name bypass
// @namespace ttps://github.com/jokeri2222/
// @version 1.0.5
// @description Bypass kahoot bad word filter
// @author jokeri2222
// @updateURL https://github.com/jokeri2222/Kahoot-bad-name-bypasser/raw/main/KahootNameBypasser.user.js
// @downloadURL https://github.com/jokeri2222/Kahoot-bad-name-bypasser/raw/main/KahootNameBypasser.user.js
// @match https://kahoot.it/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=kahoot.it
// @require https://code.jquery.com/jquery-3.6.0.min.js
// @grant none
// ==/UserScript==
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
function GetUnblockName()
{
var text = $("#nickname")[0].value
var unblockedText = ""
for (var i=0; i<text.length; i++) {unblockedText += text[i]+"\u200b"}
return unblockedText
}
function initialize()
{
var div = $(".join__FormWrapper-sc-1ezg926-0")
div.append("<button id=UnblockBtn><span id=UnblockName>!!!Unblock name!!!<span></button>")
var unblockBtn = $("#UnblockBtn")[0]
unblockBtn.innerHTML += "

After clicking this button do these things."
unblockBtn.innerHTML += "
1. Click at the end of name."
unblockBtn.innerHTML += "
2. Press backspace once."
unblockBtn.innerHTML += "
3. Click \"OK, go\" or press enter."
$("#UnblockBtn").css({
"width": "100%",
"margin": "0px",
"border": "0px",
"cursor": "pointer",
"display": "inline-block",
"box-shadow": "rgb(0 0 0 / 15%) 0px 2px 4px, rgb(0 0 0 / 25%) 0px -4px inset",
"background": "rgb(51, 51, 51)",
"color": "rgb(255, 255, 255)",
"border-radius": "4px",
"font-size": "0.875rem",
"font-weight": "bold",
"text-align": "center",
"text-decoration": "none",
"min-width": "48px",
"min-height": "48px",
"padding": "0px 16px 4px",
"margin-top": "15px",
"white-space": "pre-wrap",
"font-family": "Montserrat, \"Noto Sans Arabic\", \"Helvetica Neue\", Helvetica, Arial, sans-serif"
})
$("#UnblockBtn").hover(function (){
$(this).css({
"min-height": "46px",
"margin-top": "17px",
"padding-bottom": "2px",
"background-color": "rgb(47, 47, 47)",
"box-shadow": "rgb(0 0 0 / 25%) 0px -2px inset"
})
}, function () {
$(this).css({
"width": "100%",
"margin": "0px",
"border": "0px",
"cursor": "pointer",
"display": "inline-block",
"box-shadow": "rgb(0 0 0 / 15%) 0px 2px 4px, rgb(0 0 0 / 25%) 0px -4px inset",
"background": "rgb(51, 51, 51)",
"color": "rgb(255, 255, 255)",
"border-radius": "4px",
"font-size": "0.875rem",
"font-weight": "bold",
"text-align": "center",
"text-decoration": "none",
"min-width": "48px",
"min-height": "48px",
"padding": "0px 16px 4px",
"margin-top": "15px",
"white-space": "pre-wrap",
"font-family": "Montserrat, \"Noto Sans Arabic\", \"Helvetica Neue\", Helvetica, Arial, sans-serif"
})
})
$("#UnblockName").css({
"font-size": "1.85rem",
"color": "rgb(255, 0, 0)"
})
var nickname = $("#nickname")
unblockBtn.addEventListener('click', async function(){
var unblockedName = GetUnblockName()
console.log("Unlocked name is \""+unblockedName+"\"")
nickname[0].value = unblockedName.substring(0)
});
}
while (true)
{
while (true)
{
if ($(".join__FormWrapper-sc-1ezg926-0")[0] != undefined) break
await sleep(100)
}
initialize()
while (true)
{
if ($(".join__FormWrapper-sc-1ezg926-0")[0] == undefined) break
await sleep(100)
}
}