<commit_before>var extension_url = chrome.extension.getURL("markdown-editor/index.html");

chrome.tabs.onCreated.addListener(function(newTab) {
  console.log(newTab)
  if (newTab.url === "chrome://newtab/"  // chrome
      || newTab.url === "about:newtab") { // firefox
    chrome.tabs.update(newTab.id, {url: extension_url});
  }
});

chrome.browserAction.onClicked.addListener(function() {
  console.log("browserAction")
  chrome.tabs.create({url: extension_url});
});<commit_msg>remove new tab listener<commit_after>var extension_url = chrome.extension.getURL("markdown-editor/index.html");

// chrome.tabs.onCreated.addListener(function(newTab) {
//   console.log(newTab)
//   if (newTab.url === "chrome://newtab/"  // chrome
//       || newTab.url === "about:newtab") { // firefox
//     chrome.tabs.update(newTab.id, {url: extension_url});
//   }
// });

chrome.browserAction.onClicked.addListener(function() {
  chrome.tabs.create({url: extension_url});
});
{'fraction_non_alphanumeric': 0.18983402489626555, 'fraction_numerical': 0.0, 'mean_word_length': 4.331491712707182, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5343454', 'n_tokens_mistral': 329, 'n_tokens_neox': 315, 'n_words': 40}