谷歌搜索结果小部件
我正在寻找一个用于谷歌搜索的小部件,我可以在其中设置搜索查询并避免用户更改它。我更希望用户根本看不到搜索查询。所以他只能看到搜索结果。另外我想将搜索类型设置为“新闻”。
I'm looking for a widget for google search where I can set the search query and avoid user to change it. Even more I wuould like user can't see the search query at all. So he can see only the results of the search. Also I whant to set search type as 'News'.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的问题有点不完整:我不确定谁是您的用户,只是访问您网站的人或您计算机上的人?根据用户身份,您可以:
如果您的用户是网站访问者,您可以在 iframe 中轻松执行上述第 1 点,也许还可以通过在 google iframe 之外的页面上运行的一些脚本来实现第 3 点;据我所知,第 4 点对于网站用户来说是不可能实现的。但是,您可以通过在搜索词中添加 -com(或在搜索 i has my tail lolcats 时分别在 url q=lolcats+-com 中)来删除 Google 搜索上的大多数垃圾邮件和博客。
如果您需要,我可以在这里发布一个完整的用户脚本,阻止谷歌网站上的某些功能[在我的 Opera 浏览器中],以便您在编辑您的脚本时有一些参考。
Your question is kind of incomplete: I am not sure who is your user, just someone who accessess your website or someone on your computer? Depending on who the user is, you can:
If your user is a website visitor, you can easily do the above point #1 in an iframe, perhaps also implementing point #3 with some script operating on the page outside of the google iframe; point 4 is impossible to implement, as far as I know, for a website user. However you can delete most spam and blogs on Google search by adding -com (or in url q=lolcats+-com respectively when searching for i has my tail lolcats) to your search terms.
If you need, I can post here a complete user script blocking certain features on google website [in my Opera browser], so that you have some reference for editing yours.