https://github.com/flo-bit/gaze-controls
automatically scroll up and down a website while reading by tracking users gaze
https://github.com/flo-bit/gaze-controls
body-controls bookmarklet gaze-tracking webgazer-js
Last synced: 3 months ago
JSON representation
automatically scroll up and down a website while reading by tracking users gaze
- Host: GitHub
- URL: https://github.com/flo-bit/gaze-controls
- Owner: flo-bit
- Created: 2023-01-13T01:15:07.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-13T02:01:05.000Z (over 3 years ago)
- Last Synced: 2025-12-01T23:40:24.581Z (7 months ago)
- Topics: body-controls, bookmarklet, gaze-tracking, webgazer-js
- Language: HTML
- Homepage: https://flo-bit.github.io/gaze-controls/
- Size: 3 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# using your gaze to automatically scroll a webpage
This is a simple project that uses your gaze to automatically scroll a webpage. It uses [webgazer.js](https://github.com/brownhci/WebGazer) to get the gaze data.
The gaze data is averaged over a few frames and then used to calculate the scroll amount.
## how to use
(not working on all webpages and browsers yet, tested on macos chrome with wikipedia)
Add a bookmark with the following code as the URL:
```javascript
javascript: (function () {
var script = document.createElement("script");
script.src =
"https://flo-bit.github.io/gaze-controls/gaze-tracking-bookmark.js";
document.body.appendChild(script);
})();
```
Then, when you are on a webpage, click on the bookmark and allow camera access.
Click on a few points on the page to calibrate the gaze tracker until the tracking preview is more or less calibrated (meaning it moves to where you look).
The script will then automatically scroll the page up or down while you read.