-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest1
136 lines (134 loc) · 20.5 KB
/
test1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
// ==UserScript==
// @name 谷歌百度搜索(集合)
// @namespace http://www.findhao.net
// @author FindHao
// @version 1.1.5
// @description 分别在百度和google的搜索结果页面增加搜索跳转按钮。顺便推荐一波在线youtube视频下载的工具: https://www.findyoutube.net
// @icon https://resource01.ulifestyle.com.hk/res/v3/image/content/2130000/2132767/20180807_googlebaidu_03_1024.jpg
// @include https://www.google.com.hk/*
// @include http://www.google.com.hk/*
// @include https://ipv6.google.com.hk/*
// @include http://ipv6.google.com.hk/*
// @include http://www.google.com/*
// @include https://www.google.com/*
// @include http://ipv4.google.com/*
// @include https://ipv4.google.com/*
// @include http://ipv6.google.com/*
// @include https://ipv6.google.com/*
// @include http://www.baidu.com/*
// @include https://www.baidu.com/*
// @copyright 2018+, FindHao
// @grant none
// ==/UserScript==
if ("undefined" == typeof(jQuery)) {
loadJs("for_google", "https://code.jquery.com/jquery-2.2.4.min.js", callbackFunction);
} else {
$(document).ready(function() {
function baiduswitchgoogle() {
$('.s_btn_wr').replaceWith('<span class="bg s_btn_wr"><input type="image" id="su" src="data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4gsaBjEzoiyM1QAABrxJREFUaN7Vm39wXFUVxz/n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acSKXIl414B8AuUG4BID3ydAHTrjjwY9NhVOQib65iL5hYhcDDQiUo96pxCGUF4jJwfZEn8tlO+OzFV4shylFdGrefek/BCqLwDPEs3twmkbCeP+v8UeKLAXusZdAAAAAElFTkSuQmCC" style="height:35px;padding-right: 10px;padding-left: 10px;"></span>');
$('.s_btn_wr').after('<span class="bg s_btn_wr"><input type="image" id="ggyx" src="data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAABuwAAAbsBOuzj4gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAa3SURBVHja3Zt7bFNVHMfPYBNBJvKYPGKUEFhXNp7dbalbtGvvbTcCcw+mkQQ0RMFoAlkWxVd0JCKQsA3GgECGf4iZOhzQ9WHXDqaTBGIQRSegKKIEJAzZ2m5rV8aOv1PXrZtl632tt/3jmyZ93HO+n57z+/3OuecijDESU3doxaR2mqKdNPWuS6uqc+qUzaAWp466Dq8eUAfoCug0fMcI3zkIn21p16r0WK0eL3b/RLmoO4tKddHK7WDqAqgXhDkKAFF2l44q6aDVCyQNoD0zc7KTVhZDp8/xMDySvndqlc/joqKx0gEAw7Rdq9wM5u+IaHyoYMpQrwoxRbj/GKG4dlq1vm8u44hIq7wF4NeOOoBOg2ImNN4YMeNDBDHiC5dOOXVUAEBDK6DRVqmYD9INGI3ZogKAFLVNgsaD5XYyqnnCAyhFY2CYHZC4+attWcpFwo8AjSYeAk2NlM1DFvrKpVFMEyUGQLD7XNL/vFa5DysUCaJkAVK+Sti8r12n3CBaHeDKWpbLs4wVNf+7tdRTolWCJJJCQy6BO/4bqB7+tR2QSl9watOVrRkZiTdWKibc0akWttFUAbz/BlkMwev54crhNu2TT4haCkMHTgho3EbMsl5QMdTTBFjwKIQFVi0BJupiiCw2hKnOlCddTHoG3w7CdZIhC+2HSP+O6KvBf3JUD0Pn/+Zp/lKbTpUl9jpeFAC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oJY4nmLSb5ObDGvJNCHpU2FaOQHeT5OZmVwwXQzBtAq+ezHUNVKNRdiw/zsu5m8UVbqTWB2TgyH8HCl3BYYgwNTKwVmHjGzM38ur8Gg4HZSEIfi+1AAEpP5kF86r6Awj6ntKOZ8URRjFySz6z6QKYWltCc7dfWsYAJ5PS0vxGF5nhedac8ZBY0elCmHBsTV4+d5fQqW86pHMh31cHtUWjYWVX7VUIcyvz8X0waZgALtDRXzeD0xApN4uVQgpZgPO/Li6A4b9VlEfmSHLX2jwtgQh3IIirnBUHpqS2wwzSYEjIfNHIFYl8Tomx/6HKA6Klpeh8esRHPatMovh2Yg+ODm7SfMgdKSEdGb0jDNXZSZm08IG/UOSeXSWlLWkU9DBs6IZNxnOkcWapkkTL+gxOaE1z0zLYURshRr/As9y2gs6Cf/42zILkx41T48Ha46DnjTfxOhgEfQWCVagr0E/9cUOD6gT9EeKhfkWjJrh9SMA90GKmTaQhZLY/fsXVyfSdyNkfiMAAAAASUVORK5CYII=" style="height:35px;padding-right: 10px;padding-left: 10px;" ></span>');
$('#ggyx').on({
click: function() {
window.open("https://www.google.com/search?q=" + encodeURIComponent($('#kw').val()));
return false;
}
});
}
if (window.location.search.lastIndexOf("wd=") > 0 || window.location.search.lastIndexOf("word=") > 0) {
baiduswitchgoogle();
}
//检测从baidu首页进入的搜索(补漏)
if (/^http(s)?:\/\/(www\.)?baidu\.com\/$/ig.test(window.location.href)) {
$("#kw").off('click').on({
keydown: function() {
if ($('#ggyx').length < 1 && encodeURIComponent($('#kw').val()).length > 0) {
baiduswitchgoogle();
}
}
}).on({
paste: function() {
if ($('#ggyx').length < 1) {
baiduswitchgoogle();
}
}
});
}
});
}
function callbackFunction() {
$(document).ready(function() {
function googleswitchbaidu() {
if ($('#sblsbb').length > 0) {
$('#sblsbb').after('<button class="Tg7LZd" id="bdyx" aria-label="百度 搜索" type="button"> <img class="lsb" src="data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/N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sIPkGm4xPVxTfDnVde1J7IY4ynYm1oDLsTOM/fNWJVZIT2E3LGHL/NOVrXgAdPRdjeetAW7CrJ41BPwe4XlUn8eSo+Ts1/+3SHd66jgTacSKXIl414B8AuUG4BID3ydAHTrjjwY9NhVOQib65iL5hYhcDDQiUo96pxCGUF4jJwfZEn8tlO+OzFV4shylFdGrefek/BCqLwDPEs3twmkbCeP+v8UeKLAXusZdAAAAAElFTkSuQmCC" /> </button>');
$('#bdyx').off('click').on({
click: function() {
window.open("https://www.baidu.com/s?wd=" + encodeURIComponent($('#lst-ib').val()));
return false;
}
});
} else if ($('._wtf').length > 0) {
$('._wtf').after('<button class="Tg7LZd" id="bdyx" aria-label="百度 搜索" type="button"> <img class="lsb" src="data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4gsaBjEzoiyM1QAABrxJREFUaN7Vm39wXFUVxz/nbd4mlk4lZUIdqQziWIqIDvYHaXbTEui0pRZ/jhXBURgZRxloscMM3U2jj2mzaVFgsFpsR2HqoIwtjFI6qR3/iGR3k1QiWIqdWmdQ0Fag1LRBNM3bfcc/kpHG7tu97+1uszn/ZGbffee+z3v3nvO9594I1bD7MpdSxwPAUiAP/JgTDQ475rtMstVV3OOG9AqU3cD0s35N0jQyC7jD2E+itwmxbkOYA7KXzpY9IFru40lFYRPZRVjaA9QXuKpAC53xgdIvrfczqPUY0Pju3fIIqdg95T6iVTFYZ3Aalj7hAzv+cuX2kn6SmdWo9fQEWADRtSQzd9QOsDtyJ3B58UYaLz5C0nMQHvd9LmEjTk9DDQCrAGsMGs4u/jSyFZhWpMX7cKPLJx+4vX8B8IGyYkZ7phlYVtqFd30NfGFvhWHDN4tc+5phnP1QLczhZsN2h4tMic8Z+rBrAXiu4VQ/UDgNDcwFZhr2NVQLwBcZtYp4ewu/iPzHAvT1h1oANlFsh9j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sAri+Riet6xQtK1sEc/UNqRXYFkHqwQLcAmW9ZxvEKtITcvE1qcbibBlPCIL1bccyGbsCzcaK72KAScztyA8BMw6/8tD+TPo/dixJ40WG2UBr++/jEj+0fFi2WTbUWAndt1PcZr/Xnng9swXgR3ADGrLRoAfYLv3FyrYhQBWIdn3MKJrqWnT3+FFV9J17ckyorQK7dlttQ8LIAuJ5J7GUSs8cLIvCXyDqWKqS3Aznw4HvD59OaLfYaqZym3hgC1rDWUeHpmckc31pYa1z4k3333aWrfpjAxcGgz4W33voeQRwho2WxuDATdEpp0nuVgly3vBgOv//Q6G24e1yWu/HgzYaRtB+ccUxf0rqeY3QgStEqdyajdM94dLS0r31OTVp8IBR+t2AcNTDPcV/nT8mXDATvMwyuappbLoYvfqfHgt/VbD90D7pghuN6nYT0wa+gPvmO/iRT8FvFjjsIPkGm4xPVxTfDnVde1J7IY4ynYm1oDLsTOM/fNWJVZIT2E3LGHL/NOVrXgAdPRdjeetAW7CrJ41BPwe4XlUn8eSo+Ts1/+3SHd66jgTacSKXIl414B8AuUG4BID3ydAHTrjjwY9NhVOQib65iL5hYhcDDQiUo96pxCGUF4jJwfZEn8tlO+OzFV4shylFdGrefek/BCqLwDPEs3twmkbCeP+v8UeKLAXusZdAAAAAElFTkSuQmCC" /> </button>');
$('#bdyx').off('click').on({
click: function() {
//window.open("https://www.baidu.com/s?wd=" + encodeURIComponent($('#lst-ib').val()));
return false;
}
});
} else if ($(".Tg7LZd").length > 0) {
$('.Tg7LZd').after('<button class="Tg7LZd" id="bdyx" aria-label="百度 搜索" type="button"> <img class="lsb" src="data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4gsaBjEzoiyM1QAABrxJREFUaN7Vm39wXFUVxz/nbd4mlk4lZUIdqQziWIqIDvYHaXbTEui0pRZ/jhXBURgZRxloscMM3U2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CGUF4jJwfZEn8tlO+OzFV4shylFdGrefek/BCqLwDPEs3twmkbCeP+v8UeKLAXusZdAAAAAElFTkSuQmCC" /> </button>');
$('#bdyx').off('click').on({
click: function() {
window.open("https://www.baidu.com/s?wd=" + encodeURIComponent($(".gLFyf")[0].value));
return false;
}
});
} else {
$('.sbico').after('<button class="Tg7LZd" id="bdyx" aria-label="百度 搜索" type="button"> <img class="lsb" src="data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4gsaBjEzoiyM1QAABrxJREFUaN7Vm39wXFUVxz/nbd4mlk4lZUIdqQziWIqIDvYHaXbTEui0pRZ/jhXBURgZRxloscMM3U2jj2mzaVFgsFpsR2HqoIwtjFI6qR3/iGR3k1QiWIqdWmdQ0Fag1LRBNM3bfcc/kpHG7tu97+1uszn/ZGbffee+z3v3nvO9594I1bD7MpdSxwPAUiAP/JgTDQ475rtMstVV3OOG9AqU3cD0s35N0jQyC7jD2E+itwmxbkOYA7KXzpY9IFru40lFYRPZRVjaA9QXuKpAC53xgdIvrfczqPUY0Pju3fIIqdg95T6iVTFYZ3Aalj7hAzv+cuX2kn6SmdWo9fQEWADRtSQzd9QOsDtyJ3B58UYaLz5C0nMQHvd9LmEjTk9DDQCrAGsMGs4u/jSyFZhWpMX7cKPLJx+4vX8B8IGyYkZ7phlYVtqFd30NfGFvhWHDN4tc+5phnP1QLczhZsN2h4tMic8Z+rBrAXiu4VQ/UDgNDcwFZhr2NVQLwBcZtYp4ewu/iPzHAvT1h1oANlFsh9jYerDwtJSZxj2p7K0F4DcN2jzoD6HDhv38llTs5VoAPlAiGfVz9PgT/kHee9Ggj1EsLVta+udF549R3FN3gd6I6lwseRXlV9juj3Da/jVRDvYtR7xf+3j6G5JfwqYlfymey7PPgq7yGwPA7XTGd1ZHWn5hVwR36BnQB4GliMxGiQHfxbVf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qWnT3+FFV9J17ckyorQK7dlttQ8LIAuJ5J7GUSs8cLIvCXyDqWKqS3Aznw4HvD59OaLfYaqZym3hgC1rDWUeHpmckc31pYa1z4k3333aWrfpjAxcGgz4W33voeQRwho2WxuDATdEpp0nuVgly3vBgOv//Q6G24e1yWu/HgzYaRtB+ccUxf0rqeY3QgStEqdyajdM94dLS0r31OTVp8IBR+t2AcNTDPcV/nT8mXDATvMwyuappbLoYvfqfHgt/VbD90D7pghuN6nYT0wa+gPvmO/iRT8FvFjjsIPkGm4xPVxTfDnVde1J7IY4ynYm1oDLsTOM/fNWJVZIT2E3LGHL/NOVrXgAdPRdjeetAW7CrJ41BPwe4XlUn8eSo+Ts1/+3SHd66jgTacSKXIl414B8AuUG4BID3ydAHTrjjwY9NhVOQib65iL5hYhcDDQiUo96pxCGUF4jJwfZEn8tlO+OzFV4shylFdGrefek/BCqLwDPEs3twmkbCeP+v8UeKLAXusZdAAAAAElFTkSuQmCC" /> </button>');
$('#bdyx').off('click').on({
click: function() {
window.open("https://www.baidu.com/s?wd=" + encodeURIComponent($('#lst-ib').val()));
return false;
}
});
}
}
if (window.location.hash.lastIndexOf("q=") > 0 || window.location.search.lastIndexOf("q=") > 0) {
googleswitchbaidu();
}
//检测Google的直接搜索(补漏)
if (/(www\.|ipv4\.)?google\.com/ig.test(window.location.href)) {
$("#lst-ib").off('click').on({
keydown: function() {
if ($('#bdyx').length < 1) {
googleswitchbaidu();
}
}
});
}
});
}
function loadJs(sid, jsurl, callback) {
var nodeHead = document.getElementsByTagName('head')[0];
var nodeScript = null;
if (document.getElementById(sid) === null) {
nodeScript = document.createElement('script');
nodeScript.setAttribute('type', 'text/javascript');
nodeScript.setAttribute('src', jsurl);
nodeScript.setAttribute('id', sid);
if (callback !== null) {
nodeScript.onload = nodeScript.onreadystatechange = function() {
if (nodeScript.ready) {
return false;
}
if (!nodeScript.readyState || nodeScript.readyState == "loaded" || nodeScript.readyState == 'complete') {
nodeScript.ready = true;
callback();
}
};
}
nodeHead.appendChild(nodeScript);
} else {
if (callback !== null) {
callback();
}
}