Blooket.Mod1

Bypass random name and troll your friends!

当前为 2022-10-25 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Blooket.Mod1
  3. // @namespace http://tampermonkey.net/
  4. // @version 2.0
  5. // @description Bypass random name and troll your friends!
  6. // @author Thundercatcher
  7. // @match *://*.blooket.com/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16.  
  17. (function(){
  18. function getStateNode(){
  19. for(let i of Object.keys(document.querySelector("#app>div>div"))){
  20. if(i.toString().includes("__reactEventHandlers")){
  21. for(let p of Object.values(document.querySelector("#app>div>div")[i].children.filter(n=>n))){
  22. if(p._owner&&p._owner.stateNode)return p._owner.stateNode
  23. }
  24. }
  25. }
  26. }
  27. function bypass(){
  28. let _bypass = document.createElement("iframe");
  29. _bypass.style.display = 'none';
  30. document.body.appendChild(_bypass);
  31. return {window: _bypass.contentWindow, document: _bypass.contentDocument}
  32. }
  33. function findByProp(prop,first=true){
  34. const wp = Object.values(webpackJsonp.push([
  35. [], {
  36. ['']: (_, a, b) => {
  37. a.cache = b.c
  38. },
  39. },
  40. [
  41. ['']
  42. ],
  43. ]).cache);
  44. if(first){
  45. return wp.find((x)=>x.exports&&x.exports.a&&x.exports.a[prop]).exports.a;
  46. }else{
  47. return wp.filter(x=>x.exports?.a&&x.exports?.a[prop]).map(n=>n.exports.a)
  48. }
  49. }
  50.  
  51. getStateNode().setState({isRandom: false});
  52. })();
  53. })();