您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Stops the automatic playing of recommended tracks on Soundcloud.
当前为
// ==UserScript== // @name Stop Automatic Recommendations on Soundcloud // @namespace soundcloud-no-autoplay // @author Veeno // @contributor Kai Kuehner // @contributor Technowise // @contributor Andreas J. Schwarz // @description Stops the automatic playing of recommended tracks on Soundcloud. // @include http://www.soundcloud.com/* // @include https://www.soundcloud.com/* // @include http://soundcloud.com/* // @include https://soundcloud.com/* // @grant none // @version 1.3 // @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js // ==/UserScript== //------------------------------------------------------------------------------------------- var sc_cp = { "title": null, "checkInterval": null, "titleElement": "a.playbackSoundBadge__context", "attribute": "title", "buttonElement": "button.playControl[title='Pause current']", "checkA": function () { sc_cp.title = $(sc_cp.titleElement).attr(sc_cp.attribute); if(sc_cp.title == null || sc_cp.title.substring(0, 28) != "Playing from recommendations") { clearInterval(sc_cp.checkInterval); sc_cp.checkInterval = setInterval(sc_cp.checkB, 100); } }, "checkB": function () { sc_cp.title = $(sc_cp.titleElement).attr(sc_cp.attribute); if(sc_cp.title != null && sc_cp.title.substring(0, 28) == "Playing from recommendations") { $(sc_cp.buttonElement).click(); clearInterval(sc_cp.checkInterval); sc_cp.checkInterval = setInterval(sc_cp.checkA, 500); } } }; $(window).load( function() { sc_cp.checkInterval = setInterval(sc_cp.checkA, 500); });