ReVanced / revanced-patches

🧩 Patches for ReVanced
https://revanced.app
GNU General Public License v3.0
2.51k stars 292 forks source link

feat(YouTube Music - Hide ads): Hide all fullscreen YouTube premium ads within YouTube Music #3032

Open ILoveOpenSourceApplications opened 7 months ago

ILoveOpenSourceApplications commented 7 months ago

Feature description

Hide YouTube premium promotional ads that are showing up in YT Music app.

Ad-shots

![Screenshot_20240407_194929_YouTube Music](https://github.com/YT-Advanced/ReX-patches/assets/117499019/ca12d391-84e3-453a-aae0-b585ef6566d8) ![Screenshot_20240415_004025_YouTube Music](https://github.com/YT-Advanced/ReX-patches/assets/117499019/bda5d1fd-c6cc-4f40-b812-44ad595d741c) ![Screenshot_20240428_121044_YouTube Music](https://github.com/ReVanced/revanced-patches/assets/117499019/44332322-78dc-4655-92f7-571677d87012) ![Screenshot_20240505_153433_YouTube Music](https://github.com/ReVanced/revanced-patches/assets/117499019/31f5aedd-be9c-4e53-a22b-cb0be5e81eca) ![Screenshot_2024-05-19-13-54-13-259_app revanced android apps youtube music](https://github.com/ReVanced/revanced-patches/assets/117499019/ac71c15a-095f-4085-9e9d-ccf96c5641c2) ![Screenshot_20240803_161035_YouTube Music](https://github.com/user-attachments/assets/6fcc9711-3926-4d57-8b18-466d733c2cda) ![Image](https://github.com/user-attachments/assets/7c8d6f67-b3de-4f07-b749-7bd8e3753480) ![Image](https://github.com/user-attachments/assets/bc19e187-6892-4a5b-b328-552cc04d127f) ![Screenshot_2024-04-17-13-42-05-518_app revanced android apps youtube music~2](https://github.com/ReVanced/revanced-patches/assets/117499019/be01f233-1eb9-49e9-a88a-935c28cbff4c)

Motivation

Ads are ads and ads are hated.

Acknowledgements

ILoveOpenSourceApplications commented 7 months ago

I checked the repo and only saw #854 which can be classified as a possible duplicate but that one points toward a specific YT premium ads, while I tried to keep mine as general as possible.

ILoveOpenSourceApplications commented 1 month ago

The fullscreen ads patch from @inotia00 works for devices running up to Android 14 (can't tell about A15 as I haven't received it yet), and will close full screen ads on both YT and YTM (especially on YTM). Patches: https://github.com/inotia00/revanced-patches/blob/revanced-extended/src/main/kotlin/app/revanced/patches/shared/ads/BaseAdsPatch.kt Integrations: https://github.com/inotia00/revanced-integrations/blob/revanced-extended/app/src/main/java/app/revanced/integrations/shared/patches/FullscreenAdsPatch.java

What's your opinion, @LisoUseInAIKyrios?

LisoUseInAIKyrios commented 1 month ago

Looks simple enough.

ILoveOpenSourceApplications commented 1 month ago

Nice. Implementing this can finally remove all those fullscreen premium ads finally.