NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name OSRS Hiscores Tweak // @namespace https://github.com/TheArbalist // @version 0.1 // @description Fixes link ordering in Hiscores page // @author Arbalist // @include *://services.runescape.com/m=hiscore_oldschool* // @license MIT // @copyright 2018, Arbalist (https://openuserjs.org/users/Arbalist) // ==/UserScript== // ==OpenUserJS== // @author Arbalist // ==/OpenUserJS== (function() { var divider = document.querySelector('#contentCategory span'), activityElements = document.querySelectorAll('.activity-link'), activities = [ [6, 'Last Man Standing', 'lmsrank'], [3, 'BH Rogue', 'bountyhunterrogue'], [4, 'BH Targets', 'bountyhunterhunter'], [8, 'Clues (master)', 'cluescrollsmaster'], [7, 'Clues (elite)', 'cluescrollselite'], [5, 'Clues (hard)', 'cluescrollshard'], [1, 'Clues (medium)', 'cluescrollsmedium'], [0, 'Clues (easy)', 'cluescrollseasy'], [2, 'Clues (all)', 'cluescrollsall'], ]; activityElements.forEach(element => element.remove()); activities.forEach(activity => divider.insertAdjacentHTML('afterEnd', `<a href="overall.ws?category_type=1&table=${activity[0]}" class="activity-link" style="background:url('http://www.runescape.com/img/rsp777/game_icon_${activity[2]}.png') no-repeat left center;${activity[3] || ''}">${activity[1]}</a>`)); })();