Skip to content

Instantly share code, notes, and snippets.

@bugcloud
Created June 12, 2012 04:35
Show Gist options
  • Save bugcloud/2915030 to your computer and use it in GitHub Desktop.
Save bugcloud/2915030 to your computer and use it in GitHub Desktop.
http://www.summersonic.com/2012/lineup/ のアーティスト名のリンク先をYouTube検索に置換するブックマークレット
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))}});});
@bugcloud
Copy link
Author

予習してください。

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