en.wikipedia.org/wiki/Main_Page no search box

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.
Zorba
Hobby Astronomer
Hobby Astronomer
Posts: 29
Joined: 2018-04-29, 08:43

en.wikipedia.org/wiki/Main_Page no search box

Post by Zorba » 2024-06-21, 07:39

Recently I'm getting no usable search box displayed on Wikipedia (should be on top of page).

https://en.wikipedia.org/wiki/Main_Page

There are no errors in the console...

Is it just me? Thanks

User avatar
suzyne
Astronaut
Astronaut
Posts: 739
Joined: 2023-06-28, 22:43
Location: Australia

Re: en.wikipedia.org/wiki/Main_Page no search box

Post by suzyne » 2024-06-21, 08:14

Zorba wrote:
2024-06-21, 07:39
Is it just me?
I can't confirm that you are the only one, but I can report that it is working for me. (Pale Moon 33.2.0, Windows 64-bit).

In case it's relevant, except for uBlockOrigin, I don't have any add-ons that mess with the styling or html of web pages.

Image

User avatar
Night Wing
Knows the dark side
Knows the dark side
Posts: 5455
Joined: 2011-10-03, 10:19
Location: Piney Woods of Southeast Texas, USA

Re: en.wikipedia.org/wiki/Main_Page no search box

Post by Night Wing » 2024-06-21, 09:01

The search box is there and works for me too.

At this time I am using 64 bit linux Pale Moon (GTK2) 33.2.0 running in 64 bit linux Mint 21.3 (Virginia) Xfce. And I have the old uBlock Origin 1.16.4.30 extension enabled for Wikipedia.

Zorba
Hobby Astronomer
Hobby Astronomer
Posts: 29
Joined: 2018-04-29, 08:43

Re: en.wikipedia.org/wiki/Main_Page no search box

Post by Zorba » 2024-06-21, 12:22

That's odd, I'm on 33.2.0 (Windows 7 64bit). Disabled all extensions/language pack, still no search box.

Only other thing is I've got an ad blocking hosts file, but that can't be it...

User avatar
Basilisk-Dev
Lunatic
Lunatic
Posts: 497
Joined: 2022-03-23, 16:41
Location: Chamber of Secrets

Re: en.wikipedia.org/wiki/Main_Page no search box

Post by Basilisk-Dev » 2024-06-21, 13:23

Can you post a screenshot? The searchbox is there for me.

Zorba
Hobby Astronomer
Hobby Astronomer
Posts: 29
Joined: 2018-04-29, 08:43

Re: en.wikipedia.org/wiki/Main_Page no search box

Post by Zorba » 2024-06-21, 16:17

Screenshots attached, ws1: regular ws2: maximized. Actually, the problem only occurs when the PM window is not maximized.
You do not have the required permissions to view the files attached to this post.

User avatar
RealityRipple
Keeps coming back
Keeps coming back
Posts: 863
Joined: 2018-05-17, 02:34
Location: Los Berros Canyon, California

Re: en.wikipedia.org/wiki/Main_Page no search box

Post by RealityRipple » 2024-06-21, 16:26

It's still there, it's just been shrunk to an icon: the magnifying glass. Welcome to modern web design.

However, nothing happens when you click the magnifying glass...

User avatar
suzyne
Astronaut
Astronaut
Posts: 739
Joined: 2023-06-28, 22:43
Location: Australia

Re: en.wikipedia.org/wiki/Main_Page no search box

Post by suzyne » 2024-06-21, 20:49

For me, when the width of the browser window is about 1100 pixels or more the search bar is visible. But any less than that and the magnifying glass replaces it. And as @RealityRipple says, a click on that icon does nothing.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37792
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: en.wikipedia.org/wiki/Main_Page no search box

Post by Moonchild » 2024-06-21, 22:37

For me, the search bar is always visible; but it's also in a slightly different location, on the right. This may have something to do with me usually being logged in to Wikipedia?

Kris_88
Board Warrior
Board Warrior
Posts: 1112
Joined: 2021-01-26, 11:18

Re: en.wikipedia.org/wiki/Main_Page no search box

Post by Kris_88 » 2024-06-21, 23:10

Moonchild wrote:
2024-06-21, 22:37
For me, the search bar is always visible; but it's also in a slightly different location, on the right. This may have something to do with me usually being logged in to Wikipedia?
You are probably using a different skin that a registered user can choose.
Or it can be specified explicitly even without being registered:
https://en.wikipedia.org/wiki/Main_Page?useskin=vector

