Canop / miaou

A chat server with OAuth2 authentication, persistent and searchable history, video and audio, markdown formatting, private and public rooms, stars, votes, embedded games, and many other features
http://miaou.dystroy.org/
Other
542 stars 73 forks source link

Chat is empty when using ghostery or darkreader #97

Open Stargateur opened 4 years ago

Stargateur commented 4 years ago

The site load but all is empty for if any of darkreader or ghosterry are enable, console log when open https://miaou.dystroy.org/3490?broot:

jQuery.Deferred exception: skin.stringToColour is not a function r@https://miaou.dystroy.org/static/miaou.min.js?v=56:1:62285
md.addMessage@https://miaou.dystroy.org/static/miaou.min.js?v=56:1:69724
chat.messagesIn/<@https://miaou.dystroy.org/static/miaou.min.js?v=56:1:10760
chat.messagesIn@https://miaou.dystroy.org/static/miaou.min.js?v=56:1:10580
chat.start@https://miaou.dystroy.org/static/miaou.min.js?v=56:1:11562
@https://miaou.dystroy.org/static/pad.min.js?v=04:1:2183
miaou/<@https://miaou.dystroy.org/static/miaou.min.js?v=56:1:34
l@https://miaou.dystroy.org/static/jquery-3.3.1.min.js:2:29375
a/</c<@https://miaou.dystroy.org/static/jquery-3.3.1.min.js:2:29677
 undefined

Uncaught TypeError: skin.stringToColour is not a function
    r https://miaou.dystroy.org/static/miaou.min.js?v=56:1
    addMessage https://miaou.dystroy.org/static/miaou.min.js?v=56:1
    messagesIn https://miaou.dystroy.org/static/miaou.min.js?v=56:1
    messagesIn https://miaou.dystroy.org/static/miaou.min.js?v=56:1
    start https://miaou.dystroy.org/static/miaou.min.js?v=56:1
    <anonymous> https://miaou.dystroy.org/static/pad.min.js?v=04:1
    miaou https://miaou.dystroy.org/static/miaou.min.js?v=56:1
    jQuery 2
        l
        c

Uncaught TypeError: skin.stringToColour is not a function
    r https://miaou.dystroy.org/static/miaou.min.js?v=56:1
    addMessage https://miaou.dystroy.org/static/miaou.min.js?v=56:1
    messagesIn https://miaou.dystroy.org/static/miaou.min.js?v=56:1
    messagesIn https://miaou.dystroy.org/static/miaou.min.js?v=56:1
    emit https://miaou.dystroy.org/socket.io/socket.io.js:6
    onevent https://miaou.dystroy.org/socket.io/socket.io.js:8
    onpacket https://miaou.dystroy.org/socket.io/socket.io.js:8
    exports https://miaou.dystroy.org/socket.io/socket.io.js:8
    emit https://miaou.dystroy.org/socket.io/socket.io.js:6
    ondecoded https://miaou.dystroy.org/socket.io/socket.io.js:6
    exports https://miaou.dystroy.org/socket.io/socket.io.js:8
    emit https://miaou.dystroy.org/socket.io/socket.io.js:6
    add https://miaou.dystroy.org/socket.io/socket.io.js:6
    ondata https://miaou.dystroy.org/socket.io/socket.io.js:6
    exports https://miaou.dystroy.org/socket.io/socket.io.js:8
    emit https://miaou.dystroy.org/socket.io/socket.io.js:6
    onPacket https://miaou.dystroy.org/socket.io/socket.io.js:6
    setTransport https://miaou.dystroy.org/socket.io/socket.io.js:6
    emit https://miaou.dystroy.org/socket.io/socket.io.js:6
    onPacket https://miaou.dystroy.org/socket.io/socket.io.js:7
    onData https://miaou.dystroy.org/socket.io/socket.io.js:7
    onmessage https://miaou.dystroy.org/socket.io/socket.io.js:8

miaou.min.js:1:62285
    r https://miaou.dystroy.org/static/miaou.min.js?v=56:1
    addMessage https://miaou.dystroy.org/static/miaou.min.js?v=56:1
    messagesIn https://miaou.dystroy.org/static/miaou.min.js?v=56:1
    forEach self-hosted:225
    messagesIn https://miaou.dystroy.org/static/miaou.min.js?v=56:1
    emit https://miaou.dystroy.org/socket.io/socket.io.js:6
    onevent https://miaou.dystroy.org/socket.io/socket.io.js:8
    onpacket https://miaou.dystroy.org/socket.io/socket.io.js:8
    exports https://miaou.dystroy.org/socket.io/socket.io.js:8
    emit https://miaou.dystroy.org/socket.io/socket.io.js:6
    ondecoded https://miaou.dystroy.org/socket.io/socket.io.js:6
    exports https://miaou.dystroy.org/socket.io/socket.io.js:8
    emit https://miaou.dystroy.org/socket.io/socket.io.js:6
    add https://miaou.dystroy.org/socket.io/socket.io.js:6
    ondata https://miaou.dystroy.org/socket.io/socket.io.js:6
    exports https://miaou.dystroy.org/socket.io/socket.io.js:8
    emit https://miaou.dystroy.org/socket.io/socket.io.js:6
    onPacket https://miaou.dystroy.org/socket.io/socket.io.js:6
    setTransport https://miaou.dystroy.org/socket.io/socket.io.js:6
    emit https://miaou.dystroy.org/socket.io/socket.io.js:6
    onPacket https://miaou.dystroy.org/socket.io/socket.io.js:7
    onData https://miaou.dystroy.org/socket.io/socket.io.js:7
    onmessage https://miaou.dystroy.org/socket.io/socket.io.js:8

Uncaught DOMException: CSSStyleSheet.rules getter: Not allowed to access cross-origin stylesheet miaou.min.js:1
    getCssValue https://miaou.dystroy.org/static/miaou.min.js?v=56:1
    <anonyme> https://miaou.dystroy.org/static/miaou.min.js?v=56:1
    miaou https://miaou.dystroy.org/static/miaou.min.js?v=56:1
    jQuery 2

Some cookies are misusing the recommended “sameSite“ attribute 2
Cookie “io” will be soon rejected because it has the “sameSite” attribute set to “none” or an invalid value, without the “secure” attribute. To know more about the “sameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite socket.io
Cookie “io” will be soon rejected because it has the “sameSite” attribute set to “none” or an invalid value, without the “secure” attribute. To know more about the “sameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite socket.io

Firefox: 79.0 (64-bit)

Error log look the same for the two extensions when enable.

Maxzor commented 1 year ago

Same, empty on firefox, ok on chromium

maxzor@mada:~$ firefox -v
Mozilla Firefox 117.0
maxzor@mada:~$ gnome-shell --version
GNOME Shell 3.36.9

Screenshot from 2023-09-10 01-16-23

Canop commented 1 year ago

@Maxzor Is your Firefox test with extensions ? What's the error in the console ?

Maxzor commented 1 year ago

Screenshot from 2023-09-10 16-27-23 Screenshot from 2023-09-10 16-26-28