Skip to content

Commit

Permalink
3.2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
lkytal committed Jul 17, 2016
1 parent 9ee6001 commit 9ee2132
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 24 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.2.8 : Fix multi tabs
* 3.2.7 : Update to jQuery 3.1.0
* 3.2.6 : Auto copying in chrome
* 3.2.5 : Translation fixup for large texts
* 3.2.4 : Multiline fixup
Expand Down
2 changes: 1 addition & 1 deletion meta/popsearch.meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,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.2.8
// @version 3.2.9
// @icon http://lkytal.qiniudn.com/ic.ico
// @grant GM_xmlhttpRequest
// @grant GM_addStyle
Expand Down
4 changes: 2 additions & 2 deletions meta/tieba_enhance.meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
// @description 贴吧小尾巴, 坟贴提醒, 去除跳转等功能
// @include http://tieba.baidu.com/*
// @include https://tieba.baidu.com/*
// @version 6.1.3
// @version 6.1.4
// @author lkytal
// @require http://libs.baidu.com/jquery/2.1.3/jquery.min.js
// @require http://cdn.bootcss.com/jquery/2.2.4/jquery.min.js
// @icon http://lkytal.qiniudn.com/ic.ico
// @noframes
// @grant unsafeWindow
Expand Down
28 changes: 13 additions & 15 deletions popsearch.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,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.2.8
// @version 3.2.9
// @icon http://lkytal.qiniudn.com/ic.ico
// @grant GM_xmlhttpRequest
// @grant GM_addStyle
Expand Down Expand Up @@ -42,7 +42,7 @@ popData = {
log = function(msg) {
var text;
popData.count += 1;
text = "hit " + popData.count + " : " + msg;
text = "MsgId " + popData.count + " : " + msg;
return console.log(text);
};

Expand Down Expand Up @@ -130,19 +130,17 @@ Init = function() {
return popData.mouseIn = 0;
});
$('#popupwapper').append("<a id='gtrans' href=''><img title='translate' src='" + popData.tico + "' /></a> <a id='openurl' href=''><img title='Open Url' id='iconie' src='" + popData.ieIcon + "'/></a> <a id='sSite' href=''><img title='In Site Search' src='" + popData.inSite + "' /></a> <a id='sbaidu' href=''><img title='Baidu' src='" + popData.baiduico + "' /></a> <a id='sbing' href=''><img title='Bing' src='" + popData.bingico + "' /></a> <a id='sgoogle' href=''><img title='Google' id='gicon' src='" + popData.gicon + "' /></a>");
$('#sgoogle, #sbing, #sbaidu, #openurl').on("click", (function(_this) {
return function(e) {
e.preventDefault();
$('#ShowUpBox').hide();
if ((typeof GM_download !== "undefined" && GM_download !== null) || navigator.userAgent.indexOf("Chrome") > -1) {
return GM_openInTab($(_this).attr('href'), {
active: GetOpt("Focus_st") === 1
});
} else {
return GM_openInTab($(_this).attr('href'), !GetOpt("Focus_st"));
}
};
})(this));
$('#sgoogle, #sbing, #sbaidu, #openurl').on("click", function(e) {
e.preventDefault();
$('#ShowUpBox').hide();
if ((typeof GM_download !== "undefined" && GM_download !== null) || navigator.userAgent.indexOf("Chrome") > -1) {
return GM_openInTab($(this).attr('href'), {
active: GetOpt("Focus_st") === 1
});
} else {
return GM_openInTab($(this).attr('href'), !GetOpt("Focus_st"));
}
});
UIList = {
'#openurl': 'Open_st',
'#sSite': 'Site_st',
Expand Down
Loading

0 comments on commit 9ee2132

Please sign in to comment.