Mobile browser touch gestures

Add touch gestures to your mobile browser, ready to use and no configuration required. In addition to general gestures, there are also special gestures for text, images, and videos. Do you still think it's not enough? Support adding personalized gestures that belong to you. We recommend using Lemur browser, Yandex browser, and Kiwi browser.

< Feedback on Mobile browser touch gestures

Review: Good - script works

§
Posted: 2021-02-14

脚本很好用,另外求新页面打开链接代码

L.XavierAuthor
§
Posted: 2021-02-15

感谢你的使用和好评。
function openURL(url){if(settings['弹出网页']){window.open(url)}else{GM_openInTab(url)}}

L.XavierAuthor
§
Posted: 2021-02-15

GM_openInTab是油猴提供的方法,但是一些参数在手机上不能用。window.open()如果不是点击事件线程会被浏览器拦截。所以我折中了一下,希望能帮到你,有更好的方式请留言告诉我,谢谢!

§
Posted: 2021-02-15

十分感谢,我使用如下代码实现了新窗口打开功能,非常好用

function openURL(url){if(settings['弹出网页']){window.open(url)}else{GM_openInTab(url)}}
let testUrl=null;
let testNode=touchEle;
for(let i=0;i<4;i++){
    if(testNode.href){
        testUrl=testNode.href;
        break;
    }
    testNode=testNode.parentNode;
}
if(testUrl){
    openURL(testUrl)
}

Post reply

Sign in to post a reply.