Created
January 23, 2014 05:52
-
-
Save s2kw/8573606 to your computer and use it in GitHub Desktop.
google drive に upload した image を right click -> open -> drive viewer で開き この bookmarklet を実行するだけで direct link uri が get できちゃいます。
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
javascript: | |
var reg = /^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/; | |
var m = location.href.match(reg); | |
var params = m[5].split("/"); | |
var id = params[3]; | |
window.alert("https://drive.google.com/uc?export=view&id=" + id); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment