Reddit 广告拦截器 (Reddit Ad Blocker)
English | 中文
English
Introduction
Reddit Ad Blocker is a userscript that automatically removes various types of advertisements from Reddit, providing a cleaner browsing experience.
Features
- Removes all promoted posts
- Removes content with advertising identifiers
- Removes dynamically loaded advertisements
- Real-time monitoring and removal of new ads
Installation
- First install a userscript manager:
- Chrome: Tampermonkey or Violentmonkey
- Firefox: Greasemonkey or Tampermonkey
- Click here to install the script
- Refresh Reddit to see the changes
Technical Details
- Uses MutationObserver for real-time DOM monitoring
- Supports multiple ad selectors
- Automatically cleans newly loaded ad content
License
MIT License
中文
简介
Reddit 广告拦截器是一个用户脚本,用于自动移除 Reddit 网站上的各类广告内容,提供更清爽的浏览体验。
功能特点
- 移除所有推广帖子
- 移除带有广告标识的内容
- 移除动态加载的广告
- 实时监控并清除新出现的广告
安装方法
- 首先安装用户脚本管理器:
- Chrome: Tampermonkey 或 Violentmonkey
- Firefox: Greasemonkey 或 Tampermonkey
- 点击 这里 安装脚本
- 刷新 Reddit 页面即可生效
技术细节
- 使用 MutationObserver 实时监控 DOM 变化
- 支持多种广告选择器
- 自动清理新加载的广告内容
许可证
MIT License
更新日志 | Changelog
- v0.4: 优化广告选择器 | Optimized ad selectors
- v0.3: 添加动态广告移除 | Added dynamic ad removal
- v0.2: 增加更多广告类型支持 | Added more ad type support
- v0.1: 初始版本 | Initial release