Update builded.user.js
Some checks are pending
Check syntax / check (push) Waiting to run

This commit is contained in:
Nova Cat 2025-01-03 23:30:35 -08:00
parent 1c51b5984a
commit 6f1588ba00

View file

@ -38,6 +38,35 @@ let settings_HTML = `
<p>There are no settings here... Want to suggest some <a href="https://discuss.swee.codes/c/10">here?</a> :3</p>
`;
let settings_entry = `
<div onclick="window.location = 'https://www.guilded.gg/explore/servers/overview';" class="DraggableHandle-container NavV4SelectorRow-container NavV4TeamSelectorBottomOptionsList-row">
<div class="NavV4SelectorRow-icon-container">
<div class="SVGIcon-container NavV4SelectorRow-svg-icon">
<svg class="icon SVGIcon-icon icon-globe" shape-rendering="geometricPrecision" role="img">
<use xml:space="http://www.w3.org/1999/xlink" xlink:href="#icon-globe"></use>
</svg>
</div>
</div>
<div class="NavV4SelectorRow-row-content">
<div class="NavV4TeamSelectorBottomOptionsList-label">
Discover
</div>
</div>
</div>
<div onclick="window.location = 'https://www.guilded.gg/chat';" class="DraggableHandle-container NavV4SelectorRow-container NavV4TeamSelectorBottomOptionsList-row NavV4TeamSelectorBottomOptionsList-dms">
<div class="NavV4SelectorRow-icon-container">
<div class="SVGIcon-container NavV4SelectorRow-svg-icon">
<svg class="icon SVGIcon-icon icon-dm" shape-rendering="geometricPrecision" role="img">
<use xml:space="http://www.w3.org/1999/xlink" xlink:href="#icon-dm">
</use>
</svg>
</div>
</div>
<div class="NavV4SelectorRow-row-content">
<div class="NavV4TeamSelectorBottomOptionsList-label">
Direct messages
</div>
</div>
</div>
<div onclick='window.open("https://builded.swee.codes/settings", "ree", "titlebar=yes,menubar=no,height=500px,width=300px,menubar=no,status=no");' class="DraggableHandle-container NavV4SelectorRow-container NavV4TeamSelectorBottomOptionsList-row">
<div class="NavV4SelectorRow-icon-container">
<div class="SVGIcon-container NavV4SelectorRow-svg-icon">
@ -55,7 +84,7 @@ if (location.host == "www.guilded.gg") {
console.info("Guilded.GG detected.");
$.initialize('.NavV4TeamSelectorBottomOptionsList-container', function() {
console.info("Injecting settings entry...")
$(this)[0].innerHTML += settings_entry;
$(this)[0].innerHTML = settings_entry;
});
} else {
document.body.innerHTML += settings_HTML;