Skip to content

Instantly share code, notes, and snippets.

@anoved
Last active May 21, 2017 05:03
Show Gist options
  • Save anoved/224bea9962a5dbd25498 to your computer and use it in GitHub Desktop.
Save anoved/224bea9962a5dbd25498 to your computer and use it in GitHub Desktop.
Get SVG from Adobe Creative Cloud asset item page
(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;})();
*/
@anoved
Copy link
Author

anoved commented Aug 14, 2015

Create a bookmark in your browser and paste the minified script (commented out above) in place of the URL. Visit a vector asset's item page and click the bookmarklet. The SVG file will load in place of the page.

@MikeiLL
Copy link

MikeiLL commented Mar 23, 2017

I wish this still worked. Doesn't seem to any more.

@MikeiLL
Copy link

MikeiLL commented May 21, 2017

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