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

作者
kryo
今日安裝
0
安裝總數
1
評價
0 0 0
版本
1.0
建立日期
2025-03-26
更新日期
2025-03-26
尺寸
5.8 KB
授權條款
MIT
腳本執行於

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.

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址