Skip to content

Instantly share code, notes, and snippets.

@usrme
Last active April 22, 2020 08:29
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 usrme/c91b636f3c66e87febe80eab206864fc to your computer and use it in GitHub Desktop.
Save usrme/c91b636f3c66e87febe80eab206864fc to your computer and use it in GitHub Desktop.
Grab embedded MixStep URL location from playback widget; won't work with multiple iFrames
// ==UserScript==
// @name CLLV Download Finder
// @include http*://*cllv.in/music*
// @namespace https://github.com/usrme
// @description Grab embedded MixStep URL location from playback widget; won't work with multiple iFrames
// @version 1
// @grant none
// ==/UserScript==
var iframe_uri = document.getElementsByTagName('iframe')[0].src,
arr = iframe_uri.split('/'),
id = arr.slice(-1)[0],
uri = "https://mixstep.co/" + id;
console.log(uri);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment