8000 GitHub - cherishh/yfsp-blocker: Skip Ads on 爱壹帆 · GitHub
[go: up one dir, main page]

Skip to content

About

Skip Ads on 爱壹帆

Resources

Stars

4 stars

Watchers

0 watching

Forks

Repository files navigation

YFSP Ad Blocker

自动跳过 yfsp.tv 视频广告的 Chrome 扩展。

tl;dr

如果你不想了解技术细节,只想直接使用,请参考这篇文章进行安装。

功能

  • 自动移除广告遮罩层
  • 广告移除后自动恢复播放
  • 统计已拦截广告数量
  • 更多倍速调节,包括VIP倍速

安装

从源码安装

  1. 克隆仓库:

    git clone https://github.com/yourusername/yfsp-blocker.git
    cd yfsp-blocker
  2. 安装依赖:

    pnpm install
  3. 构建扩展:

    pnpm build
  4. 加载到 Chrome:

    • 打开 chrome://extensions
    • 开启「开发者模式」
    • 点击「加载已解压的扩展程序」
    • 选择 .output/chrome-mv3 目录

开发

# 启动开发服务器(支持 HMR)
pnpm dev

# 生产构建
pnpm build

# Firefox 构建
pnpm build:firefox

# 类型检查
pnpm compile

技术栈

  • WXT - 新一代浏览器扩展框架
  • React - Popup UI
  • TypeScript - 类型安全
  • Manifest V3

项目结构

yfsp-blocker/
├── entrypoints/
│   ├── content.ts        # 核心广告拦截逻辑
│   ├── background.ts     # Service Worker
│   └── popup/            # React Popup UI
│       ├── App.tsx
│       ├── App.css
│       └── main.tsx
├── public/
│   ├── icon/             # 扩展图标
├── wxt.config.ts         # WXT 配置
└── package.json

许可证

MIT

About

Skip Ads on 爱壹帆

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0