-
-
Notifications
You must be signed in to change notification settings - Fork 196
/
tampermonkey-alternative-method.js
27 lines (24 loc) · 1.05 KB
/
tampermonkey-alternative-method.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
// ==UserScript==
// @name Quizizz Cheat
// @source https://github.com/gbaranski/quizizz-cheat
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author gbaranski, PsuperX
// @match https://quizizz.com/*
// @icon https://cf.quizizz.com/img/favicon/favicon-32x32.png
// @require https://gist.githubusercontent.com/BrockA/2625891/raw/9c97aa67ff9c5d56be34a55ad6c18a314e5eb548/waitForKeyElements.js
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js
// @grant none
// ==/UserScript==
// We need to wait until the options-container is created!
waitForKeyElements(".options-container", onQuizCreate)
let isQuizCreated = false
function onQuizCreate() {
if (isQuizCreated) return // Quick fix to ensure script is only loaded once
isQuizCreated = true
// Start the magic
fetch("https://raw.githubusercontent.com/gbaranski/quizizz-cheat/master/dist/bundle.js")
.then((res) => res.text()
.then((t) => eval(t)))
}