This commit is contained in:
Mirco Wittrien 2019-11-11 20:33:29 +01:00
parent d0dfbbd38e
commit a2f2a1b27f
2 changed files with 6 additions and 6 deletions

View File

@ -3,7 +3,7 @@
class GoogleSearchReplace { class GoogleSearchReplace {
getName () {return "GoogleSearchReplace";} getName () {return "GoogleSearchReplace";}
getVersion () {return "1.2.0";} getVersion () {return "1.2.1";}
getAuthor () {return "DevilBro";} getAuthor () {return "DevilBro";}
@ -122,8 +122,8 @@ class GoogleSearchReplace {
for (let key in engines) if (engines[key]) items.push(BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ContextMenuItem, { for (let key in engines) if (engines[key]) items.push(BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ContextMenuItem, {
label: this.defaults.engines[key].name, label: this.defaults.engines[key].name,
danger: key == "_all", danger: key == "_all",
action: e => { action: event => {
if (!e.shiftKey) BDFDB.ContextMenuUtils.close(e.instance); if (!event.shiftKey) BDFDB.ContextMenuUtils.close(e.instance);
if (key == "_all") { if (key == "_all") {
for (let key2 in engines) if (key2 != "_all" && engines[key2]) window.open(this.defaults.engines[key2].url.replace(this.textUrlReplaceString, encodeURIComponent(text)), "_blank"); for (let key2 in engines) if (key2 != "_all" && engines[key2]) window.open(this.defaults.engines[key2].url.replace(this.textUrlReplaceString, encodeURIComponent(text)), "_blank");
} }

View File

@ -3,7 +3,7 @@
class ReverseImageSearch { class ReverseImageSearch {
getName () {return "ReverseImageSearch";} getName () {return "ReverseImageSearch";}
getVersion () {return "3.4.7";} getVersion () {return "3.4.8";}
getAuthor () {return "DevilBro";} getAuthor () {return "DevilBro";}
@ -153,8 +153,8 @@ class ReverseImageSearch {
for (let key in engines) if (engines[key]) items.push(BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ContextMenuItem, { for (let key in engines) if (engines[key]) items.push(BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ContextMenuItem, {
label: this.defaults.engines[key].name, label: this.defaults.engines[key].name,
danger: key == "_all", danger: key == "_all",
action: e => { action: event => {
if (!e.shiftKey) BDFDB.ContextMenuUtils.close(e.instance); if (!event.shiftKey) BDFDB.ContextMenuUtils.close(e.instance);
if (key == "_all") { if (key == "_all") {
for (let key2 in engines) if (key2 != "_all" && engines[key2]) window.open(this.defaults.engines[key2].url.replace(this.imgUrlReplaceString, encodeURIComponent(url)), "_blank"); for (let key2 in engines) if (key2 != "_all" && engines[key2]) window.open(this.defaults.engines[key2].url.replace(this.imgUrlReplaceString, encodeURIComponent(url)), "_blank");
} }