From d42bbd8413d6740ed9e2e771c2f5ab6df8a711bb Mon Sep 17 00:00:00 2001 From: Lkytal Date: Sat, 6 Feb 2021 22:28:57 -0500 Subject: [PATCH] ico fxied --- discuz_in_tab.user.js | 11 ++++------- icons/def.ico | Bin 0 -> 2238 bytes img.user.js | 2 +- meta/discuz_in_tab.meta.js | 2 +- meta/img.meta.js | 2 +- meta/select.meta.js | 2 +- popsearch.user.js | 27 +++++++++++++++++++++------ select.user.js | 2 +- 8 files changed, 30 insertions(+), 18 deletions(-) create mode 100644 icons/def.ico 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 0000000000000000000000000000000000000000..47e3fa15c16187086967226ed131936bb4c0011f GIT binary patch literal 2238 zcmdUve^3-<9L68gm=i6JJBPMOlXEDzqJ}dnE{_o|Ejgox1twW#5DrVbuxKUGlY;Z2 zf(?sKEZeN8Q&Z21LQ6bT%j<`EW-8Q}WTjm{EbQl1{e5L^i0Vnm{LqIr zK;*R~j-Bkeh?8TN2KzE`By&t;;?_uEkLyTWPs}hwvY8=r9T(>=_FZWv$W)o?=6%S_ z$n@R3A2;vAnrnrWYk@u24*O&~9C;2n@*R+-+94K*5Q{}f{Ya3eOOSINkn==1*>jgr z%bjq|a=}$as>vJ~a*Z4E0yo?mb#5qpR)zcG(-;M)8Uh(jk^wKDL*;X*=>q(m`%?&i zq(C~!Aelg?Mi#Nr%M{?{^C%kWCV2T=3h{BSYCQ|*S)6B>;LBvMU(HZ6iPa2mmIW&D zGwbL10UMS35*TlWpXYUwAosB|7YI%wdAv{Vk)H%6Q}Z;nBA9PQpoH@RD?*cj5Od*t zYJm=+d_7f^~wJG$qQ1rE+7glj}}FBH*RN3D~n5+Zf< zs+|bcxZw7<(d}W+BN7QwMMC#tCwe_jbT_)tOTvvZ!cELI%ji`|3&*W)^pZ%U6Oks; z;zG35iD;V(kyaUzHaDWGjA*;|yL)+$UU(N%J=7-Bs6f$ZA}tDh{bL_|t)xvug}R)q zP!V9y-|i;?bhmlAE?G`g1(6kAqM*0khrV_%`c^84uJj_hjvjlFHSCkfIu(5#Dxw`e z#5Sl1tq&l)C5T9eAAK9hCQSqA+Y&%*vmdb?0YrCnBDRynV%qEff2f@7>vOVgRvU#c z$Ju3wPcRHreEfjBucv2l%s4VWVOYYjVev)>us1LN^N%gpUUTE1#NM29SR)H=!iM~t z4<0o7_+mplZ*xfj|O9sjgn}{ zUX?a(>=?exh#Nk9#CcksKV{05!%x?cksnHzj=lV9`a{LS%6hFT%L>IabwT1s%b$E< zwV(dEVoBvdpuVE$Z{N88&e^F~-Ai9rR92}~|0RkFwGs;j96tGYWa;|}^GXFPaYSs5cv?IJUa`fIR%&oe6)PAkMu*xZQlR@ literal 0 HcmV?d00001 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