RedGif Embeded Video Fix

RedGif Embeded Video Fix!

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Аўтар
bigbear2sfc
Усталяванняў за дзень
3
Усяго ўсталяванняў
3
Рэйтынг
0 0 0
Версія
0.10
Створаны
29.03.2026
Абноўлены
29.03.2026
Памер
6.8 КБ
Ліцэнзія
MIT
Ужываецца на

🎬 RedGif Embedded Video Fix

A Tampermonkey/Greasemonkey userscript that fixes various issues with RedGif videos embedded in third-party pages.

🌟 Features

  • Disables automatic loop - Videos no longer repeat endlessly
  • 🔊 Automatically enables audio - Clicks the sound button on startup
  • 🔗 Blocks navigation links - Prevents leaving the page when clicking on links
  • 🎮 Play/Stop Toggle - Click on the video backdrop to pause/play
  • 🔄 Dynamic detection - Handles dynamically loaded elements
  • 🐛 Debug mode - Toggle logs from console with toggleDebug()

📦 Installation

  1. Install Tampermonkey (Chrome/Edge) or Greasemonkey (Firefox)
  2. Click this link to install the script
  3. Or create a new script and paste the code manually

🎯 How it works

The script automatically intervenes when you visit a page with URL https://www.redgifs.com/ifr/* (typically RedGif embeds) and:

  1. Waits for the page to fully load
  2. Finds and disables the loop attribute on all video tags
  3. Locates and clicks the sound button (.SoundButton)
  4. Blocks all links pointing to /watch/ by replacing them with #
  5. Adds a listener to the backdrop for click-to-play/pause control
  6. Monitors for any dynamically loaded elements

🛠️ Usage

The script works completely automatically. No user interaction is required.

Debug mode

To see debug logs in the browser console:

// Enable/disable logs
toggleDebug()

// Current status will be shown:
// "Debug mode: ON" or "Debug mode: OFF"