Skip to content

Instantly share code, notes, and snippets.

@sugyan
Last active April 1, 2016 05:16
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sugyan/3977687 to your computer and use it in GitHub Desktop.
Save sugyan/3977687 to your computer and use it in GitHub Desktop.

アメブロ画像保存用ブックマークレット

画像表示の方法が変わったため画像を保存しにくくなったらしい、ということで。

以下をブラウザのブックマークとして保存し、各画像拡大ページで使うと、オリジナルの画像を別タブや別ウィンドウで開けるはずです。

あとは煮るなり焼くなり保存するなり好きにしてください。

PC

javascript:(function(){window.open(document.getElementById('imgEncircle').firstChild.getAttribute('src')%2C'_blank')}())

Smartphone

javascript:(function()%7Bvar%20a%3Ddocument.getElementById('imgList').style%5B'-webkit-transform'%5D.match(%2F(%5Cd%2B)%25%2F)%5B1%5D%3Bwindow.open(Array.prototype.slice.call(document.getElementsByClassName('imgInner')).filter(function(e)%7Breturn%20a%3D%3D%3De.style%5B'-webkit-transform'%5D.match(%2F(%5Cd%2B)%25%2F)%5B1%5D%7D)%5B0%5D.children%5B0%5D.children%5B0%5D.getAttribute('src')%2C'_blank').focus()%7D())

ブックマークレットについて

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