-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathamqRoomBrowserFix.user.js
More file actions
37 lines (33 loc) · 1.63 KB
/
amqRoomBrowserFix.user.js
File metadata and controls
37 lines (33 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// ==UserScript==
// @name AMQ Room Browser Borgar Placement
// @namespace SkayeScripts
// @version 2.2
// @description Moves the "All Settings Menu" icon on room browsers to keep the height consistent. It even looks decent!
// @author RivenSkaye, Zolhungaj
// @match https://animemusicquiz.com/*
// @grant none
// @downloadURL https://github.com/joske2865/AMQ-Scripts/raw/master/amqRoomBrowserFix.user.js
// @updateURL https://github.com/joske2865/AMQ-Scripts/raw/master/amqRoomBrowserFix.user.js
// ==/UserScript==
if (typeof Listener === "undefined") return;
const version = "2.2";
let loadInterval = setInterval(() => {
if ($("#loadingScreen").hasClass("hidden")) {
clearInterval(loadInterval);
setup();
}
}, 500);
function setup() {
if (ROOM_TILE_TEMPLATE) {
ROOM_TILE_TEMPLATE = ROOM_TILE_TEMPLATE
.replace("<i class=\"fa fa-bars rbrAllOptionsIcon clickAble\" aria-hidden=\"true\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"All Settings\"></i>", "")
.replace("<div class=\"rbrRoomNameContainer\">", "<i class=\"fa fa-bars rbrAllOptionsIcon clickAble\" aria-hidden=\"true\" data-toggle=\"tooltip\" style=\"margin-right: 3px;\" data-placement=\"top\" title=\"All Settings\"></i>\n\t\t\t<div class=\"rbrRoomNameContainer\">");
}
}
AMQ_addScriptData({
name: "AMQ Room Browser Borgar Placement",
author: "TheJoseph98",
version: version,
link: "https://github.com/joske2865/AMQ-Scripts/raw/master/amqRoomBrowserFix.user.js",
description: `<p>Moves the "All Settings Menu" icon on room browsers to keep the height consistent</p>`
});