Created
September 20, 2015 15:20
-
-
Save thehowl/cd752c6b17e48038cb82 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name quad squad unmemer | |
// @namespace http://howl.moe/ | |
// @version 0.1 | |
// @description reasons | |
// @author You | |
// @match http*://quadsquad.xyz/* | |
// @grant none | |
// ==/UserScript== | |
var el = document.getElementsByTagName("marquee")[0]; | |
var people = el.innerHTML.trim(); | |
if (people[people.length - 1] == ",") | |
people = people.slice(0, -1); | |
var fh = people.split(", ").sort(function (a, b) { | |
return a.toLowerCase().localeCompare(b.toLowerCase()); | |
}).join("<br>"); | |
el.parentNode.removeChild(el); | |
var ih = document.getElementsByTagName("body")[0].innerHTML; | |
var position = (ih.search("</h1>") + 5); | |
document.getElementsByTagName("body")[0].innerHTML = [ih.slice(0, position), fh, ih.slice(position)].join(''); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment