chrome.tabs.getAllInWindow(undefined, function (tabs) {
for (i = 0, tab; tab = tabs[i]; i += 1) {
if (tab.url && tab.url === "https://github.com/AllMangasReader-dev/AMR/commits/develop") {
chrome.tabs.update(tab.id, {
selected : true
});
return;
}
}
chrome.tabs.create({