Twonky host origin fix

Fixes image/link/url references to the local host automatically, allowing you to browse servers normally. Functionality inspired by 'Twonky Viewer' chrome extension developed by

Autor
kryo
Instalaciones diarias
0
Instalaciones totales
1
Calificaciones
0 0 0
Versión
1.0
Creado
26/03/2025
Actualizado
26/03/2025
Tamaño
5.82 KB
Licencia
MIT
Funciona en

Purpose

This userscript addresses an issue with the © Twonky Media Server web interface when accessed from a device outside the local network (usually when the server isn't configured correctly). Twonky generates internal URLs (for images, links, etc.) using 127.0.0.1 (localhost) as the hostname. This script automatically replaces these instances of 127.0.0.1 with the actual hostname or IP address being used in the browser, allowing images, links, and files to load correctly.

Background

The method used is inspired by the functionality provided by the 'Twonky Viewer' Chrome extension (no longer availible). This userscript was created to offer a alternative solution for people who rely on this specific extension or simply need this functionality and haven't found it yet.