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;