Skip to content

Instantly share code, notes, and snippets.

@martinlindenberg
Created September 12, 2017 11:50
Show Gist options
  • Save martinlindenberg/8c054814f018e7abe7b2bcb020f18271 to your computer and use it in GitHub Desktop.
Save martinlindenberg/8c054814f018e7abe7b2bcb020f18271 to your computer and use it in GitHub Desktop.
kill autocomplete in kibana
// ==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