try to intercept settings

This commit is contained in:
Nova Cat 2024-11-16 13:57:59 -08:00
parent 273777408c
commit cdb3fcb137

View file

@ -10,6 +10,7 @@
// @icon https://git.swee.codes/swee/Builded/raw/branch/main/Builded-solid.svg
// @grant GM_setValue
// @grant GM_getValue
// @grant document.body
// ==/UserScript==
(function() {
@ -18,10 +19,13 @@
`
function settings() {
let win = window.open("https://builded.swee.codes/settings", "ree", `titlebar=yes,menubar=no,height=500px,width=300px,menubar=no,status=no`);
win.document.body.insertAdjacentHTML('afterbegin', settings_HTML);
}
'use strict';
// Your code here...
if (location.host == "www.guilded.gg") {
settings();
} else {
document.body.insertAdjacentHTML('beforeend', settings_HTML)
}
console.info("Builded Loaded <3")
})();