Code Injector - Bonk.io

Allows different userscripts to define functions that modify the game's code

作者
Excigma
日安装量
4
总安装量
7,417
评分
2 0 1
版本
1.0.4
创建于
2021-10-13
更新于
2021-11-22
许可证
GPL-3.0
适用于

Code Injector - Bonk.io

Join the Discord server for support or just to chat with other mod users!

You do not need this if you have any of kklee, bonk-vtol, bonk-playlists, bonk-host, or bonk-death-grapple installed as a browser extension (not userscript)

This script finds other userscripts that have defined their injectors in window.bonkCodeInjectors, and runs them

Much of the code below was copied from or inspired by https://github.com/kklkkj/kklee/blob/master/src/runInjectors.js Credits to https://github.com/kklkkj for creating this system where multiple extensions can edit different parts of Bonk.io' code.

This script was originally made to inject kklkkj's kklee as a userscript

Go thank kklkkj for this

This userscripts does not add any features to bonk by itself, you need to install other scripts alongside this for new features.

List of userscripts that work with this (they are not written by me):

If you are making your own injector:

  • Make sure @run-at is document-start, so it runs before this script