Created
January 30, 2017 16:34
-
-
Save WilliamQLiu/56c9259d61c698cf9ffe845239af1e8d to your computer and use it in GitHub Desktop.
Remove Kibana Auto Complete Bar
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
// Run in console | |
// ==UserScript== | |
// @name Kibana autocomplete killer | |
// @namespace kibana | |
// @grant none | |
// @include https://<your kibana site>/* | |
// ==/UserScript== | |
function main() { | |
document.addEventListener('click', function() { | |
var jq = window.jQuery | |
var searchbox = jq('.input-group input') | |
searchbox.unbind("change"); | |
searchbox.unbind("focus"); | |
searchbox.unbind("keydown"); | |
console.log("removed"); | |
}); | |
}; | |
var script = document.createElement("script"); | |
script.textContent = "(" + main.toString() + ")();"; | |
document.body.appendChild(script); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment