Created
December 26, 2024 10:00
-
-
Save lucapericlp/bd920ec23dbdf46b0a70f59a584dda50 to your computer and use it in GitHub Desktop.
usable as a browser bookmarklet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:(function(){const prefix='_ytPlayerContainer_';let toggleCount=0;document.querySelectorAll('*').forEach(el=>{el.classList.forEach(cls=>{if(cls.startsWith(prefix)){el.style.display=el.style.display==='none'?%27%27:%27none%27;toggleCount++;return;}});});console.log(`Toggled display for ${toggleCount} element(s) with classes starting with "${prefix}".`);})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment