Created
June 12, 2012 04:35
-
-
Save bugcloud/2915030 to your computer and use it in GitHub Desktop.
http://www.summersonic.com/2012/lineup/ のアーティスト名のリンク先をYouTube検索に置換するブックマークレット
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(e,a,g,h,f,c,b,d){if(!(f=e.jQuery)||g>f.fn.jquery||h(f)){c=a.createElement("script");c.type="text/javascript";c.src="http://ajax.googleapis.com/ajax/libs/jquery/"+g+"/jquery.min.js";c.onload=c.onreadystatechange=function(){if(!b&&(!(d=this.readyState)||d=="loaded"||d=="complete")){h((f=e.jQuery).noConflict(1),b=1);f(c).remove()}};a.documentElement.childNodes[0].appendChild(c)}})(window,document,"1.7",function($,L){$("#lineupList #listDate ul li").each(function(){var d=$(this).attr("class");if(d==""||d==null||d==undefined){var c=$(this).find("a:first");var b=c.find("img:first").attr("alt");c.attr("target","_blank").attr("href","http://www.youtube.com/results?search_query="+encodeURIComponent(b))}});}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
予習してください。