Star Wars Roleplay: Chaos

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Public Service Announcement: Anti-Typewriter-Script

This is a public service announcement. If you are as annoyed as I am by the use of the Courier typewriter font that this board occasionally sees, adding the following userscript to your browser (for example via the Tampermonkey extension) replaces it with the default font.
Code:
// ==UserScript==
// @name        Anti-Typewriter-Script
// @namespace   Amilthi
// @version     1
// @grant       none
// @match http://starwarsrp.net/*
// ==/UserScript==

var x = document.getElementsByTagName("span");

function fixFont(y) {
    if (y.getAttribute("style")!==null) {
     if (y.getAttribute("style").includes("'courier new'")) {
         y.setAttribute("style","");
     }
    }
}

for (i = 0; i < x.length; i++) {
    fixFont(x[i]);
}
 

Users who are viewing this thread

Top Bottom