GithubHelp home page GithubHelp logo

geekapp2019 / mumudroidbrowser Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 18 KB

MumuDroid Browser 安卓脚本浏览器,支持Tampermonkey语法,支持原生接口以及OCR实现网页自动化操作

Home Page: https://www.mumudroid.com/detail/107.html

License: Apache License 2.0

mumudroidbrowser's Introduction

Mumu Browser 脚本浏览器

GooglePlay下载地址:

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

支持Greasemonkey API(1,2,3)函数:

  1. GM_addStyle
  2. GM_deleteValue
  3. GM_getResourceText
  4. GM_getResourceURL
  5. GM_getValue
  6. GM_listValues
  7. GM_log
  8. GM_setValue
  9. GM_xmlhttpRequest
  10. GM_addElement
  11. GM_info
  12. GM_registerMenuCommand
  13. GM_unregisterMenuCommand

支持Greasemonkey API(4)函数:

  1. GM.addStyle
  2. GM.deleteValue
  3. GM.getResourceText
  4. GM.getResourceURL
  5. GM.getValue
  6. GM.listValues
  7. GM.log
  8. GM.setValue
  9. GM.xmlhttpRequest
  10. GM.addElement
  11. GM.info
  12. GM.registerMenuCommand
  13. GM.unregisterMenuCommand

扩展的Native原生函数:

  1. GM_toast(text)
  2. GM_click(x, y)
  3. GM_swipe(x1, y1, x2, y2)
  4. GM_getImage(left, top, width, height, quality)
  5. GM_findOcrText(left, top, width, height, callback)
  6. GM_findColor(color, offset, x_step, y_step, left, top, width, height, callback)

备注:@run-at为main-thread时,脚本将在独立的容器中运行,稳定性更好,但是仅支持原生函数的调用。

代码示例

模拟上滑手势/Simulate up slide gesture

// ==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);
})();

屏幕坐标

mumudroidbrowser's People

Contributors

geekapp2019 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.