Created
November 18, 2014 07:19
-
-
Save dubeme/7f672067f0aa599ad2a2 to your computer and use it in GitHub Desktop.
Script to delete all 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 | |
// Visit -> [chrome://history-frame/] to clear all history | |
// Visit -> [chrome://history-frame/#q=SEARCH_TERM] to clear all history with SEARCH_TERM | |
function remove() { | |
var inputs = document.getElementsByTagName('input'); | |
try { | |
for (var i = 0; i < inputs.length; ++i) { | |
if (inputs[i].type == "checkbox"){ | |
inputs[i].checked = true; | |
} | |
} | |
document.getElementById("remove-selected").removeAttribute("disabled"); | |
document.getElementById("remove-selected").click(); | |
document.getElementById("alertOverlayCancel").click(); | |
setTimeout(remove,10); | |
} catch(ex) { | |
console.log(ex.message); | |
} | |
} | |
remove(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment