Skip to content

Instantly share code, notes, and snippets.

@hyperneutrino
Last active April 14, 2021 05:52
Show Gist options
  • Save hyperneutrino/c591af36fdcfa70ce25987f5332728d2 to your computer and use it in GitHub Desktop.
Save hyperneutrino/c591af36fdcfa70ce25987f5332728d2 to your computer and use it in GitHub Desktop.
PPCG Ungraduation
// ==UserScript==
// @name Ungraduation
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author hyper-neutrino
// @match https://codegolf.stackexchange.com/*
// @match https://codegolf.meta.stackexchange.com/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// @run-at document-start
// ==/UserScript==
(function() {
'use strict';
document.addEventListener("DOMContentLoaded", function(event) {
var meta = false;
for (var x of $("link")) {
if (x.href.startsWith("https://cdn.sstatic.net/Sites/codegolf/primary.css")) {
x.href = "https://cdn.sstatic.net/Sites/conlang/primary.css?v=8ce811166601";
}
if (x.href.startsWith("https://cdn.sstatic.net/Sites/codegolfmeta/primary.css")) {
x.href = "https://cdn.sstatic.net/Sites/conlangmeta/primary.css?v=8ce811166601";
meta = true;
}
}
$(".site-header--link")[0].innerHTML = "Programming Puzzles and Code Golf&nbsp;<span class='m14 o60 fw-normal'>" + (meta ? "Meta" : "Beta") + "</span>";
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment