From c4412b3f2fa5dfa2be787f307a41f94b3ef3e949 Mon Sep 17 00:00:00 2001 From: swee Date: Fri, 3 Jan 2025 23:10:52 -0800 Subject: [PATCH] Update builded.user.js --- builded.user.js | 37 ++++++++++++++----------------------- 1 file changed, 14 insertions(+), 23 deletions(-) diff --git a/builded.user.js b/builded.user.js index f556205..f3711c3 100644 --- a/builded.user.js +++ b/builded.user.js @@ -35,36 +35,27 @@ function waitForElm(selector) { }); } let settings_HTML = ` -

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

+

There are no settings here... Want to suggest some here? :3

`; let settings_entry = ` -
-
-
Builded
-
-
-
- -
-
- Open Settings -
-
-
+
+
+
+
+ +
+
+ Builded Settings +
+
` -function openSettings() { - 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('.DesktopOptionsControl-persistent-menu', function() { - console.info("Settings opened!") - waitForElm('.PersistentActionMenuSection-container').then((elm) => { - console.log('Injecting Builded settings...'); - $(this)[0].innerHTML += settings_entry; - }); + $.initialize('.ActionMenu-sections', function() { + console.info("Context menu opened!") + $(this)[0].innerHTML += settings_entry; }); } else { document.body.innerHTML += settings_HTML;