noai.duckduckgo.com shows a HUGE duck

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.
Lucio Chiappetti
Keeps coming back
Keeps coming back
Posts: 895
Joined: 2014-09-01, 15:11
Location: Milan Italy

noai.duckduckgo.com shows a HUGE duck

Post by Lucio Chiappetti » 2026-01-20, 15:10

Since a few days noai.duckduckgo.com shiws a huge duck logo on top, occupying 90% of the screen height.
I thought it was some temporary celebration or so, but I see it persists.
Is there a way toi reduce suche logo to a more human size ?
The reasonable man adapts himself to the world: the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. (G.B. Shaw)

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2519
Joined: 2018-05-05, 13:29

Re: noai.duckduckgo.com shows a HUGE duck

Post by vannilla » 2026-01-20, 15:34

The issue is an "unconstrained" SVG image.
In short, DDG needs to set the width and height attributes in the SVG element, but it does not.
Chrome probably has a quirk where it takes the viewBox attribute as a shorthand for width and height, which is technically incorrect, while Pale Moon (and UXP in general) rightfully tries to fill the entire available space with the contents of the SVG.

You can hack the site's style with e.g. Stylem to fix it by using the following snippet:

Code: Select all

[class*=logoIconWrap] {
  width: 128px;
  height: auto;
}
128 is the value specified in the viewBox so I suppose it's a good assumption to make about the intended result, but feel free to experiment as the actual value is irrelevant as long as it's an absolute value.

It is obviously the responsibility of DDG to explicitly set an appropriate width and height attribute, the above merely is a quick and dirty hack. Maybe you might want to get in touch with them?

User avatar
Moonchild
Project founder
Project founder
Posts: 38825
Joined: 2011-08-28, 17:27
Location: Sweden

Re: noai.duckduckgo.com shows a HUGE duck

Post by Moonchild » 2026-01-20, 15:47

Seem like it's an unconstrained SVG inside a flex wrapper. I've shot my DDG contact an e-mail because that seems to be a web design bug. Chrome will likely behave differently :P

EDIT: mid-aired with vannilla. I linked DDG the analysis above in a follow-up.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
Tharthan
Board Warrior
Board Warrior
Posts: 1445
Joined: 2019-05-20, 20:07
Location: New England

Re: noai.duckduckgo.com shows a HUGE duck

Post by Tharthan » 2026-01-30, 13:36

vannilla wrote:
2026-01-20, 15:34
You can hack the site's style with e.g. Stylem to fix it by using the following snippet:

Code: Select all

[class*=logoIconWrap] {
  width: 128px;
  height: auto;
}
I've never used Stylem before. Would something like this work with Greasemonkey?

If so, how would I set it to apply to noai.duckduckgo.com ?
"This is a war against individuality and intelligence. Only thing we can do is stand strong."adesh, 9 January 2020

"I used to think I was a grumpy old man, but I don't hold a candle compared to Tharthan."Cassette, 9 September 2020

User avatar
jobbautista9
Board Warrior
Board Warrior
Posts: 1137
Joined: 2020-11-03, 06:47
Location: Philippines

Re: noai.duckduckgo.com shows a HUGE duck

Post by jobbautista9 » 2026-01-30, 13:54

Greasemonkey can't directly apply CSS; it only does JavaScript. You can change the width attribute of the logo SVG though with this one-liner when you create a new userscript:

Code: Select all

document.querySelector("svg[class*=logoIcon]").setAttribute("width", 128);
Image

Tired of creating stuff!

Avatar artwork by Shinki669: https://www.pixiv.net/artworks/113645617

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

Lucio Chiappetti
Keeps coming back
Keeps coming back
Posts: 895
Joined: 2014-09-01, 15:11
Location: Milan Italy

Re: noai.duckduckgo.com shows a HUGE duck

Post by Lucio Chiappetti » 2026-01-30, 13:55

I just placed the code in chrome/userContent.css in my profile
The reasonable man adapts himself to the world: the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. (G.B. Shaw)

User avatar
Mæstro
Keeps coming back
Keeps coming back
Posts: 911
Joined: 2019-08-13, 00:30
Location: Casumia

