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

Skaber
kryo
Daglige installationer
0
Installationer i alt
1
Bedømmelser
0 0 0
Version
1.0
Oprettet
26.03.2025
Opdateret
26.03.2025
Size
5,82 kB
Licens
MIT
Gælder for

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.