function opennewtab(a,b){chrome.tabs.create({url:a},function(a){b(a.id)})}function removetab(a,b){chrome.tab.remove(a,b)}function reloadtab(a,b){chrome.tab.reload(a,b)}function gettab(a,b){chrome.tabs.get(a,b)}function querytab(a,b){chrome.tabs.query(a,b)}function getalltabs(a){chrome.tabs.getAllInWindow(a)}function updatetab(a,b,c){chrome.tabs.update(a,b,c)}function calltab(a,b,c){chrome.tabs.get(a,function(d){null==d?c(""):(chrome.tabs.executeScript(a,{code:b,allFrames:!0}),c(a))})}
function ontabupdated(a){chrome.tabs.onUpdated.addListener(a)}function ontabrequested(a){chrome.extension.onRequest.addListener(a)}function getversionname(){return""};
