From 3814ebdcffcf60240027f1797a0f29d2f03781b8 Mon Sep 17 00:00:00 2001 From: swee Date: Fri, 3 Jan 2025 22:52:05 -0800 Subject: [PATCH] Update builded.user.js --- builded.user.js | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/builded.user.js b/builded.user.js index 5eaf227..d455199 100644 --- a/builded.user.js +++ b/builded.user.js @@ -18,14 +18,31 @@ let settings_HTML = `

If you see this text, the userscript successfully rendered the settings page.

`; +let settings_entry = ` +
+
+
Builded
+
+
+
+ +
+
+ Open Settings +
+
+
+
+
+` function settings() { let win = window.open("https://builded.swee.codes/settings", "ree", `titlebar=yes,menubar=no,height=500px,width=300px,menubar=no,status=no`); } if (location.host == "www.guilded.gg") { console.info("Guilded.GG detected."); - $.initialize('.OptionsMenu-options-control', function() { + $.initialize('.DesktopOptionsControl-persistent-menu', function() { console.info("Settings opened!") - console.info($(this)) + $(this).innerHTML += settings_entry; }); } else { document.body.innerHTML += settings_HTML;