Skip to content

Commit

Permalink
baidu utf8
Browse files Browse the repository at this point in the history
  • Loading branch information
lkytal committed Oct 12, 2016
1 parent a216c21 commit 2e58726
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ GM的"用户脚本设置"下的"Popup Search设置"打开选项选择需要的

Update Log:

* 3.3.0 : Position problem in chrome
* 3.2.9 : Update to jquery v3
* 3.2.8 : Fix multi tabs
* 3.2.7 : Update to jQuery 3.1.0
* 3.2.6 : Auto copying in chrome
Expand Down
3 changes: 1 addition & 2 deletions meta/popsearch.meta.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CoffeeScript 1.10.0
// ==UserScript==
// @name Popup Search
// @author lkytal
Expand All @@ -10,7 +9,7 @@
// @exclude http://acid3.acidtests.org/*
// @exclude http://www.acfun.tv/*
// @require http://cdn.bootcss.com/jquery/3.1.0/jquery.min.js
// @version 3.3.0
// @version 3.3.1
// @icon http://lkytal.qiniudn.com/ic.ico
// @grant GM_xmlhttpRequest
// @grant GM_addStyle
Expand Down
7 changes: 3 additions & 4 deletions popsearch.user.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CoffeeScript 1.10.0
// ==UserScript==
// @name Popup Search
// @author lkytal
Expand All @@ -10,7 +9,7 @@
// @exclude http://acid3.acidtests.org/*
// @exclude http://www.acfun.tv/*
// @require http://cdn.bootcss.com/jquery/3.1.0/jquery.min.js
// @version 3.3.0
// @version 3.3.1
// @icon http://lkytal.qiniudn.com/ic.ico
// @grant GM_xmlhttpRequest
// @grant GM_addStyle
Expand Down Expand Up @@ -268,7 +267,7 @@ InTextBox = function(selection) {
};

CopyText = function(seltxt) {
var e, error;
var e;
if (seltxt == null) {
seltxt = document.defaultView.getSelection().toString();
}
Expand Down Expand Up @@ -309,7 +308,7 @@ ShowBar = function(event) {
}
popData.text = encodeURIComponent(seltxt);
$('#Gspan').empty().hide();
$('#sbaidu').attr('href', "https://www.baidu.com/s?wd=" + popData.text);
$('#sbaidu').attr('href', "https://www.baidu.com/s?wd=" + popData.text + "&ie=utf-8");
$('#sbing').attr('href', "https://bing.com/search?q=" + popData.text + "&form=MOZSBR");
$('#sgoogle').attr('href', "https://www.google.com/search?newwindow=1&safe=off&q=" + popData.text);
$('#sSite').attr('href', "https://www.google.com/search?newwindow=1&safe=off&q=" + popData.text + "%20site:" + document.domain);
Expand Down
2 changes: 1 addition & 1 deletion tieba_enhance.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ open_setting_window = function() {
$("#tail_option_box").append("<div class=\"tail_option\">" + x + "</div>");
}
UpdateText = function() {
var e, error;
var e;
if ($("#tail_type_text")[0].innerHTML === "javascript") {
try {
$("#tail_data_show")[0].innerHTML = eval($("#tail_data")[0].value);
Expand Down

0 comments on commit 2e58726

Please sign in to comment.