Github: webapps-ads-removal
Introduction
The older User-Agent terminals are no longer the mainstream advertising target, so you can use the “–user-agent” parameter of the nativefier open source tool to forcefully disguise User-Agent to achieve ad filtering. Of course, not most User-Agents can remove ads, you need to explore and test together.
Dependencies
- macOS 10.9+ / Windows / Linux
- Node.js ≥ 12.9 and npm ≥ 6.9
1 | npm install -g nativefier |
From: https://github.com/nativefier/nativefier
Usage
Use nativefier to generate Web as App, example:
1 | /<Path>/nativefier "https://example.com" \ |
Tested User-Agent
Replace the following User-Agent
App | User-Agent | Ad Removed | Hide Play |
---|---|---|---|
Youtube | Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp) | Yes | Support |
Youtube-Music | Mozilla/5.0 (Macintosh; Intel Mac OS X x.y; rv:42.0) Gecko/20100101 Firefox/42.0 | Yes | Support |
Different User-Agent access APP interface will be different, it is automatically adjusted according to the terminal
Other:
- ref: All User-Agent
- Submit suggestions to improve this project.
- If it involves infringement, please contact me to delete it in time.
License
- 本文作者: GaryWu
- 本文链接: https://garywu520.github.io/2022/03/08/Youtube-Music原生去广告/
- 版权声明: 本博客所有文章除特别声明外,均采用 MIT 许可协议。转载请注明出处!