Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'm not sure if this is the site to be asking for help finding extensions that do end user tasks such as this so I'll answer your question explicitly as well as explain how to do it programatically.</p> <p>The short answer is, yes one extension that will allow you to do this can be found here: <a href="https://chrome.google.com/webstore/detail/tab-title-search/fbgmfenfjogaoibifpgolehkibnfalgn" rel="nofollow">Tab Title Search</a></p> <p>The long answer is, in order to find all tabs with a certain name, you need to use the <a href="http://developer.chrome.com/extensions/tabs.html" rel="nofollow">chrome tabs API</a></p> <p>I whipped up a short piece of javascript to demonstrate how to have an extension that will create a popup with a search box that you type the desired tab title into. If the tab is found, it will be listed below the search box. If you click on the listing, you will switch to the tab.</p> <pre class="lang-javascript prettyprint-override"><code>// Function to search for tabs function searchtabs() { chrome.tabs.query({ title: "" }, // Callback to process results function(results) { // Place holder for the tab to process var foundTab = null; // Text to match against var queryText = document.getElementById("textToSearchInput").value; // Div to place divs of matched title in var queryAnswerDiv = document.getElementById("foundTabsDiv"); // Clear the current children while (queryAnswerDiv.hasChildNodes()) { queryAnswerDiv.removeChild(queryAnswerDiv.lastChild); } // Iterate over all the results for (var i = 0; i &lt; results.length; i++) { // Keep track of the tab that is currently being processed foundTab = results[i]; // If we have a title containing our string... if (foundTab.title.indexOf(queryText) &gt; -1) { // Create a new div var tabDiv = document.createElement("div"); // Set its content to the tabs title tabDiv.innerHTML = foundTab.title; // Let it know what the tabs id is tabDiv.tabToSwitchTo = results[i].id; // Allow for users to click on the representing div to switch to it tabDiv.onclick = function() { // Make the tab selected chrome.tabs.update(this.tabToSwitchTo, { selected: true }); }; // Append the created div to our answer div queryAnswerDiv.appendChild(tabDiv); } } }); } document.addEventListener('DOMContentLoaded', function() { var inputField = document.getElementById("textToSearchInput"); inputField.focus(); inputField.onkeydown = searchtabs; }); </code></pre> <p>Also, if this is more what you are looking for rather than the extension that I linked, let me know and I can pack this extension.</p> <p><strong>Edit:</strong> Fixed an error in using the wrong ID to get the input field as well as not getting the first letter of the title (use <code>indexOf() &gt; -1</code>)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload