How can I delete all web history that matches a specific query in Google Chrome

In Google Chrome, is it possible to delete all search history that matches a specific query (for example, en.wikipedia.org)?


Solution 1:

Update Jan 2019

Now Chrome supports the keyboard shortcut CtrlA or A


Original answer

You can take the hacker shortcut injecting JavaScript code.

Step 1 Since Chrome history is queried inside a iFrame, we have to visit: chrome://history-frame/ (copy and paste URL)

Step 2 Do the search query.

Step 3 Open the Chrome console(F12 or CtrlShifti or i) and execute:

var inputs = document.getElementsByTagName('input');
for (var i = 0; i < inputs.length; ++i) {
  if (inputs[i].type == "checkbox"){
    inputs[i].checked = true;
  }
}
document.getElementById("remove-selected").disabled = false

Step 4 Hit the 'Remove selected items' button.

Actually this deletes the elements in the current page. I might try to extend it, but it's a good starting point.

Solution 2:

That’s simple & easy.

Search for what you want to remove. Select the first one. Now scroll to the latest result. Press shift & choose the latest one. Now all matches are selected and you can remove them together.


In some cases, removing an address from history results is not enough for stoping that address from appearing in url bar auto suggestions.

In that case visit here : https://superuser.com/a/273280/121184