Skip to content

Instantly share code, notes, and snippets.

@thewisenerd
Created July 16, 2016 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thewisenerd/7849efca856c8336d7163defa922847e to your computer and use it in GitHub Desktop.
Save thewisenerd/7849efca856c8336d7163defa922847e to your computer and use it in GitHub Desktop.
// ==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