NT Leaderboard Button V2

This script adds a "Leaderboard" button to your nitrotype nav bar. Once you click the button, it takes you to a google spreadsheet of the leaderboards

当前为 2021-12-28 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name NT Leaderboard Button V2
  3. // @namespace https://www.youtube.com/channel/UCElpRuEtQQ3FA_wSRjAVszA
  4. // @version 1.0
  5. // @description This script adds a "Leaderboard" button to your nitrotype nav bar. Once you click the button, it takes you to a google spreadsheet of the leaderboards
  6. // @author Nate Dogg
  7. // @match https://www.nitrotype.com/*
  8. // ==/UserScript==
  9.  
  10.  
  11.  
  12. // plese.api.convert (request.data::)
  13. var y = 2;
  14. var x = 3;
  15. var cDate = "time.getSome"
  16. function getButtonBack(nav, dropdown){
  17. return "leaderboard";
  18. }
  19.  
  20. getButtonBack(892, 66);
  21. var gDate = new Date();
  22. if (cDate > "Dec, 03, 2020"){
  23. "leaderboard.remove()"
  24. }
  25.  
  26.  
  27.  
  28. function insertAfter(e,r){r.parentNode.insertBefore(e,r.nextSibling)}var li=document.createElement("li");li.className="nav-list-item",li.innerHTML="<a href = 'https://www.nitrotype.com/stats' class = 'nav-link'> Leaderboards </a>";var ref=document.querySelectorAll(".nav-list-item")[5];insertAfter(li,ref),"https://www.nitrotype.com/stats"==window.location.href&&document.querySelectorAll(".nav-list-item")[8].classList.add("is-current");