-
Notifications
You must be signed in to change notification settings - Fork 6
/
freakycolors.user.js
94 lines (89 loc) · 3.43 KB
/
freakycolors.user.js
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
// ==UserScript==
// @name Freaky Names
// @namespace http://jew.dance/
// @version 0.13
// @description ...and shit
// @author RealDolos
// @match https://volafile.org/r/*
// @grant none
// @require https://cdn.jsdelivr.net/gh/volafiled/volascripts@db222e0a836c6da9d5593c7fc93941c0e7a9d2a1/dry.js
// @run-at document-start
// @icon https://volafile.org/favicon.ico
// ==/UserScript==
/* globals dry */
(function() {
"use strict";
const colors = {
"getddosed": "blue",
"^thejidf$|^jewmobile$|^mrshlomo$": {color: "pink", content:'✡'},
"^starsheep": {color: "yellow", content: "🥖"},
"^whitepride|llazarus$": "#7aa2ff",
"31337h4x0r|realdolos|vagfacetrm|robocuck|(?:Red|Dong|Immor|lg188)dolos": "white",
"^kreg$": "hotpink",
"^robocop$": {color: "dodgerblue", content: '🤖'},
"^lain$": "gold",
"^red$": {color: "indianred", content: '💰'},
"^thersanderia$": { color: "#e3dac9", content: '💀'},
"^bain$": {color: "#00A693", content:'👳🏽♂️'},
"^counselor$|^apha$|^couscous|^vaat$": {color: "rgb(210, 148, 44)", content: '💩'},
"^lmmortal$": {color: "rgb(255, 108, 135)", content: '👸'},
"^mercwmouth$|^deadpool$": { color: "lightbrown", content: "👳"},
"^modchatbot": {content: '🗡️', color: "yellowgreen"},
"^liquid$|^news$": {content: '🐑'},
"^cyberia$": {content: 'λ'},
"^someguy1992$": {color: "#EDDB17", content:"😑"},
"^dad": {color: "lightskyblue"},
"^heisenb3rg$": {content: "🏳🌈"},
"^GitGood$": {color: "rgb(116, 161, 204)"},
"^SolSelene$": {content: "🐇"},
};
const r_colors = [];
for (let name in colors) {
r_colors.push([new RegExp(name, "i"), colors[name]]);
}
console.log("running", GM_info.script.name, GM_info.script.version, dry.version);
dry.once("dom", () => {
new class extends dry.MessageFilter {
addMessage(orig, m) {
for (let r of r_colors) {
if (m.options.user && r[0].test(m.nick)) {
let color = r[1];
let content = null;
if (typeof color !== "string") {
color = r[1].color;
content = r[1].content;
}
if (content) {
let star = m.elem.querySelector(".icon-star");
if (star) {
star.textContent = content.trim();
star.classList.remove("icon-star");
star.classList.add("custom-pro");
}
}
if (color) {
for (let n = m.nick_elem; n; n = n.previousSibling) {
n.style.color = color;
}
}
return;
}
}
}
}();
let css = document.createElement("style");
css.textContent = `
.custom-pro {
font-size: 80%;
font-weight: bolder;
margin-left: -.35em;
margin-right: .15em;
padding: 0;
min-width: 18px;
display: inline-block;
text-align: center;
}
`;
document.body.appendChild(css);
});
})();