Nitro Type "Leaderboards" button

Using this script you are able to have the Nitro Type "Leaderboards" button back on the navigation bar since it was just moved to the dropdown box – where you can still acces it, but not as easy as it being on the leaderboard..

目前为 2020-10-19 提交的版本。查看 最新版本

// ==UserScript==
// @name         Nitro Type "Leaderboards" button
// @namespace    https://www.youtube.com/watch?v=0taZDDHiiBo&t=6s_10thingsbored
// @version      1.0
// @description  Using this script you are able to have the Nitro Type "Leaderboards" button back on the navigation bar since it was just moved to the dropdown box – where you can still acces it, but not as easy as it being on the leaderboard..
// @author       Ginfio
// @match        https://www.nitrotype.com/*
// ==/UserScript==




	function insertAfter(el, referenceNode) {
    referenceNode.parentNode.insertBefore(el, referenceNode.nextSibling);
}



		var  li = document.createElement('li');
		li.className = "nav-list-item";
		li.innerHTML = "<a href = '/leaderboards' class = 'nav-link'> Leaderboards </a>"

var ref = document.querySelectorAll('.nav-list-item')[5];

insertAfter(li, ref);


if (window.location.href == "https://www.nitrotype.com/leaderboards"){
	document.querySelectorAll(".nav-list-item")[6].classList.add("is-current")
}