Off-topic:
By the way, have you seen this?
viewtopic.php?f=3&t=30123&p=252616#p252616

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

Re: en.wikipedia.org/wiki/Main_Page no search box

Post by adoxa » 2024-06-22, 02:48

It's another problem with max-width within @media using calc. Here's a HTTP Modify Response workaround.

Code: Select all

[["en.wikipedia.org",["/styles/",["/\\(max-width:calc\\(1120px - 1px\\)/g","(max-width:1119px"]]]]
(There's also a 640px version I didn't change.)

Zorba
Hobby Astronomer
Hobby Astronomer
Posts: 29
Joined: 2018-04-29, 08:43

Re: en.wikipedia.org/wiki/Main_Page no search box

Post by Zorba » 2024-06-22, 07:51

I tried using LibreWolf, the search box also disappears when the window becomes narrow, but clicking on the resulting symbol works.

SemiKebab
Moonbather
Moonbather
Posts: 58
Joined: 2021-05-30, 03:48

Re: en.wikipedia.org/wiki/Main_Page no search box

Post by SemiKebab » 2024-06-22, 08:29

I confirm the bug. Using the Vector 2022 interface (which is the default one), and when the window width is below 1120px (which is the breakpoint between tablet and desktop layouts).

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37792
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: en.wikipedia.org/wiki/Main_Page no search box

Post by Moonchild » 2024-06-22, 08:45

Seems people in general don't like that "new" theme and have been reporting multiple issues with it. Maybe this should be mentioned there too, e.g. on the discussion page of the theme or what not.

SemiKebab
Moonbather
Moonbather
Posts: 58
Joined: 2021-05-30, 03:48

Re: en.wikipedia.org/wiki/Main_Page no search box

Post by SemiKebab » 2024-06-22, 09:05

I have found the issue.

That is because, since recently, there are some uses of calc() in media queries. e.g.:

Code: Select all

@media screen and (max-width: calc(...)) {
    .foobar {
        ...
    }
}
Refs: https://phabricator.wikimedia.org/T367103

----

Such use of calc() seems to not be in the specs (yet), though it is already supported in all browsers, except Pale Moon.

Refs: https://stackoverflow.com/questions/236 ... ia-queries

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37792
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: en.wikipedia.org/wiki/Main_Page no search box

Post by Moonchild » 2024-06-22, 09:13

If it's not in the spec they shouldn't be using it :P
I mean, I didn't even think of ever using calc there. sure, it's easy to assume you can just use arbitrary calculations everywhere but this is still CSS, not a programming language. Implementing something like this on the parser side is going to be difficult, as well.

SemiKebab
Moonbather
Moonbather
Posts: 58
Joined: 2021-05-30, 03:48

Re: en.wikipedia.org/wiki/Main_Page no search box

Post by SemiKebab » 2024-06-22, 09:23

I shouldn't have had mentioned that it's (presumably) not in the specs. Shot myself in the foot.

For me, such use of calc() is perfectly fine. And all other browsers have implemented this since 2018.

But if you say it would be hard to implement… okay then.

SemiKebab
Moonbather
Moonbather
Posts: 58
Joined: 2021-05-30, 03:48

Re: en.wikipedia.org/wiki/Main_Page no search box

Post by SemiKebab » 2024-06-22, 09:31

Still, please don't reject the feature, at least keep it on radar.

Case in point, search is currenly broken on Wikipedia (which is quite a major website) for a lot of people.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37792
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: en.wikipedia.org/wiki/Main_Page no search box

Post by Moonchild » 2024-06-22, 09:43

I'm not saying anything about rejecting this. We have an open issue to support calc() in more places, but it's not in any way easy to do, especially since we can't draw on inspiration from what Mozilla has done as they held off on all of that themselves, as well, until they could put it all in Rust.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37792
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: en.wikipedia.org/wiki/Main_Page no search box

Post by Moonchild » 2024-06-22, 12:26

Kris_88 wrote:
2024-06-21, 23:10
Off-topic:
By the way, have you seen this?
viewtopic.php?f=3&t=30123&p=252616#p252616
Off-topic:
Yes, I kept it open in a separate tab to look at. won't be this weekend, I may forget. please open an issue on the UXP repo for it as it sounds like something we want, at least the part of not caring about the order of fields