🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

Greasy Fork is available in English.

📂 缓存分发状态(共享加速已生效)
🕒 页面同步时间:2026/01/13 08:59:22
🔄 下次更新时间:2026/01/13 09:59:22
手动刷新缓存

Soundcloud Disable Comments

Remove comment elements from Soundcloud waveforms.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

// ==UserScript==
// @name           Soundcloud Disable Comments
// @description    Remove comment elements from Soundcloud waveforms.
// @namespace      http://userscripts.org/users/tim
// @include        http://soundcloud.com/*
// @include        https://soundcloud.com/*
// @copyright      2012 Tim Smart
// @license        MIT. Full license in source code.
// @version 0.0.1.20140425034613
// ==/UserScript==

// The MIT License
//
// Copyright (c) 2012 Tim Smart
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files
// (the "Software"), to deal in the Software without restriction,
// including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and
// to permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

;(function () {

// For multiple environments.
var unsafe    = unsafeWindow || window
// Find a MutationObserver constructor.
var MutationObserver  = unsafe.MutationObserver

if (!MutationObserver && unsafe.WebKitMutationObserver) {
  MutationObserver = unsafe.WebKitMutationObserver
}

// ====
// Remove comments when found

function removeComments () {
  var commentBubbles      = document.querySelectorAll('div.commentBubble')
  var commentPlaceholders = document.querySelectorAll('div.commentPlaceholder')
  var commentForms        = document.querySelectorAll('div.commentForm')
  var wrappers            = document.querySelectorAll('div.waveform__scene')
  var canvases            = null
  var element             = null

  for (var i = 0, il = commentBubbles.length; i < il; i++) {
    element = commentBubbles[i]
    element.parentNode.removeChild(element)
  }
  for (var i = 0, il = commentPlaceholders.length; i < il; i++) {
    element = commentPlaceholders[i]
    element.parentNode.removeChild(element)
  }
  for (var i = 0, il = commentForms.length; i < il; i++) {
    element = commentForms[i]
    element.parentNode.removeChild(element)
  }
  for (var i = 0, il = wrappers.length; i < il; i++) {
    element  = wrappers[i]
    canvases = element.querySelectorAll('canvas')

    if (3 === canvases.length) {
      element = canvases[1]
      element.parentNode.removeChild(element)
    }
  }
}

var observer  = new MutationObserver(removeComments)
observer.observe(document, { childList : true, subtree : true })
removeComments()

})();

/* vim: set expandtab sts=2 ts=2 sw=2 tw=80 ft=javascript :*/