Kill Typeahead Search

Removes drop down lists that try to second guess the user

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name        Kill Typeahead Search
// @namespace   https://greasyfork.org/en/scripts/373-kill-typeahead-search
// @description Removes drop down lists that try to second guess the user
// @include     *
// @version     3
// @grant       none
// ==/UserScript==

window.addEventListener('load', function () {
	var $ = unsafeWindow.jQuery;
	$('input[type=text]').unbind().attr('autocomplete', 'on');
	$('input[type=search]').unbind().attr('autocomplete', 'on');

	/* From https://en.wikipedia.org/wiki/MediaWiki:Gadget-disablesuggestions.js
	 * Exclude wikipedia.org locally if you use this gadget.
	 */
	if (mw) {
		mw.loader.using( 'mediawiki.searchSuggest', function () {
			$('#searchInput, #powerSearchText, #searchText, .mw-searchInput').off().attr('autocomplete', 'on');
			$('#simpleSearch #searchButton').attr( {'name': 'fulltext', 'value': 'Search' } );
		} );
	}
});