qutebrowser: YT: click dismissable elements
This removes ads for Youtube Premium and also the Youtube Shorts shelf (which is garbage anyways)
This commit is contained in:
		@@ -1,6 +1,6 @@
 | 
				
			|||||||
// ==UserScript==
 | 
					// ==UserScript==
 | 
				
			||||||
// @name         Auto Remove Ads
 | 
					// @name         Auto Remove Ads
 | 
				
			||||||
// @version      1.0.1
 | 
					// @version      1.0.2
 | 
				
			||||||
// @description  Autoremove static ads
 | 
					// @description  Autoremove static ads
 | 
				
			||||||
// @author       Alexander Bocken
 | 
					// @author       Alexander Bocken
 | 
				
			||||||
// @match        *://*.youtube.com/*
 | 
					// @match        *://*.youtube.com/*
 | 
				
			||||||
@@ -11,4 +11,5 @@ setInterval(() => {
 | 
				
			|||||||
	el => {
 | 
						el => {
 | 
				
			||||||
			el.remove();
 | 
								el.remove();
 | 
				
			||||||
	})
 | 
						})
 | 
				
			||||||
 | 
					    document.querySelectorAll('[aria-label="Not interested"]').forEach(el => { el.click() })
 | 
				
			||||||
}, 50)
 | 
					}, 50)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user