Last active
September 7, 2016 04:19
-
-
Save aoshiman/d6330fb7174ba6d498e3a9ac02e39153 to your computer and use it in GitHub Desktop.
Embed Code Convert Bookmarklet for Flickr
This file contains 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
javascript:(function(){var e,text,textA,textB,textC; e=document.getElementsByClassName('embed-code-text-field');text=e[0].value;textA=text.replace("data-flickr-embed=\"true\"%20%20",'');textB=textA.replace("\<script%20async%20src=\"\/\/embedr.flickr.com\/assets\/client-code.js\"%20charset=\"utf-8\"\>\<\/script\>",'');textC=textB.replace("\>\<\/a\>","%20class=\"img-responsive\"\>\<\/a\>");e[0].value=textC;console.log(textC);})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment