Noscript addon breaks image previewer if videos are linked
See original GitHub issue- Node version: v14.18.1
- Browser version: FF v101.0
- Device, operating system: W10
- The Lounge version: v4.3.1
When people post images in the chat, usually you can click on them and an overlay div is opening showing the image in full size over the whole visible area of the window. I guess since the last update of v4.3.1 it is showing the image overlay only in the narrow left channel-list area instead of the whole chat area.
Now for the cause of the issue:
it seems TheLounge is now trying to load external resources to make this work like it should. I have noscript-addon installed and it blocks j-chaos.net
, see:
when I temporarily allow j-chaos.net
with noscript, TheLounge opens the images as expected. So it seems TheLounge is dependent on ressources of j-chaos.net
to work properly. This should not be the case. Opening images in the Chat should not require the loading of external js(?) ressources to work.
please consider reworking this functionality without depending on external resources (if that really is the case).
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
script-src self
which would prevent any third party scripts from loading if there was such an issue.https://github.com/thelounge/thelounge/blob/d4cc2dd361bd2f166924dd18efdc57634d67bc19/src/server.js#L304
Sounds to me like noscript is hiding/breaking some element which causes html to shift. I just installed noscript and tried it on my site (steamdb.info) and it’s causing all kinds of issues around a video element:
So this doesn’t sound like a bug with TL.
the URL was posted in the chat. TheLounge did NOT do any preview of that URL (it was an icecast music stream afaik). maybe it tried to produce a preview of said URL but failed to do so (even if there is nothing to show). Never had an issue like that with TL before and it is only happening with this kind of URL.