This commit is contained in:
parent
1157aeb366
commit
c3b32b1e25
1 changed files with 10 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
// ==UserScript==
|
||||
// @name Builded
|
||||
// @namespace https://git.swee.codes/swee/Builded
|
||||
// @version 0.0.1.2
|
||||
// @version 0.1
|
||||
// @description Vencord, but for Guilded
|
||||
// @author Swee
|
||||
// @match https://*.guilded.gg/*
|
||||
|
@ -12,7 +12,7 @@
|
|||
// @grant GM_getValue
|
||||
// @require https://code.jquery.com/jquery-3.7.1.min.js
|
||||
// @require https://github.com/pie6k/jquery.initialize/raw/refs/heads/master/jquery.initialize.min.js
|
||||
// @run-at document-idle
|
||||
// @run-at document-body
|
||||
// ==/UserScript==
|
||||
function waitForElm(selector) {
|
||||
return new Promise(resolve => {
|
||||
|
@ -37,6 +37,11 @@ function waitForElm(selector) {
|
|||
let settings_HTML = `
|
||||
<p>There are no features here... Want to suggest some <a target="_blank" class=link onclick="window.close()" href="https://discuss.swee.codes/c/10">here?</a> :3</p>
|
||||
`;
|
||||
|
||||
let customloader = GM.getValue("customLoader", `
|
||||
<img id="app-loader-animated-image" src="https://git.swee.codes/swee/Builded/raw/branch/main/Builded-solid.png" />
|
||||
`)
|
||||
let customloader_enable = GM.getValue("customLoaderEnable", true)
|
||||
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">
|
||||
|
@ -86,6 +91,9 @@ if (location.host == "www.guilded.gg") {
|
|||
console.info("Injecting settings entry...")
|
||||
$(this)[0].innerHTML = settings_entry;
|
||||
});
|
||||
$.initialize('#loading', function() {
|
||||
$(this)[0].innerHTML = customloader;
|
||||
});
|
||||
} else {
|
||||
document.body.innerHTML += settings_HTML;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue