This commit is contained in:
parent
3f5858f5f1
commit
d9fc22566d
1 changed files with 13 additions and 13 deletions
|
@ -38,23 +38,23 @@ 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 class="ActionMenu-section ActionMenu-section">
|
||||
<div class="ActionMenu-items ActionMenu-section-type-list">
|
||||
<div class="ContextMenuItem-container ContextMenuItem-container-section-type-list" onclick='window.open("https://builded.swee.codes/settings", "ree", "titlebar=yes,menubar=no,height=500px,width=300px,menubar=no,status=no");'>
|
||||
<div class="SVGIcon-container ContextMenuIcon-container-destructive-action ContextMenuIcon-container-section-type-list ContextMenuIcon-container-icon ContextMenuItem-icon">
|
||||
<img width="25" src="https://git.swee.codes/swee/Builded/raw/branch/main/Builded-solid.svg">
|
||||
</div>
|
||||
<div class="ContextMenuItem-label">
|
||||
Builded Settings
|
||||
</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">
|
||||
<img src="https://git.swee.codes/swee/Builded/raw/branch/main/Builded-solid.svg" height="32">
|
||||
</div>
|
||||
</div>
|
||||
<div class="NavV4SelectorRow-row-content">
|
||||
<div class="NavV4TeamSelectorBottomOptionsList-label">
|
||||
Builded settings
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`
|
||||
if (location.host == "www.guilded.gg") {
|
||||
console.info("Guilded.GG detected.");
|
||||
$.initialize('.ActionMenu-sections', function() {
|
||||
console.info("Context menu opened!")
|
||||
$.initialize('.NavV4TeamSelectorBottomOptionsList-container', function() {
|
||||
console.info("Injecting settings entry...")
|
||||
$(this)[0].innerHTML += settings_entry;
|
||||
});
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue