JS code for video rotation on the web page of station B

Sometimes the video uploaded by the up master of station b is not horizontal, and the computer side looks cumbersome, and the following code can be used to solve it.
F12 to open the browser console,
paste the following code and press Enter,
where -90 (negative number) is the degree of counterclockwise rotation, and the positive number is clockwise rotation, which can be changed to 180, 270 and other degrees.

document.querySelector(".bpx-player-video-wrap").style.transform = "rotate(-90deg)"

If it fails, you can press F12 to click Check, point the cursor to the video interface, check the css class name of the video tag, and change the class name in the above code to what you see now. like:

Guess you like

Origin blog.csdn.net/qq_33843237/article/details/127756248