您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Check pin of a kahoot game.
当前为
// ==UserScript== // @name Kahoot PIN Checker // @namespace http://tampermonkey.net/ // @version 0.0.1 // @description Check pin of a kahoot game. // @author theusaf // @match *://play.kahoot.it/* // @grant none // ==/UserScript== function Check(pin){ return new Promise(function(res,rej){ const x = new XMLHttpRequest(); x.open("GET",`https://kahoot.it/reserve/session/${pin}/?${Date.now()}`); x.send(); x.onload = function(){ res(x.response); }; }); } var pin; const interval = setInterval(()=>{ Check(pin).then(o=>{ if(o == "Not found"){ document.write(`<script>window.location = "https://play.kahoot.it/v2/${window.location.search}"</script>`); } }); },1000*60*5); const otherInterval = setInterval(()=>{ const pind = document.querySelector("[data-functional-selector=game-pin]"); if(pind){ pin = pind.innerHTML; } },100);