Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name amq autoready
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author You
- // @match https://animemusicquiz.com/*
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- if (!window.quiz) return;
- function checkReady() {
- if(!lobby.inLobby
- || lobby.isHost
- || lobby.isSpectator || lobby.isReady || quiz.gameMode === "Ranked") return;
- lobby.fireMainButtonEvent();
- }
- let settingChangeListener = new Listener("Room Settings Changed", (changes) => {
- setTimeout(() => { checkReady(); }, 250);
- });
- settingChangeListener.bindListener();
- let hostPromotionListner = new Listener("Host Promotion", (payload) => {
- setTimeout(() => { checkReady(); }, 250);
- });
- hostPromotionListner.bindListener();
- var quizOverListener = new Listener("quiz over", (data) => {
- setTimeout(() => { checkReady(); }, 250);
- })
- quizOverListener.bindListener()
- })();
Advertisement
Add Comment
Please, Sign In to add comment