You are not logged in.

#1 2025-08-07 19:48:05

jebez
Member
From: France
Registered: 2025-01-15
Posts: 168

perfect YouTube player extension for Falkon

Remove the title, the gradients & the centered play & pause icons from the YouTube player.
Even paused, hide the pointer after 1/2 second & the controls panel if not pointed.

!.js

// ==UserScript==
// @include https://www.youtube.com/watch?v=*
// ==/UserScript==
document.getElementsByClassName("ytp-gradient-top")[0].remove()
document.getElementsByClassName("ytp-chrome-top")[0].remove()
document.getElementsByClassName("ytp-gradient-bottom")[0].remove()
a=document.getElementsByTagName("video")[0]
a.addEventListener("pause",()=>document.getElementsByClassName("ytp-bezel-text-hide")[0].remove(),{once:true})
b=document.body.style
let $
a.onmousemove=()=>{b.cursor=""
clearTimeout($)
$=setTimeout(()=>b.cursor="none",500)}
a.onmouseleave=()=>setTimeout(()=>b.cursor="",500)
c=document.getElementsByClassName("ytp-chrome-bottom")[0]
d=c.style
c.onmouseenter=()=>d.opacity=1
c.onmouseleave=()=>d.opacity=0

Falkon, Preferences, Extensions, check GreaseMonkey, Settings, Open scripts directory, put in !.js, OK, OK, restart Falkon.

Yes there's openuserjs.org but at the time I write the website seems down, I can't sign up:
429
Too many requests.
Please retry after approximately 86460 seconds.


perfect YouTube player Chrome extension:
https://chromewebstore.google.com/detai … khkngofcdh

Last edited by jebez (2025-08-17 10:48:52)

Offline

#2 2025-11-24 20:05:16

jebez
Member
From: France
Registered: 2025-01-15
Posts: 168

Re: perfect YouTube player extension for Falkon

An extension for purists, to watch YouTube videos without OSD during play.
Remove the title, the centered play & pause icons & the More videos arrow of the YouTube player.
Hide the pointer after 1/2 second & the controls panel if not pointed.

New YouTube player since september 2025 so new version.

// ==UserScript==
// @include https://www.youtube.com/watch?v=*
// ==/UserScript==
document.getElementsByClassName("ytp-overlays-container")[0].remove()
document.getElementsByClassName("ytp-fullscreen-grid")[0].remove()
a=document.getElementsByTagName("video")[0]
a.addEventListener("pause",()=>document.getElementsByClassName("ytp-bezel-text-hide")[0].remove(),{once:true})
b=document.body.style
let $
a.onmousemove=()=>{b.cursor=""
clearTimeout($)
$=setTimeout(()=>b.cursor="none",500)}
a.onmouseleave=()=>setTimeout(()=>b.cursor="",500)
c=document.getElementsByClassName("ytp-chrome-bottom")[0]
d=c.style
c.onmouseenter=()=>d.opacity=1
c.onmouseleave=()=>d.opacity=0

Last edited by jebez (2025-12-06 14:04:28)

Offline

Board footer

Powered by FluxBB