// ==UserScript==
// @name Gota.io Skins Website Enhancer
// @namespace https://skins.gota.io/
// @version 1.1
// @description Turns the skin page into dark theme, re-adjusted fonts and added new skin submission features!
// @author alex
// @match https://skins.gota.io/*
// @grant GM_addStyle
// @run-at document-start
// @downloadURL https://update.greasyfork.cloud/scripts/411585/Gotaio%20Skins%20Website%20Enhancer.user.js
// @updateURL https://update.greasyfork.cloud/scripts/411585/Gotaio%20Skins%20Website%20Enhancer.meta.js
// ==/UserScript==
(function() {
'use strict';
window.onload = function() {
function assignClass(classname, arg) {
if (document.getElementsByClassName(classname) == null) return;
document.getElementsByClassName(classname)[0].id = arg;
}
let form = document.getElementById('additional');
let button = document.getElementById('hideformbutton');
function setVal(id, arg) {
return localStorage.setItem(id, arg);
}
function getVal(id) {
return localStorage.getItem(id);
}
function applied() {
let skinName = document.getElementById('starterName').value;
let skinImage = document.getElementById('starterSkin').value;
let skinInfo = document.getElementById('starterInfo').value;
setVal('nameStorage', skinName);
setVal('imageStorage', skinImage);
setVal('infoStorage', skinInfo);
}
assignClass(`container theme-showcase`, `skinsBg`);
if (window.location.href == `https://skins.gota.io/skin_request.php`) {
let newDiv = document.createElement("div");
newDiv.style = `text-align: center`;
newDiv.className = "form-group";
newDiv.id = "moreInfo";
newDiv.style.color = "white";
newDiv.style.fontFamily = "Montserrat, sans-serif";
document.body.appendChild(newDiv);
document.getElementById(`moreInfo`).innerHTML += `