RoundInfo

add RoundInfo

  1. // ==UserScript==
  2. // @name RoundInfo
  3. // @namespace FeizhaiXiage.RoundInfo
  4. // @version 0.1
  5. // @description add RoundInfo
  6. // @author FeizhaiXiage
  7. // @match https://hentaiverse.org/?s=Battle
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=hentaiverse.org
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. var pane = document.getElementById("pane_log");
  15. var GameLog = pane.getElementsByTagName("tr");
  16. var RoundInfo = GameLog[GameLog.length-1].textContent;
  17. var RoundInfoDiv = document.createElement('div');
  18. RoundInfoDiv.textContent = RoundInfo;
  19. var battleMain = document.getElementById('battle_right');
  20. battleMain.appendChild(RoundInfoDiv);
  21. })();