Last active
May 21, 2017 05:03
-
-
Save anoved/224bea9962a5dbd25498 to your computer and use it in GitHub Desktop.
Get SVG from Adobe Creative Cloud asset item page
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
(function(){ | |
var a = document.getElementsByClassName("item")[0]; | |
var s = a.style.backgroundImage; | |
var u = s.slice(5,-2); | |
var u_prefix = u.substring( 0, u.indexOf(":rendition") ); | |
var u_suffix = u.substring( u.indexOf("api_key") ); | |
var final = u_prefix + "?" + u_suffix; | |
window.location = final; | |
})(); | |
/* | |
javascript:(function(){var a = document.getElementsByClassName("item")[0];var s = a.style.backgroundImage;var u = s.slice(5,-2);var u_prefix = u.substring( 0, u.indexOf(":rendition") );var u_suffix = u.substring( u.indexOf("api_key") );var final = u_prefix + "?" + u_suffix;window.location = final;})(); | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I wish this still worked. Doesn't seem to any more.