YouTube Sizer

Resizes the YouTube player to different sizes

< Feedback on YouTube Sizer

سوئال / ئىنكاس

dr4
§
يوللانغان ۋاقتى: 2023-11-01
تەھرىرلەنگەن ۋاقتى: 2023-11-01

How can In non-theater mode, After modifying the player size, The player is to the left instead of centered.
How can I only switch between changing sizes without going into full screen by clicking the change player size button in the player?

dr4
§
يوللانغان ۋاقتى: 2023-11-01

The second question is wrong, please ignore it

John Burtئاپتور
§
يوللانغان ۋاقتى: 2023-11-01

Can you attach a screenshot of the issue?

dr4
§
يوللانغان ۋاقتى: 2023-11-01

The first picture is normal, that is, the player size has not been changed.
The second picture, after changing the player size, The player is in the center of the page and I want it to move to the left

John Burtئاپتور
§
يوللانغان ۋاقتى: 2023-11-01

You can modify the CSS to do this:

ytd-watch-flexy[flexy][is-two-columns_] #columns.ytd-watch-flexy {
display: flex;
justify-content: flex-start;
}

dr4
§
يوللانغان ۋاقتى: 2023-11-02

After modifying it to the following, it has indeed been moved to the left, but part of the screen is not visible, and it seems that it has been moved too much.

function startMethods() {
new Promise((resolve) => {
sizeObserver(); // Size Observer
resolve();
}).then(() => {
if (getPref("yt-resize")) {
addCss(`#primary.ytd-watch-flexy[flexy][is-two-columns_] #columns.ytd-watch-flexy {
display: flex;
justify-content: flex-start;
}:not([fullscreen]) { max-width: ${maxWidth}px !important; }`, "small-player");
}
addCss(ytresizeCss, "yt-css");
controlResize(); // Create Resize Button
viewObserver(); // Video Container Observer
});
}

John Burtئاپتور
§
يوللانغان ۋاقتى: 2023-11-02

You can use margin-left to adjust for the distance.

ytd-watch-flexy[flexy][is-two-columns_] #columns.ytd-watch-flexy {
display: flex;
justify-content: flex-start;
margin-left: 100px;
}

dr4
§
يوللانغان ۋاقتى: 2023-11-02

Doesn't work, I set 10-1000px. The position on the left remains unchanged.

John Burtئاپتور
§
يوللانغان ۋاقتى: 2023-11-02

I'm not sure why it isn't working. It might be better to use a CSS chrome extension like Stylus to test the CSS than to modify the script.

dr4
§
يوللانغان ۋاقتى: 2023-11-02

hard

§
يوللانغان ۋاقتى: 2025-02-21

I too need a script that does this in the normal default view and without needing a keyboard

جاۋاب قايتۇرۇش

جاۋاب قايتۇرۇش ئۈچۈن كىرىش.

长期地址
遇到问题?请前往 GitHub 提 Issues。