Active Dungeons Only - pendcalc.karubo.de

4/25/2021, 9:58:31 AM

  1. // ==UserScript==
  2. // @name Active Dungeons Only - pendcalc.karubo.de
  3. // @namespace https://xpuls3.github.io/
  4. // @include http://pendcalc.karubo.de/
  5. // @grant none
  6. // @version 0.1.0
  7. // @author Puls3
  8. // @description 4/25/2021, 9:58:31 AM
  9. // ==/UserScript==
  10.  
  11. // Its not pretty - but meh.
  12.  
  13. window.addEventListener("DOMContentLoaded", async () => {
  14.  
  15. const elem = document.createElement("style");
  16. elem.innerText = `` +
  17. `#roitable > tbody > tr:nth-child(1) { display: none; }` +
  18. `#roitable > tbody > tr > *:nth-child(3) { display: none; }` +
  19. `#roitable > tbody > tr > *:nth-child(4) { display: none; }` +
  20. `#roitable > tbody > tr > *:nth-child(5) { display: none; }` +
  21. `#roitable > tbody > tr > *:nth-child(6) { display: none; }` +
  22. `#roitable > tbody > tr > *:nth-child(7) { display: none; }` +
  23. `#roitable > tbody > tr > *:nth-child(8) { display: none; }` +
  24. '';
  25.  
  26. document.head.append(elem);
  27.  
  28. });