Skip to content

Instantly share code, notes, and snippets.

@coderobe
Created March 23, 2024 20:20
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 coderobe/73ca39c1d19dc2cd491ccdf2647f0f57 to your computer and use it in GitHub Desktop.
Save coderobe/73ca39c1d19dc2cd491ccdf2647f0f57 to your computer and use it in GitHub Desktop.
enables scrubbing through long tracks on soundcloud without having to be logged in
// ==UserScript==
// @name Soundcloud scrub fix
// @namespace https://coderobe.net/
// @version 0.1
// @description enables scrubbing through long tracks on soundcloud without having to be logged in
// @author Mara Broda (coderobe)
// @match https://soundcloud.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=soundcloud.com
// @grant none
// ==/UserScript==
//
(function(){
let[s,p,l,c]=["shouldBlockScrubbing",Function.prototype,"call"];
c=p[l];
p[l]=function(...a){
return!{slice:1,get:1,includes:1}[this["name"]]&&(this+"").includes(s)&(this+"").length<1337?(p[l]=c).apply(e=>e.exports[s]=_=>!1,a):c.apply(this,a)
}
}());
@coderobe
Copy link
Author

this snippet is small enough to fit in a tweet btw
https://twitter.com/coderobe/status/1610688383868702723

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment