Coder Social home page Coder Social logo

abalm9988 / b-emulator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from council-of-ben/b-emulator

0.0 0.0 0.0 10.44 MB

An emulator for blooket to use mods, and possibly even other versions.

License: Other

JavaScript 86.38% Python 12.07% CSS 0.14% HTML 1.41%

b-emulator's Introduction

Blooket-Emulator

An emulator to modify blooket code and make easier utilities with blooket.

BEFORE CONTINUING, PLEASE READ!

THIS PROJECT COULD NOT HAVE BEEN DONE WITHOUT BOILERPLATE CODE FROM UndercoverGoose AND I WANT TO SAY I AM NOT THE ORIGINAL CREATOR OF THIS IDEA NOR BASIC CODE. A LOT OF IT I HAVE MODIFIED TO SHARE BARELY ANY SEMBLANCE BUT IT USES THE BASE.

Startup

First, create a directory and cd to there.
mkdir b-emulator -> cd b-emulator
Clone the repository into the folder with git clone https://github.com/gooseterv/b-emulator
Next, install the required packages and refresh all installed scripts.
npm i && python3 fetchlatest.py
After that, you have a couple options.

  1. Install the Live Server vscode plugin and run. This will automatically host on port 5500.
  2. Host a python http server with python3 -m http.server 5500
  3. Globally install the http-server package with npm i -g http-server.
  4. Use any other http serving application/tool to host a server on port 5500 or change the port inside of view/preload.js to be yours.

Lastly, you can start the project and run the emulator with npm.
npm start || electron .

Step by Step for noobs

Prerequisites: computer, vscode.
If you do not know what a computer is, i would recommend returning to the future.
Step 1: Install vscode on device if not already installed.
Step 2: Install python 3.9+ and nodejs. (if not as admin extract the zipped node installation into any folder and then add that folder to the PATH environmental variable; simple google if you dont know how)
Step 3: Launch vscode and open the extensions library. Install the recommended python extension and one named Live Server (link below).
Step 4: Download a zip file of this repository and extract it to any folder. Open this folder inside of vscode (you should see the same files you see on this page in there)
Step 5: Inside of vscode in the bottom bar, click the "Go Live" button. This will start a http server on port 5500 for the emulator.
Step 6: Right click on any file inside of that folder (inside of vscode) and click the button that says "Open in integrated terminal".
Step 7: Run the following commands in that terminal, IN SEQUENTIAL ORDER.

  • npm i - This will install the required packages listed in package.json
  • python fetchlatest.py - OPTIONAL, this will refresh the scripts. If you are getting 404 errors in the console when trying to fetch localhost scripts this is what you need to run.
  • npm start - This will launch the actual blooket emulator for you to run.

Once you have done that you are good to go. Remember to only run scripts from people you trust and sources you can verify the validity of.

Contributing & Modding

If you want your featured utilities that run hooks, fetch webpack data, or simply use the available window variable data to modify things, please only modify and add a file into the /mods/ directory which matches the TEMPLATE.js formatting. Any pull requests which modify files outside of the mods directory will not be merged unless certain exceptions. You may not reupload and obfuscate my code claiming it as your own if you choose to contribute to this project, even though it is merely a hobby which I do not devote months to.

Where am I?

  • ./mods/ - your mods folder, you add mods here for them to be loaded
  • ./node_modules/ - your node modules folder, when you install packages they will go here
  • ./play-scripts/ - the scripts used for the base play.blooket.com
  • ./scripts/ - the scripts used for the base dashboard.blooket.com
  • ./id-scripts/ - the scripts used for the base id.blooket.com
  • ./view/ - the folder used for housing html and emulator related js files
  • ./view/id.html - the file used for storing the html for id.blooket.com
  • ./view/index.html - the file used for storing the html for dashboard.blooket.com
  • ./view/play.html - the file used for storing the html for play.blooket.com
  • ./view/init.js - code in this file is injected into blooket for use
  • ./view/preload.js - this file will run before the page loads in electron, modifying things here is useful for modifying data before load
  • ./index.js - the initiating file for the emulator
  • ./fetchlatest.py - run this file to update all scripts in the 3 script directories
  • ./mods.json - this file houses the names of each mod you want to load
  • ./mods/*.css - the css file for any specified mod; shares the name of the mod file
  • ./mods/*.js - the js file for the mod; this file will contain the start code for the mod and other data

Links

https://www.python.org/
https://nodejs.org/en/
https://www.electronjs.org/
https://github.com/UndercoverGoose
https://code.visualstudio.com/
https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer

b-emulator's People

Contributors

gooseterv avatar deepsource-autofix[bot] avatar deepsourcebot avatar actions-user avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.