https://play.google.com/store/apps/details?id=com.mumudroid.browser
https://www.mumudroid.com/detail/115.html
https://www.mumudroid.com/topic_detail/0111.html
- GM_addStyle
- GM_deleteValue
- GM_getResourceText
- GM_getResourceURL
- GM_getValue
- GM_listValues
- GM_log
- GM_setValue
- GM_xmlhttpRequest
- GM_addElement
- GM_info
- GM_registerMenuCommand
- GM_unregisterMenuCommand
- GM.addStyle
- GM.deleteValue
- GM.getResourceText
- GM.getResourceURL
- GM.getValue
- GM.listValues
- GM.log
- GM.setValue
- GM.xmlhttpRequest
- GM.addElement
- GM.info
- GM.registerMenuCommand
- GM.unregisterMenuCommand
- GM_toast(text)
- GM_click(x, y)
- GM_swipe(x1, y1, x2, y2)
- GM_getImage(left, top, width, height, quality)
- GM_findOcrText(left, top, width, height, callback)
- GM_findColor(color, offset, x_step, y_step, left, top, width, height, callback)
备注:@run-at为main-thread时,脚本将在独立的容器中运行,稳定性更好,但是仅支持原生函数的调用。
// ==UserScript==
// @name Simulate up slide gesture
// @version 0.1
// @description 模拟手势上滑操作
// @author Your Name
// @match *
// @run-at document-idle
// @grant none
// ==/UserScript==
(function() {
'use strict';
//input your code
setInterval(function(){
//滑动/swipe
GM_swipe(0.5, 0.8, 0.5, 0.2);
console.log('swipe');
//点击屏幕中央/Click the center
//GM_click(0.5, 0.5);
//console.log('click');
}, 3000);
})();