Skip to content

Instantly share code, notes, and snippets.

@gazmull
Created September 23, 2020 10:55
Show Gist options
  • Save gazmull/a3d56f19ea55075d7805e31422837b7b to your computer and use it in GitHub Desktop.
Save gazmull/a3d56f19ea55075d7805e31422837b7b to your computer and use it in GitHub Desktop.
Hide your Magic Jewels. Piece of shit gacha
// ==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