GithubHelp home page GithubHelp logo

goobaisuggestion's Introduction

goobaiSuggestion

###使用jsonp,基于baidusug的谷歌百度搜索综合提示+自动完成工具
###使用方法: 添加<script type="text/javascript" src="goobaisuggestion.min.js"></script>到body最后,在input标签加入goobaisug="2" ###
说明:
1.系统会自动判断浏览器语言,如果为中文,先初始化百度,百度放在前面。否则先初始化谷歌,谷歌放在前面
2.可以通过键盘或者鼠标选择是结果提示引擎是谷歌还是百度
3.百度自动完成搜索提示jsonp请求格式为 "http://unionsug.baidu.com/su?wd=关键词&p=3&cb=回调函数" ,不支持https,若源网页为https,请求会被拦截;
4.Google自动完成搜索jsonp请求格式为"https://suggestqueries.google.com/complete/search?q=关键词&jsonp=回调函数&client=youtube" 注意必须加上client=youtube,这是为youtube准备的,但提示是网页提示,并非视频提示。请求发自本地,故需要本地能正常访问Google,才能使用本插件
###
Todo Lists:
1.服务器反代百度返回结果页面,或通过其他方法转发请求百度返回的结果。
2.对谷歌也进行类似处理,使其可以正常使用,并提供相关接口修改请求地址。
###在线Demo

截图

image image

goobaisuggestion's People

Contributors

zbydown avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.