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;