Para Quiz
Para Quiz
createElement("link");
x.rel = 'stylesheet';
x.type = 'text/css'
x.href = "https://cdn.jsdelivr.net/gh/EastArctica/JS-Plugins@master/KahootModal.css"
document.head.appendChild(x);
if (found) {
Modal.id = "mainModal"
Modal.className = "mainModal"
Modal.style = "position: fixed; z-index: 2147483647; left: 0px; top: 0px; width: 100%; height:
100%; overflow: auto; background-color: rgba(0, 0, 0, 0.4); display: none;"
ModalContent.className = "modal-content"
ModalContent.id = "ModalContent"
Close.className = "close"
Close.innerHTML = "×"
btn.id = "ModalButton"
btn.onclick = function() {
Modal.style.display = "block";
Close.onclick = function() {
Modal.style.display = "none";
}
window.onclick = function(event) {
if (event.target == Modal) {
Modal.style.display = "none";
document.getElementsByClassName("actions-container")[0].appendChild(btn)
ModalContent.appendChild(Close)
Modal.appendChild(ModalContent)
document.getElementsByClassName("root-bootstrapper-container")[0].prepend(Modal)
if (!window.idiidk) {
window.idiidk = function() {
class Encoding {
static encode(t, e, o = 2) {
return `${s}${this.encodeRaw(t,!1,e)}$
{String.fromCharCode(33+s.length)}${o}`
let s = 0;
s = e ? o.charCodeAt(0) : o.charCodeAt(0) +
o.charCodeAt(o.length - 1);
const r = [];
const n = t[o].charCodeAt(0),
c = e ? this.safeAdd(n, s) :
this.addOffset(n, s, o, 2);
r.push(String.fromCharCode(c))
return r.join("")
const e = this.extractHeader(t);
}{
o = this.extractData(t);
const s = this.extractVersion(t);
let r = 0;
r = e ? o.charCodeAt(0) : o.charCodeAt(0) +
o.charCodeAt(o.length - 1), r = -r;
const n = [];
const c = t[o].charCodeAt(0),
a = e ? this.safeAdd(c, r) :
this.addOffset(c, r, o, s);
n.push(String.fromCharCode(a))
return n.join("")
static addOffset(t, e, o, s) {
static extractData(t) {
static extractHeader(t) {
const e = t.charCodeAt(t.length - 2) - 33;
return t.slice(0, e)
static extractVersion(t) {
if (!isNaN(e)) return e
return null
static safeAdd(t, e) {
const o = t + e;
static verifyCharCode(t) {
let r = e;
parsedConx = JSON.parse(prevConx),
encodedRoomHash = parsedConx.game.roomHash,
roomHash = Encoding.decode(encodedRoomHash.split("-")[1]),
data = {
roomHash: roomHash,
type: GameType
};
fetch("https://game.quizizz.com/play-api/v3/getQuestions", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify(data)
let e = 0;
e++;
const s = t.questions[o],
r = s.structure.kind,
n = s.structure.answer,
c = Encoding.decode(n);
if (c[0] == "[") {
newc = newc.split(",");
ModalContent.insertAdjacentHTML( 'beforeend', `$
{s.structure.options[Number(newc[i])].text ||
s.structure.options[Number(newc[i])].media[0].url} <br>`)
}
ModalContent.insertAdjacentHTML( 'beforeend', `<br>`)
} else {
//console.log(s.structure)
});
window.idiidk();
} else {
window.idiidk();