Created
December 26, 2024 10:00
-
-
Save lucapericlp/bd920ec23dbdf46b0a70f59a584dda50 to your computer and use it in GitHub Desktop.
Revisions
-
lucapericlp created this gist
Dec 26, 2024 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ 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}".`);})();