Re: noai.duckduckgo.com shows a HUGE duck

Post by Mæstro » 2026-01-30, 14:09

Moonchild wrote:
2026-01-20, 15:47
Seem like it's an unconstrained SVG inside a flex wrapper… that seems to be a web design bug.
Is it related to the general one which I reported about a fortnight ago? I have got Signor Chiappetti’s problem also, and supposed so.
Life is a fever dream Mæstro would enjoy.
How is your computer at 96°C and not on fire?
All posts 100% organic. Ash is the best letter.
What is being nice online?
Debian 10 ELTS / Official PM build

User avatar
fatboy
Astronaut
Astronaut
Posts: 581
Joined: 2017-12-19, 08:03
Location: Canada

Re: noai.duckduckgo.com shows a HUGE duck

Post by fatboy » 2026-01-30, 18:37

Huge is an understatement, that thing is bigger than the eiffel tower haha
Systemd Free - MX Linux, Antix Linux & Artix Linux

User avatar
frostknight
Keeps coming back
Keeps coming back
Posts: 863
Joined: 2022-08-10, 02:25

Re: noai.duckduckgo.com shows a HUGE duck

Post by frostknight » 2026-01-30, 18:47

Lucio Chiappetti wrote:
2026-01-20, 15:10
Since a few days noai.duckduckgo.com shiws a huge duck logo on top, occupying 90% of the screen height.
I thought it was some temporary celebration or so, but I see it persists.
Is there a way toi reduce suche logo to a more human size ?
When I try to load that url, it shows me nothing at all.
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Say NO to Fascism and Corporatism as much as possible!
Also, Peace Be With us All!

User avatar
Mæstro
Keeps coming back
Keeps coming back
Posts: 911
Joined: 2019-08-13, 00:30
Location: Casumia

Re: noai.duckduckgo.com shows a HUGE duck

Post by Mæstro » 2026-01-30, 19:10

On the No ÀI subdomain, I have µBlock configured to permit first-party scripts, including inline, I had the same problem as in the original post. Likewise, Shinki’s user script (or rather, second-party script) works for me. I would be curious to how to adapt this script to deal with my other oversized SVG icons.
Life is a fever dream Mæstro would enjoy.
How is your computer at 96°C and not on fire?
All posts 100% organic. Ash is the best letter.
What is being nice online?
Debian 10 ELTS / Official PM build

User avatar
Tharthan
Board Warrior
Board Warrior
Posts: 1445
Joined: 2019-05-20, 20:07
Location: New England

Re: noai.duckduckgo.com shows a HUGE duck

Post by Tharthan » 2026-02-01, 07:41

I'm still confused. The code that is being presented to me looks generic enough that it could apply to any SVG image, not just the one on noai.duckduckgo.com. I say that because I see no mention of noai.duckduckgo.com in the code.

So my question is:

1. Is Stylem the only thing that can fix this issue? If not, what do I need to put into Greasemonkey in order to fix the issue?

2. What code do I need in order to have whatever the fix is apply specifically to noai.duckduckgo.com?
"This is a war against individuality and intelligence. Only thing we can do is stand strong."adesh, 9 January 2020

"I used to think I was a grumpy old man, but I don't hold a candle compared to Tharthan."Cassette, 9 September 2020

User avatar
frostknight
Keeps coming back
Keeps coming back
Posts: 863
Joined: 2022-08-10, 02:25

Re: noai.duckduckgo.com shows a HUGE duck

Post by frostknight » 2026-02-01, 07:46

Hmmm I must be the only one who visits that page and I see absolutely nothing when I type in that link. lol.

Maybe its because I am not typing in a search though...

That happens to em when I use duckduckgo at all.
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Say NO to Fascism and Corporatism as much as possible!
Also, Peace Be With us All!

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2519
Joined: 2018-05-05, 13:29

Re: noai.duckduckgo.com shows a HUGE duck

Post by vannilla » 2026-02-01, 12:40

Tharthan wrote:
2026-02-01, 07:41
I'm still confused. The code that is being presented to me looks generic enough that it could apply to any SVG image, not just the one on noai.duckduckgo.com. I say that because I see no mention of noai.duckduckgo.com in the code.

