Skip to content

std-microblock/chromatic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chromatic

Universal modifier for Chromium/V8 | 广谱注入 Chromium/V8 的通用修改器

Note

在找 BetterNCM ?

由于作者迁移至 QQ 音乐,BetterNCM 疏于维护,以及其年代已久,现将相关代码整体重写并支持极多其它软件,改名为 chromatic。

点击以查看 BetterNCM 相关代码存档最后一版 BetterNCM Release

Warning

This project is still in active development. File a bug report if you meet any!
此项目仍在开发阶段,如果遇到问题请发送 Issue

Both English and Chinese issues are accepted. Issue 中使用中文或英文均可

文档/使用方法

待完善

Showcase

import { chrome } from "chromatic"

chrome.blink.add_blink_parse_html_manipulator(html => {
    if (html.includes('<body')) {
        return html.replace("<body", `
           <div style="
          position: fixed;
          left: 13px;
          top: 11px;
          background: #00000022;
          color: white;
          z-index: 9999;
          backdrop-filter: blur(20px);
          padding: 10px 20px;
          font-size: 15px;
          border-radius: 100px;
          overflow: hidden;
          border: 1px solid #00000038;
          font-family: Consolas;
          cursor: pointer;
      " onclick="location.reload()">Chromatic</div>
      <body
            `)
    }
})

image

About

Universal modifier for Chromium/V8 | 广谱注入 Chromium/V8 的通用修改器

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages