您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Enables Christmas features, such as snow, permanently in bonk.io
// ==UserScript== // @name Bonk.io - Christmas Every Day // @namespace https://greasyfork.org/en/users/945115 // @match https://bonk.io/gameframe-release.html // @run-at document-start // @grant none // @version 1.0 // @author - // @license The Unlicense // @description Enables Christmas features, such as snow, permanently in bonk.io // ==/UserScript== const injectorName = `Christmas Every Day`; const errorMsg = `Whoops! ${injectorName} was unable to load. This may be due to an update to Bonk.io. If so, please report this error! This could also be because you have an extension that is incompatible with \ ${injectorName}`; function injector(src){ let newSrc = src.replace(/return ([$a-zA-Z0-9_]{2,5}\[[0-9]+\]) >= 335 \|\| \1 <= 6;/, "return true;") if(src === newSrc) throw "Injection failed!"; console.log(injectorName+" injector run"); return newSrc; } // Compatibility with Excigma's code injector userscript if(!window.bonkCodeInjectors) window.bonkCodeInjectors = []; window.bonkCodeInjectors.push(bonkCode => { try { return injector(bonkCode); } catch (error) { alert(errorMsg); throw error; } }); console.log(injectorName+" injector loaded");