Created
September 12, 2017 11:50
-
-
Save martinlindenberg/8c054814f018e7abe7b2bcb020f18271 to your computer and use it in GitHub Desktop.
kill autocomplete in kibana
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
// ==UserScript== | |
// @name Kibana autocomplete killer | |
// @namespace kibana | |
// @grant none | |
// @include https://logs.shop.legacy.home24.net/_plugin/kibana/* | |
// @include https://search-core-search-eesglts4q27vatpw62l25etg7i.eu-west-1.es.amazonaws.com/_plugin/kibana/* | |
// ==/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