Skip to content

Instantly share code, notes, and snippets.

@hans2103
Last active June 29, 2017 07:02
Show Gist options
  • Save hans2103/fa0c07c104c9829d84697c4419337dae to your computer and use it in GitHub Desktop.
Save hans2103/fa0c07c104c9829d84697c4419337dae to your computer and use it in GitHub Desktop.
Clear out selective Google Chrome History
# https://superuser.com/questions/480646/how-can-i-delete-all-web-history-that-matches-a-specific-query-in-google-chrome
# 1. Since Chrome history is queried inside a iFrame, we have to visit: chrome://history-frame/ (copy and paste URL)
# 2. perform search query
# 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
# 4. Hit the 'Remove selected items' button.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment