Blooket KGui Loader

A loader for the Blooket Council's KGui

  1. // ==UserScript==
  2. // @name Blooket KGui Loader
  3. // @description A loader for the Blooket Council's KGui
  4. // @namespace https://github.com/c0des1ayr
  5. // @match *://*.blooket.com/play*
  6. // @exclude *://play.blooket.com/play*
  7. // @icon https://play.blooket.com/favicon.ico
  8. // @grant GM.xmlHttpRequest
  9. // @run-at document-start
  10. // @license MIT
  11. // @version 1.0.3
  12. // @author c0des1ayer
  13. // @connect cdn.jsdelivr.net
  14. // @antifeature This script loads the latest version of an external script using a CDN, which may potentially become malicious in the future.
  15. // ==/UserScript==
  16. /* jshint esversion: 8 */
  17. (async function() {
  18. 'use strict';
  19.  
  20. function fetchAndExecuteScript(url, callback) {
  21. GM.xmlHttpRequest({
  22. method: 'GET',
  23. url: url,
  24. onload: (response) => {
  25. if (response.status >= 200 && response.status < 300) {
  26. const scriptText = response.responseText;
  27. const script = document.createElement('script');
  28. script.textContent = scriptText;
  29. document.head.appendChild(script);
  30. console.log(`Successfully executed script from: ${url}`);
  31. callback && callback();
  32. } else {
  33. console.error(`Failed to load script: ${url}. Status: ${response.status}`);
  34. }
  35. },
  36. onerror: (err) => {
  37. console.error(`Error fetching script: ${url}`, err);
  38. }
  39. });
  40. }
  41.  
  42. fetchAndExecuteScript('https://cdn.jsdelivr.net/gh/Blooket-Council/Blooket-Cheats@latest/cheats/KGui.js');
  43. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址