Created
July 16, 2016 16:32
-
-
Save thewisenerd/7849efca856c8336d7163defa922847e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name noPreviews | |
// @namespace http://github.com/thewisenerd | |
// @version 0.1 | |
// @description < < | |
// @author thewisenerd | |
// @match https://soundcloud.com/stream | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
function noPreviews() { | |
var x = document.querySelectorAll('.soundList__item'); | |
for (var s of x) { | |
if (s.innerHTML.indexOf('sc-snippet-badge-grey">Preview') != -1) { | |
s.remove(); | |
} | |
} | |
} | |
window.addEventListener("DOMNodeInserted",noPreviews, false); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment