instakeeplay

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
halilnevzat
今日安裝
0
安裝總數
13
評價
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!