Simple Gesture for Android 的评价
Simple Gesture for Android 作者: utubo
utubo 的回应
开发者回应
发布于 5 年前Sorry, version 2.21 could not read clipboard.
So, I fixed it at version 2.22,
and you can use this script to paste and go.
-----------------------------------------------------------
/**
* @name Paste and Go
*/
navigator.clipboard.readText().then(text => {
if (text.startsWith("http://") || text.startsWith("https://")) {
SimpleGesture.open(text);
} else {
SimpleGesture.open('https://www.google.com/search?q=' + encodeURIComponent(text));
}
});
-----------------------------------------------------------
Thank you for your review.
Fix 12/04
if (text.startsWith("^http://") || text.startsWith("^https://")) {
to
if (text.startsWith("http://") || text.startsWith("https://")) {
So, I fixed it at version 2.22,
and you can use this script to paste and go.
-----------------------------------------------------------
/**
* @name Paste and Go
*/
navigator.clipboard.readText().then(text => {
if (text.startsWith("http://") || text.startsWith("https://")) {
SimpleGesture.open(text);
} else {
SimpleGesture.open('https://www.google.com/search?q=' + encodeURIComponent(text));
}
});
-----------------------------------------------------------
Thank you for your review.
Fix 12/04
if (text.startsWith("^http://") || text.startsWith("^https://")) {
to
if (text.startsWith("http://") || text.startsWith("https://")) {