Created
September 23, 2020 10:55
-
-
Save gazmull/a3d56f19ea55075d7805e31422837b7b to your computer and use it in GitHub Desktop.
Hide your Magic Jewels. Piece of shit gacha
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Kamihime PROJECT (EN) - Hide Magic Jewels | |
// @version 1.0 | |
// @description Djehuti is now available on XBOX1, PS4, Nintendo Switch, and PC platforms. | |
// @author Eunicorn | |
// @homepage https://thegzm.space | |
// @include /^https:\/\/cf\.(?:g|r)\.kamihimeproject\.dmmgames\.com\/front\/cocos2d-proj\/components-pc\/game\/app\.html/ | |
// @include /^https:\/\/cf\.en\.(?:g|r)\.skh\.dmmgames\.com\/front\/cocos2d-proj\/components-pc\/game\/app\.html/ | |
// @grant none | |
// @run-at document-end | |
// ==/UserScript== | |
/* globals kh, cc */ | |
const hideMyJuice = () => Object.defineProperty(kh.HeaderDelegate.prototype, '_setStone', { | |
value () { | |
const scene = cc.director.getRunningScene(); | |
const stoneLabel = scene.seekWidgetByPath('headerparts_ui..stone_label'); | |
// Edit this if you're not gay | |
if(stoneLabel) stoneLabel.setString('You Are Gay'); | |
} | |
}); | |
const iHateGravity = setInterval(theYeeting => { | |
if (!kh || (kh && !kh.HeaderDelegate)) return; | |
clearInterval(iHateGravity); | |
return theYeeting(); | |
}, 128, hideMyJuice); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment