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.
- 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.
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.
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