Last active
April 22, 2020 08:29
-
-
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
This file contains hidden or 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 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