Skip to content

Instantly share code, notes, and snippets.

@thehowl
Created September 20, 2015 15:20
Show Gist options
  • Save thehowl/cd752c6b17e48038cb82 to your computer and use it in GitHub Desktop.
Save thehowl/cd752c6b17e48038cb82 to your computer and use it in GitHub Desktop.
// ==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