您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hide songs that are locked behind Go+ from SoundCloud
// ==UserScript== // @name Hide Go+ Songs on SoundCloud by Slyceth // @namespace http://tampermonkey.net/ // @version 0.4 // @description Hide songs that are locked behind Go+ from SoundCloud // @author Your Name // @match https://soundcloud.com/* // @icon https://www.google.com/s2/favicons?domain=soundcloud.com // @grant none // @license GNU GPLv3 // ==/UserScript== (function() { 'use strict'; // Function to hide Go+ tracks function hideGoPlusTracks() { // Select all play buttons that are marked as unavailable const unavailableButtons = document.querySelectorAll('a.sc-button-play.sc-button-disabled[title="Unavailable"]'); unavailableButtons.forEach(button => { // Traverse up the DOM to find the parent container of the track let trackContainer = button.closest('li.searchList__item'); if (!trackContainer) { // Try to find the closest track container in case the DOM structure is different trackContainer = button.closest('div.soundList__item'); } if (trackContainer) { trackContainer.style.display = 'none'; } }); } // Run the function initially hideGoPlusTracks(); // Create an observer to monitor DOM changes and hide Go+ tracks dynamically const observer = new MutationObserver(hideGoPlusTracks); observer.observe(document.body, { childList: true, subtree: true }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址