RedGif Embeded Video Fix

RedGif Embeded Video Fix!

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

Autore
bigbear2sfc
Installazioni giornaliere
3
Installazioni totali
3
Valutazione
0 0 0
Versione
0.10
Creato il
29/03/2026
Aggiornato il
29/03/2026
Dimensione
6,84 KB
Licenza
MIT
Applica 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"