Github: Increase visibility of "hidden conversations"

28/05/2025, 12:31:02

  1. // ==UserScript==
  2. // @name Github: Increase visibility of "hidden conversations"
  3. // @namespace Violentmonkey Scripts
  4. // @match https://github.com/navikt/aksel/pull/3761*
  5. // @grant none
  6. // @version 1.1
  7. // @run-at document-end
  8. // @author popular-software
  9. // @description 28/05/2025, 12:31:02
  10. // @require https://cdn.jsdelivr.net/npm/@violentmonkey/dom@2
  11. // @license MIT
  12. // ==/UserScript==
  13.  
  14. const disconnect = VM.observe(document.body, () => {
  15. const nodes = document.body.querySelectorAll(`.js-review-hidden-comment-ids,.discussion-item-header`);
  16.  
  17. for (let node of nodes) {
  18. node.style = "font-size: 2rem;";
  19. const buttonWrapper = node.querySelector('div.Box');
  20. buttonWrapper.style = "border: 5px solid red;"
  21. const buttons = buttonWrapper.querySelectorAll('button');
  22. for (let button of buttons) {
  23. button.style = "color: red !important;"
  24. }
  25. }
  26.  
  27. });