Giter VIP home page Giter VIP logo

betterncm-v1-plugin-template's Introduction

BetterNCM II Plugin Template

从这里,开启你的下一个插件

文件简介

  • .github | Github Actions有关文件
  • manifest.json | 生产环境插件描述文件
  • main.js | 主文件(在manifest.json中指定)
  • manifest_test.json | Github Actions 测试环境插件描述文件
  • main_test.json | 测试主文件(在manifest_test.json中指定)

manifest.json v1

(同manifest_test.json)

{
    "manifest_version": 1, // manifest版本,必为 1
    "name": "ExamplePlugin", // 插件名,不推荐有中文
    "slug": "example-plugin", // 插件唯一识别名 (留空则根据插件名自动生成)
    "version": "0.1.0", // 插件版本,推荐使用语义化版本(https://semver.org/)
    "author": "Author", // 插件作者
    "description": "Description of the plugin", // 插件描述
    "betterncm_version": "^0.2.6", // 依赖的 BetterNCM 版本
    "preview": "preview.png", // 插件预览图
    
    "injects": { // 普通注入
        "Main": [  // 网易云主页面
            {
                "file": "main.js"  // 需注入的文件
            }
        ]
    },
    "hijacks":{  // 网易云请求修改
        "> 2.10.0 <= 2.10.6":{  // 版本,支持Range
            "orpheus://orpheus/pub/core.e5842f1.js":{ // URL,开头部分匹配即可
            //(如 orpheus://orpheus/pub/core.e5842f1.js?abcdefg 将被匹配到)

                "type":"replace", // 类型,目前支持 replace 和 regex
                "from":"var o;if(((this.U()||C).from||C).id==t)", // 搜索项
                "to":";expose(a);var o;if(((this.U()||C).from||C).id==t)" // 替换为
            }
        }
    }
}

betterncm-v1-plugin-template's People

Contributors

microcber avatar

Stargazers

 avatar  avatar 千雪琉音 avatar i ♥ U avatar

Forkers

rogueqwq

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.