您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Change grenade icons in shell shockers
- // ==UserScript==
- // @name Grenade Mod(change icons)| Shell Shockers | flygOn LiTe
- // @namespace http://tampermonkey.net/
- // @version 1
- // @description Change grenade icons in shell shockers
- // @author flygOn LiTe
- // @match https://shellshock.io/*
- // @match https://mathactivity.xyz/*
- // @match https://mathdrills.life/*
- // @icon https://www.berrywidgets.com/assets/babyflygon-grenade.png
- // @grant none
- // @run-at document-start
- // @license MIT
- // ==/UserScript==
- var open_prototype = XMLHttpRequest.prototype.open,
- intercept_response = function (callback) {
- XMLHttpRequest.prototype.open = function (method, url) {
- if (url.indexOf("shellshock.js") > -1) this.isScript = true;
- this.addEventListener("readystatechange", function (event) {
- if (this.readyState === 4 && this.isScript) {
- var response = callback(event.target.responseText);
- Object.defineProperty(this, "response", { writable: true });
- Object.defineProperty(this, "responseText", { writable: true });
- this.response = this.responseText = response;
- }
- });
- return open_prototype.apply(this, arguments);
- };
- };
- intercept_response(function (response) {
- let flygonGrenade = response.replace(
- "img/ico_grenade.png?v=1",
- "https://www.berrywidgets.com/assets/babyflygon-grenade.png"
- );
- let finalResponse = flygonGrenade.replace(
- "img/ico_grenadeEmpty.png?v=1",
- "https://www.berrywidgets.com/assets/babyflygon-grenade-back.png"
- );
- return finalResponse;
- });
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址