Greasy Fork is available in English.
Play/Pause when clicking the video.
当前为
// ==UserScript==
// @name Netflix: Click to Play/Pause
// @description Play/Pause when clicking the video.
// @author Zren
// @icon https://assets.nflxext.com/us/ffe/siteui/common/icons/nficon2015.ico
// @namespace http://github.com/Zren
// @version 2
// @match https://www.netflix.com/*
// @grant none
// ==/UserScript==
window.addEventListener('click', function(e) {
if (e.target.matches('.player-video-wrapper *')
&& document.querySelector('video').offsetWidth >= window.innerWidth // Don't pause when when returning to credits at the postplay screen.
) {
document.querySelector('#netflix-player .player-control-bar .player-play-pause').click()
}
})