Profile cover photo
Profile photo
Nil Geisweiller
81 followers
81 followers
About
Communities and Collections
View all
Posts

Post has attachment

Post has attachment

If you are fed up to have reposts in your soundcloud stream, just press F12 and paste this script in your browser console (many thanks to the author, Noam Lerner):

(function() {    var skipButton = document.getElementsByClassName("skipControl playControls__icon sc-ir skipControl__next")[0];
    var skip = [];

    function repeat() {
        var posts = document.getElementsByClassName('soundList__item');
        for (var i = 0; i < posts.length; i++) {
            if (posts[i].innerHTML.indexOf('Reposted') !== -1) {
                skip.push(posts[i].getElementsByClassName("soundTitle__title")[0].getElementsByTagName('span')[0].innerHTML);
                posts[i].parentNode.removeChild(posts[i]);
            }
        }
        var check = document.getElementsByClassName("playbackSoundBadge__titleContextContainer")[0];
        console.log(skip);
        if (check !== undefined) {
            var curSongHolder = check.getElementsByTagName('a')[1];
            for (var i = 0; i < skip.length; i++) {
                if (skip[i] === curSongHolder.innerHTML) {
                    console.log('gah');
                    skipButton.click();
                }
            }
        }
        console.log('run');
        setTimeout(repeat, 300);
    }
    repeat();
})();
Add a comment...

Post has attachment
Add a comment...

Post has attachment
Add a comment...

Post has attachment
Add a comment...

Post has attachment

Post has attachment
Add a comment...

Post has attachment

Post has attachment
Add a comment...
Wait while more posts are being loaded