Maximize Video(improve)

Maximize all video players.Support Piture-in-picture.

< Părere la script-ul Maximize Video(improve)

Recenzie: Bun, script-ul merge

§
Postat în: 13-11-2024

I want to set the button to the left, pls tell me waht to change in the code.

§
Postat în: 13-11-2024

This works for me

const playerRect = tool.getRect(gv.player)
gv.controlBtn.style.opacity = "0.5"
gv.controlBtn.innerHTML = hasTrustedTypes ? escapeHTMLPolicy.createHTML(gv.btnText.max) : gv.btnText.max
gv.controlBtn.style.top = playerRect.screenY - 20 + "px"
// 网页全屏按钮位置,Maximize button
gv.controlBtn.style.left = playerRect.screenX + "px"
gv.picinpicBtn.style.opacity = "0.5"
gv.picinpicBtn.innerHTML = hasTrustedTypes ? escapeHTMLPolicy.createHTML(gv.btnText.pip) : gv.btnText.pip
gv.picinpicBtn.style.top = gv.controlBtn.style.top
// 画中画按钮位置,PicInPic button
gv.picinpicBtn.style.left = playerRect.screenX - 65 + "px"

Ryoma HanAutor
§
Postat în: 15-11-2024

yeap, you got it

§
Postat în: 18-11-2024

It just a copy from another user on original script

Postează un raspuns

Autentifică-te pentru a posta un răspuns.