userscript that enables scrubbing through long tracks on soundcloud without having to be logged in
0
soundcloud-scrub-fix.js
19 lines 697 B view raw
1// ==UserScript== 2// @name Soundcloud scrub fix 3// @namespace https://coderobe.net/ 4// @version 0.1 5// @description enables scrubbing through long tracks on soundcloud without having to be logged in 6// @author Mara Broda (coderobe) 7// @match https://soundcloud.com/* 8// @icon https://www.google.com/s2/favicons?sz=64&domain=soundcloud.com 9// @grant none 10// ==/UserScript== 11// 12 13(function(){ 14 let[s,p,l,c]=["shouldBlockScrubbing",Function.prototype,"call"]; 15 c=p[l]; 16 p[l]=function(...a){ 17 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) 18 } 19}());