CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
gbaranski

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: gbaranski/quizizz-cheat
Path: blob/master/scripts/tampermonkey-alternative-method.js
Views: 2223
1
// ==UserScript==
2
// @name Quizizz Cheat
3
// @source https://github.com/gbaranski/quizizz-cheat
4
// @namespace http://tampermonkey.net/
5
// @version 0.1
6
// @description try to take over the world!
7
// @author gbaranski, PsuperX
8
// @match https://quizizz.com/*
9
// @icon https://cf.quizizz.com/img/favicon/favicon-32x32.png
10
// @require https://gist.githubusercontent.com/BrockA/2625891/raw/9c97aa67ff9c5d56be34a55ad6c18a314e5eb548/waitForKeyElements.js
11
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js
12
// @grant none
13
// ==/UserScript==
14
15
// We need to wait until the options-container is created!
16
waitForKeyElements(".options-container", onQuizCreate)
17
let isQuizCreated = false
18
19
function onQuizCreate() {
20
if (isQuizCreated) return // Quick fix to ensure script is only loaded once
21
isQuizCreated = true
22
23
// Start the magic
24
fetch("https://raw.githubusercontent.com/gbaranski/quizizz-cheat/master/dist/bundle.js")
25
.then((res) => res.text()
26
.then((t) => eval(t)))
27
}
28
29