Nitro Type "Updates" navigation button

There's a new nitro type page, the "Updates" page. However it doesn't have "Updates" on the navigation to go to that page. You can use this script so you can access the "Updates" page easily like any other nitro type pages.

目前为 2020-06-13 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Nitro Type "Updates" navigation button
  3. // @namespace https://www.youtube.com/channel/UCOQMOlaQ6GxltRHA_mwGVvQ
  4. // @version 1.0
  5. // @description There's a new nitro type page, the "Updates" page. However it doesn't have "Updates" on the navigation to go to that page. You can use this script so you can access the "Updates" page easily like any other nitro type pages.
  6. // @author Ginfio
  7. // @match https://www.nitrotype.com/*
  8. // ==/UserScript==
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20. window.onload=function(){var e=document.querySelector(".nav-list"),n=document.createElement("li");n.className="nav-list-item",e.appendChild(n),a=document.createElement("a"),a.href="/updates",a.className="nav-link",a.innerHTML="Updates",a.style.padding="15px 14px";for(var t=document.querySelectorAll(".nav-link"),l=0;l<t.length;l++)t[l].style.padding="15px 14px";n.appendChild(a),"https://www.nitrotype.com/updates"==window.location.href&&(n.className="nav-list-item is-current")};
  21.