NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Statblocker // @description Block your stats from being shown on Soundcloud // @author Vintroxx // @match https://soundcloud.com/* // @grant none // @updateURL https://openuserjs.org/meta/vintroxx/Statblocker.meta.js // ==/UserScript== function addJQuery(callback) { var script = document.createElement("script"); script.setAttribute("src", "//ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"); script.addEventListener('load', function() { var script = document.createElement("script"); script.textContent = "window.jQ=jQuery.noConflict(true);(" + callback.toString() + ")();"; document.body.appendChild(script); }, false); document.body.appendChild(script); } function main() { jQ(document).ready(function(){ setInterval(function() { let uname = jQ('.userNav__username')[0].innerHTML; let sounds = jQ('.sound__body'); for(let i = 0; i < sounds.length; i++) { if(jQ(sounds[i]).find('.sound__content .sound__header .soundTitle .soundTitle__titleContainer .soundTitle__usernameTitleContainer div a span.soundTitle__usernameText')[0].innerHTML == uname) { jQ(sounds[i]).find('.sound__content .sound__footer .sound__footerRight').hide(); jQ(sounds[i]).find('.sc-button-like').html(' '); } } let sounds2 = jQ('.l-content'); for(let i = 0; i < sounds2.length; i++) { if(jQ(sounds2[i]).find('div .l-listen-hero').length > 0) { if(jQ(sounds2[i]).find('.soundTitle__usernameHeroContainer a')[0].innerHTML.replace(/\s+/g, '') == uname) { jQ(sounds2[i]).find('.soundStats.sc-ministats-group').hide(); } } if(jQ(sounds2[i]).find('div .l-user-hero').length > 0) { if(jQ(sounds2[i]).find('.profileHeaderInfo__userName')[0].innerHTML.replace(/\s+/g, '') == uname) { jQ('.infoStats__value').first().html('Hidden'); } } } jQ('.statsBadge').hide(); }, 200); }); } addJQuery(main);