Giter Club home page Giter Club logo

quantumultx's Introduction

Anurag’s github stats

QuantumultX

脚本,自用,仅限于学习和调试接口,请勿进行商业用途。所有下载、使用、复制本库所导致的后果,由使用人自行承担,如不同意,请立即停用并删除脚本,否则视为认可以上条件

关于智能替换(受可能被禁用的影响,不再提供自动化运行文件,请自行处理)

受到@sazs34使用的smartReplace.js启发,重写了smartReplace.js, 可以在env中使用CUSTOM_REPLACE和MULT_CUSTOM_REPLACE自定义进行替换操作。

CUSTOM_REPLACE用法

1、CUSTOM_REPLACE: '[{key : /匹配需要替换字符串正则/,value : "替换后字符串"}]'

2、CUSTOM_REPLACE: '[{key : "替换前字符串",value : "替换后字符串"}]'

注意:如果字符串中有单引号',请用''(两个单引号)进行转义,不要使用\',因为此处使用的是YAML语法而不是JS

CUSTOM_REPLACE示例

替换是否需要通知 CUSTOM_REPLACE: '[{key : /let jdNotify.+/,value : "let jdNotify = true"}]'

替换是否需要通知,同时替换蓝币换京豆数量CUSTOM_REPLACE: '[{key : /let jdNotify.+/,value : "let jdNotify = true"},{key : /const coinToBeans.+/,value : "const coinToBeans = 20"}]' 以此类推,可以同时增加多个替换操作

MULT_CUSTOM_REPLACE示例

为解决多账户多助力码问题,使用MULT_CUSTOM_REPLACE来进行替换,顺序同cookies顺序保持一致。MULT_CUSTOM_REPLACE是CUSTOM_REPLACE的集合,使用方法请参考CUSTOM_REPLACE

替换助力码 MULT_CUSTOM_REPLACE: '[[{key : /const jdFruitShareCodes.+/,value : "const jdFruitShareCodes = [''e3ff185ff53643308ab2b1a6afb3533e@323dbdbbfc824faa81b8927cd95bf975@732c806d465d427aab0c948e2ef8de17@5fe4179a7903433b898e6849409ad885''] "}],[{key : /const jdFruitShareCodes.+/,value : "const jdFruitShareCodes = [''967a8e63fa2148208c1385ed34641ede@b8359db44d244b1f8c36e399926eb5d5@6d7041df49b14747b7ea240efcbe3b59@7b6a724115984e968ec962bf333c0d3b'']"}],[{key : /const jdFruitShareCodes.+/,value : "const jdFruitShareCodes = [''b4f36c1c632746a8bcc3899a11cc19f6@11705719f6e34c6a95913acc5d23d640'']"}]]'

替换时需要注意引号问题,记得转义,确保替换正确。YAML允许字符串换行,过长的替换可以适当换行提高可读性。

通知模块使用了@lxk0301的sendNotify.js

优点:

1、替换灵活,仅需要掌握少量知识,基本上无脑替换即可,即可实现自己想要的效果。

2、使用 @chavyleungEnv开发的脚本,smartReplace中自动替换notify模块,实现可以自动调用sendNotify来实现推送通知到手机上。

3、使用方便,基本上维护一次,可以长期使用无需更新。想修改只需自己研究替换即可。

Thanks to(排名不分先后):

quantumultx's People

Contributors

yangtingxiao 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.