Newgrounds user avatar not displaying 2 (Electric Boogaloo)

For support with specific websites

Moderator: trava90

Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
  1. Clear any current output
  2. Navigate or refresh the page in question
  3. Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
User avatar
PseudoDistant
Moonbather
Moonbather
Posts: 73
Joined: 2024-02-06, 20:19

Newgrounds user avatar not displaying 2 (Electric Boogaloo)

Unread post by PseudoDistant » 2024-03-03, 05:36

https://newgrounds.com

Unfortunately no console info here.
Last time this was brought up, OP was advised to use a filter for the Modify HTTP Response extension.

Code: Select all

[["www.newgrounds.com",["/^/",["/<svg[^<]*?<image href=\"(.*?)\"/g","<img src=\"$1\">$&"]]]]
Unfortunately, this doesn't actually work properly.

Image

In the actual profile page, it doesn't work at all.

Image

(Yes it's a new account, I unfortunately lost my old login long ago and now don't even have access to my original email.)
I tested in both Basilisk and Pale Moon, it seems to be a UXP issue.

I would've commented on the original topic, but unfortunately the topic was locked.
Eat your school.
Eat your drugs.
Eat your teeth.

KlarkKentThe3rd
Astronaut
Astronaut
Posts: 556
Joined: 2018-04-20, 20:31

Re: Newgrounds user avatar not displaying 2 (Electric Boogaloo)

Unread post by KlarkKentThe3rd » 2024-03-03, 05:44

This may be related to a Youtube issue I have been having on and off, images and UI elements being invisible SOMETIMES on playlists. If it's the same problem, then it will work sometimes.

User avatar
adoxa
Fanatic
Fanatic
Posts: 170
Joined: 2019-03-16, 13:26

Re: Newgrounds user avatar not displaying 2 (Electric Boogaloo)

Unread post by adoxa » 2024-03-03, 07:03

According to MDN image should have width & height (although it seems the spec has changed and they default to the image size). Adding them fixes it, so here's a filter to do that.

Code: Select all

[["www.newgrounds.com",["/^/",["/(<svg.*?)(\\d+) (\\d+)(\"[\\s\\S]*?<image )href/g","$1$2 $3$4width=\"$2\" height=\"$3\" href"]]]]

User avatar
PseudoDistant
Moonbather
Moonbather
Posts: 73
Joined: 2024-02-06, 20:19

Re: Newgrounds user avatar not displaying 2 (Electric Boogaloo)

Unread post by PseudoDistant » 2024-03-03, 15:52

adoxa wrote:
2024-03-03, 07:03
According to MDN image should have width & height (although it seems the spec has changed and they default to the image size). Adding them fixes it, so here's a filter to do that.

Code: Select all

[["www.newgrounds.com",["/^/",["/(<svg.*?)(\\d+) (\\d+)(\"[\\s\\S]*?<image )href/g","$1$2 $3$4width=\"$2\" height=\"$3\" href"]]]]
While that fixes the icon in the header bar (only on the home page), the profile page is still exactly the same as before (no icon in header bar or picture in the profile page body).

https://pseudodistant.newgrounds.com/

Check here.
Eat your school.
Eat your drugs.
Eat your teeth.

User avatar
adoxa
Fanatic
Fanatic
Posts: 170
Joined: 2019-03-16, 13:26

Re: Newgrounds user avatar not displaying 2 (Electric Boogaloo)

Unread post by adoxa » 2024-03-03, 23:31

Ah, silly me.

Code: Select all

[["/newgrounds\\.com/",["/^/",["/(<svg.*?)(\\d+) (\\d+)(\"[\\s\\S]*?<image )href/g","$1$2 $3$4width=\"$2\" height=\"$3\" href"]]]]

User avatar
PseudoDistant
Moonbather
Moonbather
Posts: 73
Joined: 2024-02-06, 20:19

Re: Newgrounds user avatar not displaying 2 (Electric Boogaloo)

Unread post by PseudoDistant » 2024-03-05, 14:24

adoxa wrote:
2024-03-03, 23:31
Ah, silly me.

Code: Select all

[["/newgrounds\\.com/",["/^/",["/(<svg.*?)(\\d+) (\\d+)(\"[\\s\\S]*?<image )href/g","$1$2 $3$4width=\"$2\" height=\"$3\" href"]]]]
That seems to mostly fix it, but wouldn't it be better to properly support this than to modify the HTTP request? Or is there something I'm missing? :?
Eat your school.
Eat your drugs.
Eat your teeth.

User avatar
adoxa
Fanatic
Fanatic
Posts: 170
Joined: 2019-03-16, 13:26

Re: Newgrounds user avatar not displaying 2 (Electric Boogaloo)

Unread post by adoxa » 2024-03-05, 23:56

Of course. At some point I hope to, but not just yet.

User avatar
PseudoDistant
Moonbather
Moonbather
Posts: 73
Joined: 2024-02-06, 20:19

Re: Newgrounds user avatar not displaying 2 (Electric Boogaloo)

Unread post by PseudoDistant » 2024-03-07, 19:35

adoxa wrote:
2024-03-05, 23:56
Of course. At some point I hope to, but not just yet.
Fair enough, I guess.
Eat your school.
Eat your drugs.
Eat your teeth.