-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathguild.js
More file actions
96 lines (85 loc) · 2.35 KB
/
guild.js
File metadata and controls
96 lines (85 loc) · 2.35 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
// ==UserScript==
// @name Guild Script
// @namespace http://tampermonkey.net/
// @version 0.8
// @description Stylish guild bar
// @author kit2d2
// @match https://florr.io/*
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js
// @grant GM_addStyle
// ==/UserScript==
GM_addStyle(`
.guild-capacity-bar {
position: fixed;
bottom: 20px;
right: 20px;
width: 200px;
height: 30px;
background-color: #1FDBDE; /* Blue color */
border: 2px solid #444;
border-radius: 15px;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
cursor: pointer;
overflow: hidden;
transition: width 0.5s ease-in-out, height 0.5s ease-in-out, background-color 0.5s ease-in-out;
z-index: 9999;
display: flex;
justify-content: flex-end;
align-items: center;
padding-right: 10px;
color: white;
font-family: 'Ubuntu', sans-serif;
font-weight: 700;
font-size: 14px;
text-align: center;
line-height: 30px;
}
.guild-capacity-bar.expanded {
width: 300px;
height: 200px;
background-color: #444;
border: 15px solid #444;
border-radius: 15px;
color: #1FDBDE;
transition: background-color 0.5s ease-in-out;
}
.inner-content {
color: white;
font-family: 'Ubuntu', sans-serif;
font-weight: 700;
font-size: 14px;
overflow-y: auto;
height: 100%;
width: 100%;
padding: 10px;
box-sizing: border-box;
}
.inner-content::-webkit-scrollbar {
width: 10px;
}
.inner-content::-webkit-scrollbar-track {
background: #1FDBDE;
}
.inner-content::-webkit-scrollbar-thumb {
background-color: #444;
border-radius: 5px;
}
`);
(function() {
let bar = document.createElement('div');
bar.className = 'guild-capacity-bar';
bar.textContent = 'Capacity of Guild: 100/100';
let innerContent = document.createElement('div');
innerContent.className = 'inner-content';
innerContent.textContent = 'M28 Locktrap kit2d2';
bar.appendChild(innerContent);
document.body.appendChild(bar);
bar.addEventListener('click', function() {
bar.classList.toggle('expanded');
if (bar.classList.contains('expanded')) {
innerContent.textContent = '7/12/2024 - script creationed';
} else {
innerContent.textContent = 'M28 Locktrap kit2d2';
}
});
})();