// ==UserScript==
// @name 百度云插件+APIKey
// @namespace
// @version 4.2.4 beta
// @description 在百度云网盘的页面添加一个搜索框,调用谷歌的搜索API搜索所有公开分享文件// To add a search frame that calls the google cse api for searching some public shared files in BaiduYun cloud netdisk.
// @require http://code.jquery.com/jquery-2.1.1.min.js
// @description For more imformation,please email me at wang0xinzhe@gmail.com.
// @include http://pan.baidu.com/disk/*
// @include https://pan.baidu.com/disk/*
// @include https://yun.baidu.com/#from=share_yun_logo/
// @include http://yun.baidu.com/#from=share_yun_logo/
// @grant GM_xmlhttpRequest
// @run-at document-end
// @copyright 2014,04,20 __By Wang Hsin-che
// @downloadURL none
// ==/UserScript==
var url='https://www.googleapis.com/customsearch/v1element?key=AIzaSyCVAXiUzRYsML1Pv6RwSG1gunmMikTzQqY&rsz=filtered_cse&num=10&hl=en&prettyPrint=true&source=gcsc&gss=.com&sig=ee93f9aae9c9e9dba5eea831d506e69a&cx=018177143380893153305:yk0qpgydx_e&q=';//&q=windows&start=0';
var showList='';
var totalResults=0;
var frontIndex=0;
var pageIndex=0;
var tempNode;
//根据屏幕设置div的大小位置
var myDivHeight=window.innerHeight/3*2;
var myDivWidth=window.innerWidth/2;
var myDivLeft=-window.innerWidth/6;
var myDivTop=window.innerHeight/8;
//搜索框的html
var html_1='