Greasy Fork is available in English.

Maximizer For YouTube™

Maximizes the YouTube player to fill the entire browser viewport when in theater mode, plus a few other enhancements.

< Feedback on Maximizer For YouTube™

Review: OK - script works, but has bugs

§
Posted: 10 November 2023

Very useful script, the only thing that does not work is description auto expand. I recommend you use the following lines that work for me (script by makise-homura):


document.addEventListener('dom-change', function()
{
// Expand descriptions
if (!document.getElementById('expand').hidden) {document.getElementById("expand").click();}

// Expand comment text
//document.querySelectorAll("span.more-button.style-scope.ytd-comment-renderer").forEach(x => (function(x) {if (x.offsetParent != null) {x.click();}})(x));

// Expand first part of comment subtrees
//document.querySelectorAll("#more-replies.more-button").forEach(x => (function(x) {if (!x.hidden) {x.click();}})(x));

// Expand other parts of comment subtrees
//document.querySelectorAll('ytd-button-renderer.style-scope.ytd-continuation-item-renderer').forEach(x => (function(x) {if (x.clientHeight > 0) {x.firstChild.firstChild.click();}})(x));
}, false);

Post reply

Sign in to post a reply.