NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name SCD // @namespace com.birdicode.SCDGreaseMonkey // @author Birdicode // @copyright 2015, Birdicode (http://black-burn.ch) // @license Mit License, http://birdi.mit-license.org/2012/license.html // @description Will add a icon to easily download any song from soundcloud with SCD. Please note, you will need to have installed SCD on your mac from http://black-burn.ch/scd for this to work! // @homepageURL http://black-burn.ch // @supportURL mailto:birdicode@gmail.com // @icon http://black-burn.ch/applications/scd/extensions/greasemonkey/icon.png // @include https://soundcloud.com/* // @include https://w.soundcloud.com/* // @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js // @version 1.0.1 // @grant none // @updateURL https://openuserjs.org/install/Birdicode/SCD.user.js // @downloadURL https://openuserjs.org/install/Birdicode/SCD.user.js // ==/UserScript== function log(A){console.log(A)}function hashHandler(){this.oldHash=window.location.href,this.Check;var A=function(){this.oldHash!=window.location.href&&(updatePage(),this.oldHash=window.location.href)};this.Check=setInterval(function(){A()},1e3)}function updatePage(){window.location.href.match(/w.soundcloud.com\/player\//)?(currentPage=pages.widget,checkOnPlayer()):window.location.href.match(/https:\/\/soundcloud.com\//)&&updateSoundcloud()}function updateSoundcloud(){var A=window.location.pathname;hasStreamDetector&¤tPage!=pages.stream&¤tPage!=pages.uploads&¤tPage!=pages.likes&¤tPage!=pages.group&¤tPage!=pages.sets&&(hasStreamDetector=!1),"/stream"==A?(oldStreamSize=-1,currentPage=pages.stream,hasStreamDetector||(hasStreamDetector=!0,detectStream())):A.match(/^\/(([^\/]+)|(.+\/tracks))\/?$/)?(currentPage=pages.uploads,oldStreamSize=-1,hasStreamDetector||(hasStreamDetector=!0,detectStream())):A.match(/^\/.+\/likes\/?$/)?(currentPage=pages.likes,oldStreamSize=-1,hasStreamDetector||(hasStreamDetector=!0,detectStream())):A.match(/^\/groups\/.+\/?$/)?(currentPage=pages.group,oldStreamSize=-1,hasStreamDetector||(hasStreamDetector=!0,detectStream())):A.match(/^\/.+\/sets\/.+\/?$/)?(currentPage=pages.aSet,aSet()):A.match(/^\/.+\/sets\/?$/)?(currentPage=pages.sets,sets()):A.match(/^\/.+\/.+\/?$/)&&(currentPage=pages.sound,soundDetector())}function detectStream(){(currentPage==pages.stream||currentPage==pages.uploads||currentPage==pages.likes||currentPage==pages.group||currentPage==pages.sets)&&($(".lazyLoadingList__list li, .soundList li").length!=oldStreamSize&&(oldStreamSize=$(".lazyLoadingList__list li, .soundList li").length,stream()),setTimeout(detectStream,1e3))}function updateWidget(){if(1==$("#widget").length){removeAllButtons();var A=$(".title a:last-child").attr("href"),t="background-image: url("+logoWhite+"); background-repeat: no-repeat; background-size: 15px 15px; background-position: center center;";$(".soundHeader__buttons").append("<button style='"+t+"' id='scddl' class='scdbtn sc-button sc-button-small sc-button-icon sc-button-visual' tabindex='0' href='"+scdURL(A)+"'>SCD</button>"),$("#scddl").click(function(){var A=$("#scddl").attr("href");window.location=A}),setTimeout(checkForTrackChangeInWidget,100)}else setTimeout(updateWidget,100)}function checkForTrackChangeInWidget(){$(".sc-ministats-sounds").hasClass("scdChecked")||($(".sc-ministats-sounds").each(function(){$(this).removeClass("scdChecked")}),isFirstCheckOfWidgetItems||$(".sc-ministats-sounds").addClass("scdChecked"),isFirstCheckOfWidgetItems=!1,$(".sc-ministats-sounds").closest(".soundsList__item").addClass("currentSCDSoundItem"),setTimeout(updateWidgetItem,100)),currentPage==pages.widget&&setTimeout(checkForTrackChangeInWidget,100)}function updateWidgetItem(){$(".scdSoundItemButton").each(function(){$(this).find(".scdChecked")[0]&&$(this).detach()});var A=$(".currentSCDSoundItem").find(".soundStats__link").attr("href"),t="background-image: url("+logoGray+"); background-repeat: no-repeat; background-size: 12px 12px;";$(".currentSCDSoundItem").find(".soundStats").append('<li class="soundStats__item sc-ministats-item scdSoundItemButton"> <a style="'+t+'" class="scddlitem sc-ministats sc-ministats-small" link="'+scdURL(A)+'" title="Download with SCD"> SCD</a></li>'),$(".scddlitem").click(function(){var A=$(this).attr("link");window.location=A}),$(".currentSCDSoundItem").removeClass("currentSCDSoundItem")}function stream(){removeAllButtons(),$(".soundList__item").each(function(A){var t=$(this).find(".soundTitle__title").attr("href");$(this).find(".soundActions .sc-button-group:first-child").append(button(t,"small"))})}function sound(){removeAllButtons();var A=window.location.href;$(".soundActions .sc-button-group:first-child").append(button(A,"medium"))}function soundDetector(){currentPage==pages.sound&&($(".soundActions .sc-button-group")[0]?sound():setTimeout(soundDetector,1e3))}function sets(){$(".soundList__item").each(function(A){var t=$(this).find(".soundTitle__title").attr("href");$(this).find(".soundActions .sc-button-group:first-child").append(button(t,"small"))})}function aSet(){var A=window.location.href;$(".listenEngagement__actions .soundActions .sc-button-group:first-child").append(button(A,"medium")),removeAllButtons(),$(".listenDetails .trackList__item").each(function(A){var t=$(this).find(".trackItem__trackTitle").attr("href");$(this).find(".soundActions .sc-button-group:first-child").append(button(t,"small"))});var t=new MutationObserver(function(A){updatePage()}),g=function(){$(".trackList__list")[0]?t.observe(document.querySelector(".trackList__list"),{childList:!0}):setTimeout(1e3,g)};g()}function scdURL(A){return A?A.match(/soundcloud.com\//)?"scd://download?link="+A:"scd://download?link=https://soundcloud.com"+A:void 0}function button(A,t){var g,e=scdURL(A);return g="small"==t?17:20,"<a href='"+e+"' class='sc-button sc-button sc-button-"+t+" sc-button-responsive scdbtn' tabindex='0' title='Download with SCD'><img src='"+logoBlack+"' style='width: "+g+"px;' /></a>"}function removeAllButtons(){$(".scdbtn").each(function(){$(this).detach()})}function checkOnPlayer(){var A=document.getElementById("widget"),t=getCount(A,!0);t>2?updateWidget():setTimeout(checkOnPlayer,1e3)}function getCount(A,t){for(var g=0,e=A.childNodes.length,n=0;e>n;n++)3!=A.childNodes[n].nodeType&&(t&&(g+=getCount(A.childNodes[n],!0)),g++);return g}var logoBlack="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3N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HeJEU0SmlRfSqq/iolWzrjeY3n2f8aFcro3ZThrLFGJPSstxXz8+Afha9NurINAFfAW8m2MQHwM/WSCxgDGm++6oskdjTX8/fkCfe/X5pQ6Ae4DHNLxLSimxiEBs1bsDB3QT5LwW1DLD+Rqzd07f6Ov17dz3Rx3ud+aKmkv13iWKglNHCOJ94Fm/0l2DUq088TnwAvC2Rj/zTdJxQFrMIGB/yPDCWvaSAsQx4AdzT6nqu4TKoKXADQI82dzXB3wjEI1BgxJnkTtUbpcDjwNPSvgSkzdWm2JwkWmyCKBm2PjV3tut4zffPbPVnE1VtGwx+SzwvQ6IyxVHzX6SzO/CbVJZvlg03MqVgfWLwAPq2MrkL2G+kM3fDZ06Mj37vw5xrTHhYkObpEJsj4RvNmH1iCaA9bLgDgWFMkb3J04siyPjFKVbP75Pk4oBNU4zdM72GPNMY1Vq3pMwuSfvywFZI8fulCAHjfBdxifaTevaLAdNqw5zvnSiUEBi0m6HmaD0mzZ1yNCpVVHmvOqx6SplXEY/rJFqwSzi+LdbEeIThUE3QamRgG6ycthYLG1a5F0UaMV9zrbblOofmryRUEk/Tfd1mLFRN/CBKPdmhsgU5fKGA2LXPPnKoGhn21w0kOg12f0o8EgeQYRaxGbjblmgwfTuA8YK7Vz5P3CbKgL3XGw8UMuCOWcGdduMI+8CbuHKgBuBoJCWyEQtWycVm0CwHfhMUaugggcB8UKyrAc8rFJluxkPjbsVzyIitOpgHFnByxZI1i8YL+DiudBOIQDG82n+XIL8dwDtJ47ZoPR/PgAAAABJRU5ErkJggg==",hasStreamDetector=!1,oldStreamSize=-1,currentPage,isFirstCheckOfWidgetItems=!0;MutationObserver=window.MutationObserver||window.WebKitMutationObserver;var pages={};pages={stream:1,uploads:2,sets:3,aSet:4,sound:5,widget:6,group:7,likes:8},$(document).ready(function(){updatePage();new hashHandler});