RoyalRoad Extra Upload Date Info

Bring the upload date to the top of the screen since I always forget to check it before loading the next one

  1. // ==UserScript==
  2. // @name RoyalRoad Extra Upload Date Info
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Bring the upload date to the top of the screen since I always forget to check it before loading the next one
  6. // @author You
  7. // @match https://www.royalroad.com/fiction/*/chapter/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=royalroad.com
  9. // @grant none
  10. // @run-at document-end
  11. // ==/UserScript==
  12.  
  13.  
  14. var timestamp = document.querySelector('.profile-info ul li').innerHTML;
  15. var navBar = document.querySelector('.nav-buttons');
  16.  
  17. navBar.outerHTML += "<div style='text-align: center; margin-top: 10px;'>" + timestamp + "</div>";