BlockYouTubeAdsShortcut
This repo contains the code for blocking YouTube ads that is supposed to be run by an iOS shortcut
Install / Use
/learn @AdguardTeam/BlockYouTubeAdsShortcutREADME
Block YouTube Ads in Safari on iPhone/iPad
This repository contains code for the shortcut that we use to block YouTube ads on iPhone/iPad.
The problem is that Safari Content Blocking capabilities is not enough to handle YouTube ads anymore. Our last resort is using iOS Shortcuts which require some additional manual actions.

How to use this
- Get the shortcut. In order to install it, you need to allow untrusted shortcuts first.
- Open YouTube in Safari (it's important, it will only work in Safari)
- Click the "Share button"
- Choose "Block YouTube Ads (by AdGuard)" from the list of actions
- You probably want to make this action "Favourite". Tap "Edit actions..." and then the "Plus" icon to do that.
- Done! Now YouTube is ad free.
Please note, that every time you refresh the page, you need to run this shortcut again.
Remote version
With the standard version of the shortcut, you need to reinstall it to get the latest changes we make in this repo. If you are tired of doing that, there's also a "remote" version of the shortcut. It downloads the latest version of the code from this repo everytime it is launched.
Development
To build scripts from source you need yarn
First install dependencies
yarn install
After that you can build
yarn build
Result of the build should appear in the dist directory
Related Skills
node-connect
342.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.7kCommit, push, and open a PR
