Hide SoundCloud Comments and Waveform

Hides SoundCloud comment popovers and waveform comments canvas

  1. // ==UserScript==
  2. // @name Hide SoundCloud Comments and Waveform
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.1
  5. // @description Hides SoundCloud comment popovers and waveform comments canvas
  6. // @author You
  7. // @match *://soundcloud.com/*
  8. // @grant none
  9. // @license MIT
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. function hideElements() {
  16. // Hide comment popovers
  17. document.querySelectorAll('.commentPopover.medium.visible').forEach(el => {
  18. el.style.display = 'none';
  19. });
  20.  
  21. // Hide waveform comments canvas
  22. document.querySelectorAll('canvas.waveformCommentsNode').forEach(el => {
  23. el.style.display = 'none';
  24. });
  25. }
  26.  
  27. // Run initially
  28. hideElements();
  29.  
  30. // Observe the DOM for dynamically added elements
  31. const observer = new MutationObserver(hideElements);
  32. observer.observe(document.body, { childList: true, subtree: true });
  33.  
  34. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址