Skip to content

Instantly share code, notes, and snippets.

@taizooo
Created December 6, 2010 00:32
Show Gist options
  • Save taizooo/729644 to your computer and use it in GitHub Desktop.
Save taizooo/729644 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name hatenaAutologin
// @namespace http://d.hatena.ne.jp/taizooo
// @include http*://*.hatena.ne.jp*
// ==/UserScript==
// ref http://gist.github.com/102494
var login = document.querySelector('table a[href*="login"]')
if(login)
location.href = login.href;
setTimeout(function(){
var signin = document.querySelector('#hatena-www-login .config-button input.submit')
if(signin) {
signin.click();
}
}, 100);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment