Simple Gesture for Android 的评价
Simple Gesture for Android 作者: utubo
Firefox 用户 13933116 的评价
评分 5 / 5
来自 Firefox 用户 13933116,6 年前hello
This addon is very useful
I have an suggestion, is it possible to open and run javascript on a link for example :
SimpleGesture.openExe('google.com','javascript');
And if it's possible how much deep can it goes?
for example:
SimpleGesture.openExe('google.com',
'SimpleGesture.openExe("facebook.com","javascript")');
And there is a problem with simple gesture command it doesn't care about javascript delay like setTimeout or if or... for example:
setTimeout(SimpleGesture.doCommand('close'),5000); or SimpleGesture.doCommand('close');
both close current tab immediately
is this a limitation of addon or it's just a bug that happens for me
Thanks
________________________
Thanks for fast response and fast update your addon is awesome
SimpleGesture.open("google.com", {
code: 'alert("hello");'});
not working it just open new tab with this domain:
moz-extension://666e2979-c645-4046-9163-370bfaee0483/google.com
Thanks
__________________
It works like a charm
Thanks
___________________
Hi again
It's not working due to Mozilla's signature policies, are you going to sign the addon?
Thanks
This addon is very useful
I have an suggestion, is it possible to open and run javascript on a link for example :
SimpleGesture.openExe('google.com','javascript');
And if it's possible how much deep can it goes?
for example:
SimpleGesture.openExe('google.com',
'SimpleGesture.openExe("facebook.com","javascript")');
And there is a problem with simple gesture command it doesn't care about javascript delay like setTimeout or if or... for example:
setTimeout(SimpleGesture.doCommand('close'),5000); or SimpleGesture.doCommand('close');
both close current tab immediately
is this a limitation of addon or it's just a bug that happens for me
Thanks
________________________
Thanks for fast response and fast update your addon is awesome
SimpleGesture.open("google.com", {
code: 'alert("hello");'});
not working it just open new tab with this domain:
moz-extension://666e2979-c645-4046-9163-370bfaee0483/google.com
Thanks
__________________
It works like a charm
Thanks
___________________
Hi again
It's not working due to Mozilla's signature policies, are you going to sign the addon?
Thanks
开发者回应
发布于 6 年前> SimpleGesture.openExe
That's a good idea.
I will add SimpleGesture.open(url, options) in the next version. (This may take some time.)
for example
SimpleGesture.open('google.com', {
javascript: `alert('hello');`,
inNewTab: true, // default value is true
active: true // default value is true
});
> And if it's possible how much deep can it goes?
Sorry, this may not work in deep.
> setTimeout(SimpleGesture.doCommand('close'),5000);
Try this :)
setTimeout(() => { SimpleGesture.doCommand('close'); }, 5000);
Thanks
UPDATE 2018/12/04
I add a new API "SimpleGesture.open" in version 2.11.
(I changed the name of option from "javascript" to "code", like the "browser.tabs.executeScript" API.)
see
https://github.com/utubo/firefox-simple_gesture/wiki/SimpleGesture.open
Thank you for your suggestion
>SimpleGesture.open("google.com", { code: 'alert("hello");'});
Fix "google.com" to "https://www.google.com"
I thought about adding "https://" automatically, but I stopped.
That's a good idea.
I will add SimpleGesture.open(url, options) in the next version. (This may take some time.)
for example
SimpleGesture.open('google.com', {
javascript: `alert('hello');`,
inNewTab: true, // default value is true
active: true // default value is true
});
> And if it's possible how much deep can it goes?
Sorry, this may not work in deep.
> setTimeout(SimpleGesture.doCommand('close'),5000);
Try this :)
setTimeout(() => { SimpleGesture.doCommand('close'); }, 5000);
Thanks
UPDATE 2018/12/04
I add a new API "SimpleGesture.open" in version 2.11.
(I changed the name of option from "javascript" to "code", like the "browser.tabs.executeScript" API.)
see
https://github.com/utubo/firefox-simple_gesture/wiki/SimpleGesture.open
Thank you for your suggestion
>SimpleGesture.open("google.com", { code: 'alert("hello");'});
Fix "google.com" to "https://www.google.com"
I thought about adding "https://" automatically, but I stopped.