instakeeplay

Prevents Instagram videos from pausing when switching tabs and adds a custom seek bar to all videos.

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
halilnevzat
日安装量
0
总安装量
12
评分
1 0 0
版本
1.03
创建于
2025-03-05
更新于
2025-03-05
大小
4.0 KB
许可证
MIT
适用于

# Instagram Video Enhancer

Enhances the Instagram video experience by preventing videos from pausing when switching tabs and adding a custom seek bar to all videos.

## Features

### 1. Prevent Video Pausing
- Overrides tab visibility detection so Instagram videos continue playing even when you switch tabs
- No more interruptions when multitasking across different browser tabs

### 2. Custom Seek Bar
- Adds a sleek, interactive seek bar to all Instagram videos
- Shows video progress with a blue progress indicator
- Click anywhere on the seek bar to jump to that position in the video
- Automatically updates as new videos load while scrolling
- Non-intrusive design with semi-transparent background

## How It Works

- **Tab Visibility Override**: Modifies `document.hidden` and `document.visibilityState` to trick Instagram into thinking the tab is always visible
- **Seek Bar Implementation**:
- Dynamically adds seek bars to all video elements
- Updates progress in real-time as videos play
- Uses a MutationObserver to detect and enhance new videos as they load
- **Styling**: Clean, modern look that blends with Instagram's interface

## Installation
1. Install a userscript manager like Tampermonkey or Greasemonkey
2. Click "Install" on this page
3. Visit Instagram and enjoy enhanced video playback!

## Notes
- Works on all Instagram pages with video content
- Automatically applies to new videos as you scroll
- No configuration needed - works out of the box
- Lightweight and efficient implementation

## Compatibility
- Tested with modern browsers (Chrome, Firefox, Edge)
- Requires a userscript manager extension

## Feedback
Found a bug or have a suggestion? Please report it in the Greasy Fork feedback section!