Last active
June 29, 2017 07:02
-
-
Save hans2103/fa0c07c104c9829d84697c4419337dae to your computer and use it in GitHub Desktop.
Clear out selective Google Chrome History
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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