So my question is:

1. Is Stylem the only thing that can fix this issue? If not, what do I need to put into Greasemonkey in order to fix the issue?

2. What code do I need in order to have whatever the fix is apply specifically to noai.duckduckgo.com?
It targets a specific component of the page, you can't move it around without modifying it.
Stylem is the most convenient, you can use userContent.css too. I advise against Greasemonkey because it's worse even though it works.

If you don't want to install Stylem look up a tutorial on using userContent, I think there is at least one on this forum too. Otherwise, if you have stylem navigate to the website and click the Stylem toolbar button, there's a menu entry to create a style for the whole site. When you click it the extension will generate a CSS for you where you can paste the snippet of code above, inside the block delimited by braces.

User avatar
Behemot
Newbie
Newbie
Posts: 6
Joined: 2026-01-25, 23:56

Re: noai.duckduckgo.com shows a HUGE duck

Post by Behemot » 2026-02-03, 14:16

Isn't it actually better to write to them duck ppl so they fix it on their side (which is the correct one for the fix)? I'd expect duck ppl in particular to actually listen to feedback :ugeek:

User avatar
Moonchild
Project founder
Project founder
Posts: 38825
Joined: 2011-08-28, 17:27
Location: Sweden

Re: noai.duckduckgo.com shows a HUGE duck

Post by Moonchild » 2026-02-03, 15:18

I've been trying to get a response from my contacts at DDG but nothing so far.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
Mæstro
Keeps coming back
Keeps coming back
Posts: 911
Joined: 2019-08-13, 00:30
Location: Casumia

Re: noai.duckduckgo.com shows a HUGE duck

Post by Mæstro » 2026-02-03, 15:19

Some users here have indeed written the webmaster about this problem, but as I have noted a few times by now, oversized vector icons can appear often on websites with less understanding administrators. Client-side remedies have still got their place.
Life is a fever dream Mæstro would enjoy.
How is your computer at 96°C and not on fire?
All posts 100% organic. Ash is the best letter.
What is being nice online?
Debian 10 ELTS / Official PM build

User avatar
adoxa
Astronaut
Astronaut
Posts: 580
Joined: 2019-03-16, 13:26
Location: Qld, Aus.

Re: noai.duckduckgo.com shows a HUGE duck

Post by adoxa » 2026-02-04, 00:00

Here's another approach to fix it, by using a Modify HTTP Response filter to remove clamp.

Code: Select all

[["noai.duckduckgo.com",["/\\.css$/",["/clamp\\(.*?,(.*?),.*?\\)/g","$1"]]]]

User avatar
Moonchild
Project founder
Project founder
Posts: 38825
Joined: 2011-08-28, 17:27
Location: Sweden

Re: noai.duckduckgo.com shows a HUGE duck

Post by Moonchild » 2026-02-04, 14:06

It was picked up with some delay and apologies, but they jumped right on it once it was on the right desk and should now be fixed on DDG's end.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
Mæstro
Keeps coming back
Keeps coming back
Posts: 911
Joined: 2019-08-13, 00:30
Location: Casumia

Re: noai.duckduckgo.com shows a HUGE duck

Post by Mæstro » 2026-02-04, 14:40

Moonchild wrote:
2026-02-04, 14:06
[It] should now be fixed on DDG's end.
Can confirm! I removed the user script, and the logo now renders properly for me. :thumbup:
Now, I wonder about the more general problem of how to deal with my other oversized SVG icons, on other sites where CSS and JS are disabled… :problem:
Life is a fever dream Mæstro would enjoy.
How is your computer at 96°C and not on fire?
All posts 100% organic. Ash is the best letter.
What is being nice online?
Debian 10 ELTS / Official PM build

Lucio Chiappetti
Keeps coming back
Keeps coming back
Posts: 895
Joined: 2014-09-01, 15:11
Location: Milan Italy

Re: noai.duckduckgo.com shows a HUGE duck

Post by Lucio Chiappetti » 2026-02-04, 19:19

removed (commented out) in userContent and site works
View Source shows most (all?) SVG have a viewbox
The reasonable man adapts himself to the world: the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. (G.B. Shaw)