Skip to content

Instantly share code, notes, and snippets.

@Interfiber
Last active October 12, 2020 19:50
Show Gist options
  • Save Interfiber/581f656b5b48f304cb019e214d9d259a to your computer and use it in GitHub Desktop.
Save Interfiber/581f656b5b48f304cb019e214d9d259a to your computer and use it in GitHub Desktop.
Makes the Xplane Form located at x-plane.org look better
// ==UserScript==
// @name Better XPlane Fourm
// @namespace https://interfiber.github.io
// @version 0.0
// @description Make The XPlane Forum Better
// @author Interfiber
// @match https://forums.x-plane.org/*
// @updateURL https://gist.github.com/Interfiber/581f656b5b48f304cb019e214d9d259a/raw/better-xplane-forum.user.js
// @downloadURL https://gist.github.com/Interfiber/581f656b5b48f304cb019e214d9d259a/raw/better-xplane-forum.user.js
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Modify the top nav bad
// elNavSecondary_113
document.querySelector("#elNavSecondary_113").innerHTML = "<a style=\"font-size: 24px;\" href=\"https://forums.x-plane.org/\">🏡 Home</a>";
// elNavSecondary_106
document.querySelector("#elNavSecondary_106").innerHTML = "<a style=\"font-size: 24px;\" href=\"https://forums.x-plane.org/index.php?/forums/\">🗣 Forum</a> ";
// elNavSecondary_64
document.querySelector("#elNavSecondary_64").innerHTML = "<a style=\"font-size: 24px;\" href=\"http://store.x-plane.org/\">🏬 Store</a> ";
// elNavSecondary_108
document.querySelector("#elNavSecondary_108").innerHTML = "<a style=\"font-size: 24px;\" href=\"https://forums.x-plane.org/index.php?/files/\">⬇️ Downloads</a> ";
// elNavSecondary_17
document.querySelector("#elNavSecondary_17").innerHTML = "<a style=\"font-size: 24px;\" href=\"https://forums.x-plane.org/index.php?/announcement/3-forum-rules-and-guidelines/\">🆕 New Members</a> ";
// elNavSecondary_87
document.querySelector("#elNavSecondary_87").innerHTML = "<a style=\"font-size: 24px;\" href=\"https://forums.x-plane.org/index.php?/announcement/3-forum-rules-and-guidelines/\">💵 Payware Support</a> ";
// elNavSecondary_38
document.querySelector("#elNavSecondary_38").innerHTML = "<a style=\"font-size: 24px;\" href=\"https://forums.x-plane.org/index.php?/announcement/3-forum-rules-and-guidelines/\">👩‍🔬 Member Projects</a> ";
// Modify the Search Bar
// elMainSearchInput
document.querySelector("#elSearchField").classList.add("elMainSearchInput");
document.querySelector("body").style.backgroundColor = "rgb(31,31,31)";
document.querySelector(".ipsLayout_container").style.backgroundColor = "rgb(31,31,31)";
document.querySelector("#elLogo").style.display = "none";
document.querySelector(".chatboxContainer").style.display = 'none';
document.querySelector(".ipsWidget_inner").style.backgroundColor = "rgb(31,31,31)";
document.querySelector(".ipsWidget_inner").style.color = "white";
document.querySelector(".ipsFaded_withHover").style.display = 'none';
//ipsLayout_mainArea
document.querySelector(".ipsList_reset").style.backgroundColor = "rgb(31,31,31)";
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment