Last active
November 17, 2017 16:48
-
-
Save MarkKoz/7ae4d853351c5a94b705dab95e5933f4 to your computer and use it in GitHub Desktop.
A userscript which modifies the high scores table for the Old School RuneScape website.
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 OSRS HiScores | |
// @namespace orsrs_hs | |
// @description Modifies the high scores table for the Old School RuneScape website. | |
// @include *services.runescape.com/m=hiscore_* | |
// @version 1 | |
// @run-at document-end | |
// @require https://code.jquery.com/jquery-3.2.1.slim.min.js | |
// ==/UserScript== | |
const clueAll = $("#contentCategory a:nth-child(28)"); | |
const clueEasy = $("#contentCategory a:nth-child(26)"); | |
const clueMed = $("#contentCategory a:nth-child(27)"); | |
const clueHard = $("#contentCategory a:nth-child(31)"); | |
const clueElite = $("#contentCategory a:nth-child(33)"); | |
const clueMaster = $("#contentCategory a:nth-child(34)"); | |
const bhRogue = $("#contentCategory a:nth-child(29)"); | |
const bhHunter = $("#contentCategory a:nth-child(30)"); | |
const lms = $("#contentCategory a:nth-child(32)"); | |
clueAll.insertBefore(clueEasy); | |
clueHard.insertAfter(clueMed); | |
clueElite.insertAfter(clueHard); | |
clueMaster.insertAfter(clueElite); | |
clueAll.text("All Clues"); | |
clueEasy.text("Easy Clues"); | |
clueMed.text("Medium Clues"); | |
clueHard.text("Hard Clues"); | |
clueElite.text("Elite Clues"); | |
clueMaster.text("Master Clues"); | |
bhRogue.text("BH - Rogue") | |
bhHunter.text("BH - Hunter") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment