Created
October 28, 2011 08:05
-
-
Save clvrobj/1321841 to your computer and use it in GitHub Desktop.
douban.com dotjs plugin
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
// 2012 new version | |
// 点击logo到广播 | |
$('.site-nav-logo a').attr('href', 'http://www.douban.com/update/'); | |
// 按"."刷新广播,与twitter快捷键一致 | |
$('body').keypress( | |
function (e) { | |
var code = e.charCode ? e.charCode : e.keyCode; | |
if (code === 46 && !$(':focus').is(':input')) { | |
// '.' to reload | |
location.reload(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sudo sh -c "curl https://gist.github.com/raw/1321841/ac515be71db79e2fb5bda78eac9ef834e4183609/douban.com.js >> ~/.js/douban.com.js"