Skip to content
项目

关于

Look Away to Pause Youtube - Experimental Chrome Extension

人工智能与机器学习

这些数字如何统计

实测星标增长

24小时
0
7天
正在收集历史
15天
正在收集历史
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Face Pause
FacePause

Look Away to Pause Youtube - Experimental Chrome Extension

FacePause uses the experimental native FaceDetector API. Its availability depends on the browser and operating system; enabling a flag does not guarantee support. Unsupported detection stops the webcam and displays a message. See Chrome’s Shape Detection API documentation.


▶️ Watch a video demo

How to install

Build from source using the instructions below, then load build/chrome as an unpacked extension. The historical 0.1 release uses Manifest V2 and does not include these changes.

Notice

  • 🙀 I don’t trust my webcam and I have it covered, see this more as an experiment of Chromes new technology, than a product you'd use every day.

  • 🏴 To get the extension to work you’ll need to enable Chrome Experimental Features here:
    chrome://flags#enable-experimental-web-platform-features

  • 💡If you’re in a dark setting it will probably be a bit buggy, as FaceDetector API is still not great in bad light.

Development

Installation

  1. Clone the repository git clone https://github.com/Hemmingsson/FacePause
  2. Use Node.js 22 or later and run npm ci
  3. Run npm run build
Load the extension in Chrome
  1. Open Chrome browser and navigate to chrome://extensions
  2. Select "Developer Mode" and then click "Load unpacked extension..."
  3. From the file browser, choose to FacePause/build/chrome

Developing

The following task can be used when you want to start developing the extension

  • npm run chrome-watch

FacePause - Look away to pause YouTube videos | Product Hunt Embed

Build checks

npm run build creates Chrome Manifest V3 and Firefox Manifest V2 builds. Run npm test after building to check bundled assets and webcam failure handling. npm run dist creates ZIP files in dist/.

探索相关项目

加载中…