-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathzoomer_nation_creator.user.js
56 lines (52 loc) · 1.74 KB
/
zoomer_nation_creator.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
// ==UserScript==
// @name Zoomer nation 🏞 creator 📲📲
// @namespace dithpri.RCES
// @version 0.1
// @description Zoomer nation 🏞 creator 📲📲
// @author dithpri
// @match https://www.nationstates.net/page=create_nation
// @downloadURL https://github.com/dithpri/RCES/raw/master/userscripts/decoration/zoomer_nation_creator.user.js
// @grant none
// ==/UserScript==
// Thanks to Conklandi/XKZ for the inspiration!
/*
* Copyright (c) 2021 dithpri (Racoda) <[email protected]>
* This file is part of RCES: https://github.com/dithpri/RCES and licensed under
* the MIT license. See LICENSE.md or
* https://github.com/dithpri/RCES/blob/master/LICENSE.md for more details.
*/
function GM_addStyle(style) {
"use strict";
var node = document.createElement("style");
node.innerHTML = style;
document.getElementsByTagName("head")[0].appendChild(node);
}
(function () {
"use strict";
document.querySelectorAll("#style-selector label").forEach((el) => {
let emoji =
{
anarchic: "👊🏴",
libertarian: "🐍",
capitalist: "🤑💰",
liberal: "🏳🌈 ",
centrist: "🤢🤮",
conservative: "🦅",
socialist: "☭",
authoritarian: "👁️",
tyrannical: "👑🚨",
random: "⁉️⚙",
}[el.textContent.toLowerCase()] || "";
el.textContent = `\u202e${emoji}\u202c ${el.textContent} ${emoji}`;
});
document.querySelectorAll(".quiz-dropdowns label").forEach((el) => {
el.textContent =
{
"strongly disagree": "☠️",
disagree: "❌",
agree: "✅",
"strongly agree": "💗",
}[el.textContent.toLowerCase()] || el.textContent;
});
GM_addStyle('#style-selector.flatradio-grid input[type="radio"] + label { width: 30%; white-space: nowrap; }');
})();