搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Want to disable search suggestions on Wikipedia, other sites

more options

Whenever I search Wikipedia for something (NOT using the search engine in the toolbar; I mean Wikipedia.org proper), if I type ANYTHING into the search bar, a drop down list of commonly-searched things beginning with that letter(s) appears. I wish to disable this "feature".

Whenever I search Wikipedia for something (NOT using the search engine in the toolbar; I mean Wikipedia.org proper), if I type ANYTHING into the search bar, a drop down list of commonly-searched things beginning with that letter(s) appears. I wish to disable this "feature".

所有回复 (1)

more options

I don't think there is a universal solution for this. Each site names its form elements and runs its autocomplete/autosuggest scripts differently.

For example, Wikipedia sets up a datalist element and then attaches a script to the input box that updates the list every time you type a character. You can rip out the list and then the script will quietly fail and nothing gets displayed. You can try that by pressing Ctrl+Shift+k to open the web console, paste the following (long) line of script next to the caret (>), press Enter, then close the web console again.*

var dl=document.getElementById("suggestions"); dl.parentNode.removeChild(dl);

But it can't easily be generalized to other sites that use different approaches...

* If you leave the console open, you can see Wikipedia sending your input to the server for suggestions as you type, and the error when the script tries to update the missing datalist.

由jscher2000 - Support Volunteer于修改