My favorites | Sign in
Project Home Wiki Issues
READ-ONLY: This project has been archived. For more information see this post.
Search
for
OAuthCallback  
oauth callback url获取认证码实现自动认证
Updated Dec 20, 2010 by fengmk2
// 监控
chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab){
	if(tab.url.indexOf(OAUTH_CALLBACK_URL) == 0) {
		var d = decodeForm(tab.url);
		var pin = d.oauth_verifier || 'impin';
		$('#account-pin').val(pin);
		$('#save-account').click();
		chrome.windows.remove(tab.windowId);
	}
});
Powered by Google Project Hosting