Skip to content

Commit

Permalink
ico fxied
Browse files Browse the repository at this point in the history
  • Loading branch information
huthvincent committed Feb 7, 2021
1 parent ed322be commit d42bbd8
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 18 deletions.
11 changes: 4 additions & 7 deletions discuz_in_tab.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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");
}
}
Binary file added icons/def.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion img.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion meta/discuz_in_tab.meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion meta/img.meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion meta/select.meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
27 changes: 21 additions & 6 deletions popsearch.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -149,7 +153,7 @@ popData = {
}, {
id: "userEngine_st",
text: "自定义引擎 / Enable Customize",
defaultValue: 0
defaultValue: 1
}],
userEngines: [],
defaultEngines: [{
Expand All @@ -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",
Expand Down Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion select.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d42bbd8

Please sign in to comment.