Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kyupark committed Sep 14, 2012
0 parents commit 641cb6b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Empty file added README.md
Empty file.
8 changes: 8 additions & 0 deletions lucky.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
$('a').each(function() {
var $a = $(this)
var $href = $a.attr('href')
if ($href == "http://youtube.com") {
var $text = String($a.text()).split(' ').join('+');
$(this).attr('href', "http://www.google.com/search?btnI&q=" + $text + "+site:" + $href);
}
});

0 comments on commit 641cb6b

Please sign in to comment.