diff --git a/discuz_in_tab.user.js b/discuz_in_tab.user.js index 28a99f9..01cf714 100644 --- a/discuz_in_tab.user.js +++ b/discuz_in_tab.user.js @@ -7,7 +7,7 @@ // @homepage https://lkytal.github.io/ // @homepageURL https://lkytal.github.io/GM // @license AGPL -// @icon http://lkytal.qiniudn.com/ic.ico +// @icon https://github.com/lkytal/GM/raw/master/icons/def.ico // @include http://*/forum-*-* // @include http://*/forum-*-*.html // @include http://*/showforum-*.html @@ -32,17 +32,14 @@ var x = document.getElementById("atarget"); -if (x) -{ +if (x) { //x.click(); unsafeWindow.setatarget(1); } -else -{ +else { var AFile = document.querySelectorAll('#threadlist tbody a, #threadslist tbody a'); - for (var i = AFile.length - 1; i > -1; i--) - { + for (var i = AFile.length - 1; i > -1; i--) { AFile[i].setAttribute("target", "_blank"); } } diff --git a/icons/def.ico b/icons/def.ico new file mode 100644 index 0000000..47e3fa1 Binary files /dev/null and b/icons/def.ico differ diff --git a/img.user.js b/img.user.js index 40dd469..15922e4 100644 --- a/img.user.js +++ b/img.user.js @@ -8,7 +8,7 @@ // @homepageURL https://lkytal.github.io/GM // @license AGPL // @include * -// @icon http://lkytal.qiniudn.com/ic.ico +// @icon https://github.com/lkytal/GM/raw/master/icons/def.ico // @grant GM_openInTab // @run-at document-end // @charset UTF-8 diff --git a/meta/discuz_in_tab.meta.js b/meta/discuz_in_tab.meta.js index 48dd647..04326e1 100644 --- a/meta/discuz_in_tab.meta.js +++ b/meta/discuz_in_tab.meta.js @@ -7,7 +7,7 @@ // @homepage https://lkytal.github.io/ // @homepageURL https://lkytal.github.io/GM // @license AGPL -// @icon http://lkytal.qiniudn.com/ic.ico +// @icon https://github.com/lkytal/GM/raw/master/icons/def.ico // @include http://*/forum-*-* // @include http://*/forum-*-*.html // @include http://*/showforum-*.html diff --git a/meta/img.meta.js b/meta/img.meta.js index ea17ca6..047e15b 100644 --- a/meta/img.meta.js +++ b/meta/img.meta.js @@ -8,7 +8,7 @@ // @homepageURL https://lkytal.github.io/GM // @license AGPL // @include * -// @icon http://lkytal.qiniudn.com/ic.ico +// @icon https://github.com/lkytal/GM/raw/master/icons/def.ico // @grant GM_openInTab // @run-at document-end // @charset UTF-8 diff --git a/meta/select.meta.js b/meta/select.meta.js index 79e2ac4..a7d5b52 100644 --- a/meta/select.meta.js +++ b/meta/select.meta.js @@ -4,7 +4,7 @@ // @namespace Lkytal // @homepage https://lkytal.github.io/ // @homepageURL https://lkytal.github.io/GM -// @icon http://lkytal.qiniudn.com/select.png +// @icon https://github.com/lkytal/GM/raw/master/icons/def.ico // @version 1.2.1 // @description Select texts insider links, support firefox and chrome // @license AGPL diff --git a/popsearch.user.js b/popsearch.user.js index d367f6f..0aa62e2 100644 --- a/popsearch.user.js +++ b/popsearch.user.js @@ -122,6 +122,10 @@ popData = { id: "Fade_st", text: "超时自动隐藏 / Hide after timeout", defaultValue: 1 + }, { + id: "Click_st", + text: "点击页面不隐藏 / Don't Hide on click", + defaultValue: 0 }, { id: "Tab_st", text: "新标签页打开 / Open in new tabs", @@ -149,7 +153,7 @@ popData = { }, { id: "userEngine_st", text: "自定义引擎 / Enable Customize", - defaultValue: 0 + defaultValue: 1 }], userEngines: [], defaultEngines: [{ @@ -168,6 +172,13 @@ popData = { }; popData.engines = [{ + id: "Setting_st", + title: "Open Setting", + description: "Popup search 选项 / Open Setting", + defaultState: 1, + src: popData.icons.settingIcon, + href: 'javascript:OpenSet();' +}, { id: "Open_st", title: "Open As Url", description: "选中文本视作链接打开 / Open selection as url", @@ -504,14 +515,18 @@ hideBar = function (time = 0) { }; $(document).on("mousedown", function (event) { - popData.mousedownEvent = event; - if (popData.bTrans === 1) { - PopupInit(); - } - return hideBar(); + return popData.mousedownEvent = event; }); +// PopupInit() if popData.bTrans == 1 +// hideBar() $(document).on("mouseup", function (event) { + if (popData.bTrans === 1) { + PopupInit(); + } + if (GetOpt('Click_st')) { + hideBar(); + } if (event.which !== 1) { return; } diff --git a/select.user.js b/select.user.js index f71fcf5..8681c14 100644 --- a/select.user.js +++ b/select.user.js @@ -4,7 +4,7 @@ // @namespace Lkytal // @homepage https://lkytal.github.io/ // @homepageURL https://lkytal.github.io/GM -// @icon http://lkytal.qiniudn.com/select.png +// @icon https://github.com/lkytal/GM/raw/master/icons/def.ico // @version 1.2.1 // @description Select texts insider links, support firefox and chrome // @license AGPL