change settings page

This commit is contained in:
Nova Cat 2024-11-16 13:50:44 -08:00
parent b47f9939b9
commit 5b2be7d90f

View file

@ -5,7 +5,7 @@
// @version 1.0.1 // @version 1.0.1
// @description Vencord, but for Guilded // @description Vencord, but for Guilded
// @author Swee // @author Swee
// @match https://*.guilded.gg // @match https://*.guilded.gg, https://builded.swee.codes/settings
// @icon https://git.swee.codes/swee/Builded/raw/branch/main/Builded-solid.svg // @icon https://git.swee.codes/swee/Builded/raw/branch/main/Builded-solid.svg
// @grant GM_setValue // @grant GM_setValue
// @grant GM_getValue // @grant GM_getValue
@ -13,14 +13,10 @@
(function() { (function() {
let settings_HTML = ` let settings_HTML = `
<link href="https://swee.codes/style.css" rel="stylesheet" type="text/css"> <p>If you see this text, the userscript successfully rendered the settings page.</p>
<title>Builded settings</title>
<br>
<center>
<h1><img src="https://git.swee.codes/swee/Builded/raw/branch/main/Builded-full.svg"> Settings</h1>
` `
function settings() { function settings() {
let win = window.open("about:blank", "ree", `titlebar=yes,menubar=no,height=500px,width=300px,menubar=no,status=no`); 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); win.document.body.insertAdjacentHTML('afterbegin', settings_HTML);
} }
'use strict'; 'use strict';