Created
February 12, 2016 17:11
-
-
Save rinsuki/8fe676eba3a8877fe3ad to your computer and use it in GitHub Desktop.
YQLを呼び出すやつ
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
/* this code is WTFPL */ | |
function yql(q,c){ | |
var n='yql_'+Date.now(); | |
(new Function('window.'+n+'=arguments[0];'))(c); | |
var s=document.createElement('script'); | |
s.src="http://query.yahooapis.com/v1/public/yql?callback=window."+n+"&q="+encodeURIComponent(q); | |
document.body.appendChild(s); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment