Fix bug by using chrome.tabs.onSelectionChanged.
rewrite THK.Nico javascript.