Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name YouTube Music - Skip Harmful Content Warning
- // @version 1.0
- // @description Automatically skips the Harmful Content Warning on YouTube Music by confirming the prompt
- // @author FatalBulletHit
- // @match http*://*.youtube.com/watch*
- // @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- // Your code here...
- const buttonCollection = document.getElementsByTagName('button');
- const harmWarningButton = Object.values(buttonCollection).filter(x => x.textContent == "I understand and wish to proceed");
- harmWarningButton[0].click();
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement