RedGif Embeded Video Fix

RedGif Embeded Video Fix!

Terá de instalar uma extensão como Tampermonkey, Greasemonkey ou Violentmonkey para instalar este script.

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

Terá de instalar uma extensão como Tampermonkey ou Violentmonkey para instalar este script.

Terá de instalar uma extensão como Tampermonkey ou Userscripts para instalar este script.

Terá de instalar uma extensão como Tampermonkey para instalar este script.

Terá de instalar uma extensão de gestão de scripts de utilizador para instalar este script.

(Já tenho um gestor de scripts de utilizador, deixe-me instalá-lo!)

Terá de instalar uma extensão como Stylus para instalar este estilo.

Terá de instalar uma extensão como Stylus para instalar este estilo.

Terá de instalar uma extensão como Stylus para instalar este estilo.

Terá de instalar uma extensão de gestão de estilos de utilizador para instalar este estilo.

Terá de instalar uma extensão de gestão de estilos de utilizador para instalar este estilo.

Terá de instalar uma extensão de gestão de estilos de utilizador para instalar este estilo.

(Já tenho um gestor de estilos de utilizador, deixe-me instalá-lo!)

Autor
bigbear2sfc
Instalações diárias
1
Total de instalações
113
Classificações
0 0 0
Versão
0.12
Criado
29/03/2026
Atualizado
31/03/2026
Tamanho
7 KB
Licença
MIT
Aplica-se a

🎬 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"