阅读:2625回复:6
如何自动清除搜索栏的文字?
如何自动清除搜索栏的文字?
|
|
1楼#
发布于:2016-01-22 16:09
这个是我一直在用的UC脚本
你可以试试 // ==UserScript== // @name Clear Search Term // @namespace http://www.xuldev.org/ // @description Clears the search term and reset the engine after searching. // @include main // @author Gomita // @version 1.0.20080201 // @homepage http://www.xuldev.org/misc/ucjs.php // ==/UserScript== (function() { var searchbar = document.getElementById("searchbar"); searchbar._doSearchInternal = searchbar.doSearch; searchbar.doSearch = function(aData, aInNewTab) { this._doSearchInternal(aData, aInNewTab); // clear the search term this.value = ""; // reset the search engine this.currentEngine = this.engines ? this.engines[0] : this._engines[0]; }; }()); |
|
2楼#
发布于:2016-01-22 16:19
|
|
3楼#
发布于:2016-01-22 19:20
文科:https://addons.mozilla.org/EN-us/firefox/addon/clear-the-search-bar/从两个扩展的评论上来说,对于mac 版firefox不能用 |
|
4楼#
发布于:2016-01-22 22:47
Classic Theme Restorer有这个功能,不过需要用旧版搜索栏
|
|
5楼#
发布于:2016-01-23 07:56
哇,太感谢楼上诸位了,问题完美解决
![]() |
|
6楼#
发布于:2016-02-05 08:44
还有这个需求啊?是怕别人看到自己搜什么?
|
|