Discuss Scratch
- Discussion Forums
- » Suggestions
- » Update/Revise the "Browser not supported" message.
- Zydrolic
-
1000+ posts
Update/Revise the "Browser not supported" message.
this is a pretty small issue but it's only because the message itself is outdated with its requirements (And as mentioned later on by @ajskateboarder — it's only checking for IE, which I actually did not realize LOL)
found the line in github (browser-modal.jsx line 46-52)
found the line in github (browser-modal.jsx line 46-52)
Now, this is quite ambigious (up for interpretation), have your ways. I'm not a HTML coder, I merely edited the original code and I have no idea how to check user-agent lol, however I feel as this would be better off in a github issue now that I think ‘bout it, people over there might resolve this better. If an issue on the scratch-www github (or any scratch-related page that contains a mention of this in general) exists, I’ll close this as then it's extraneous to keep as people on the github pages probably know alot better.
So I'd realized (while looking for the banner color for a question on QaS) that the unsupported browser message is actually somewhat outdated (atleast judging from the code):

Red means outdated.
The code itself incase someone wishes to read it instead of directly grabbing it from just using inspect element (F12 or right click + inspect element):
[if lte IE 8]> <div class="unsupported-browser banner" data-cue="unsupported_browser"> <div class="container"> <span>Scratch supports Internet Explorer 9+. We suggest you upgrade to <a href="/info/faq/#requirements">a supported browser</a>, <a href="/scratch2download/">download the offline editor</a>, or <a href="https://en.scratch-wiki.info/wiki/List_of_Bug_Workarounds">read about common workarounds</a>.</span> </div> </div> <![endif]
Since it's currently out of date (and I cannot appear to find a suggestion related to updating or revising it, why not?)
Now I'm not a HTML Coder (i merely try to understand it at times) so I don't really have anything else other than having this revised version I thought of:
update to a supported browser or change to a supported browser (see “What are the requirements for Scratch?”), download the offline editor, or read about common workarounds.As an attempt of recreating this in HTML though I doubt I did it right: Your current browser is not supported, Scratch supports Chrome 63+, Edge 15+, Firefox 57+, Safari 11+. We suggest that you
[if lte IE 8]> <div class="unsupported-browser banner" data-cue="unsupported_browser"> <div class="container"> <span>Your current browser is not supported, Scratch supports Chrome 63+, Edge 15+, Firefox 57+, Safari 11+. We suggest that you <a href="/info/faq/#requirements">update to a supported browser or change to a supported browser (see "What are the requirements for Scratch?")</a>, <a href="/download">download the offline editor</a>, or <a href="https://en.scratch-wiki.info/wiki/List_of_Bug_Workarounds">read about common workarounds</a>.</span> </div> </div> <![endif]

or just update the message to use the newer URLs (/download and remove #requirements from the URL, or just re-add requirements as a section to the FAQ)
EDIT: Fixed something (I forgot what I fixed)
EDIT2: made “HTML” in the [code=HTML]…[/code] tag lowercase so its recognized. The code line doesn't load for me so I can't view it (for whatever reason).
Last edited by Zydrolic (Nov. 4, 2023 21:11:39)
- scratchcode1_2_3
-
1000+ posts
Update/Revise the "Browser not supported" message.
Support! It's actually kinda weird that it hasn't been updated yet, including the fact that IE doesn't even let you use it anymore and redirects you to Microsoft Edge and you have to do a bunch of extra steps to get it blah blah blah
And also, you did good with the HTML! Let me test it out…

Yup! Works just fine
And also, you did good with the HTML! Let me test it out…

Yup! Works just fine

- medians
-
1000+ posts
Update/Revise the "Browser not supported" message.
Actually, it might not matter that much though because (at least when I last checked) /scratch2download redirects to /download
This is only on scratchr2 pages. Support! It's actually kinda weird that it hasn't been updated yet, including the fact that IE doesn't even let you use it anymore and redirects you to Microsoft Edge and you have to do a bunch of extra steps to get it blah blah blah
And also, you did good with the HTML! Let me test it out…
Yup! Works just fine
- scratchcode1_2_3
-
1000+ posts
Update/Revise the "Browser not supported" message.
(#3)ye
Actually, it might not matter that much though because (at least when I last checked) /scratch2download redirects to /downloadThis is only on scratchr2 pages. Support! It's actually kinda weird that it hasn't been updated yet, including the fact that IE doesn't even let you use it anymore and redirects you to Microsoft Edge and you have to do a bunch of extra steps to get it blah blah blah
And also, you did good with the HTML! Let me test it out…
Yup! Works just fine
I've seen the 3.0 one before, but it's just a bit of text, right? I would say it would take a maximum of a month to fix

edit: wait why does the div actually work in 3.0 pages

Last edited by scratchcode1_2_3 (Oct. 1, 2023 21:27:58)
- medians
-
1000+ posts
Update/Revise the "Browser not supported" message.
scratch-www might use similar class names then or sth. I've seen the 3.0 one before, but it's just a bit of text, right? I would say it would take a maximum of a month to fix
edit: wait why does the div actually work in 3.0 pages
- ajskateboarder
-
1000+ posts
Update/Revise the "Browser not supported" message.
This code - the [if lte IE 8]> part specifically - is specific to IE and other browsers will just ignore it (Silly Microsoft haha), so you will need some other logic for checking if the browser is unsupported. Perhaps the user agent? As an attempt of recreating this in HTML though I doubt I did it right:[if lte IE 8]>
<div class="unsupported-browser banner" data-cue="unsupported_browser">
<div class="container">
<span>Your current browser is not supported, Scratch supports Chrome 63+, Edge 15+, Firefox 57+, Safari 11+. We suggest that you <a href="/info/faq/#requirements">update to a supported browser or change to a supported browser (see "What are the requirements for Scratch?")</a>, <a href="/download">download the offline editor</a>, or <a href="https://en.scratch-wiki.info/wiki/List_of_Bug_Workarounds">read about common workarounds</a>.</span>
</div>
</div>
<![endif]
- Zydrolic
-
1000+ posts
Update/Revise the "Browser not supported" message.
(#2)it's honestly fair that its somewhat out of date (atleast in wording) because they have alot more important things to deal with most likely
Support! It's actually kinda weird that it hasn't been updated yet, including the fact that IE doesn't even let you use it anymore and redirects you to Microsoft Edge and you have to do a bunch of extra steps to get it blah blah blah
And also, you did good with the HTML! Let me test it out…
Yup! Works just fine
also nice since i just edited the code lol
(#3)Yeah it does redirect to download, lol im blind
Actually, it might not matter that much though because (at least when I last checked) /scratch2download redirects to /download
(#6)Yeaaa i was lazy to edit since I barely edit HTML (so I just kept IE 8 in instead)
This code - the > part specifically - is specific to IE and other browsers will just ignore it (Silly Microsoft haha), so you will need some other logic for checking if the browser is unsupported. Perhaps the user agent?
- NotK3ndricAlt
-
1000+ posts
Update/Revise the "Browser not supported" message.
It should say that it supports mobile devices also.
- Zydrolic
-
1000+ posts
Update/Revise the "Browser not supported" message.
(#8)This is still assuming that the user is using PC, however I'll do it I guess.
It should say that it supports mobile devices also.
EDIT: Nevermind — I can't think of any way it'd fit.
Last edited by Zydrolic (Oct. 2, 2023 15:42:22)
- gdfsgdfsgdfg
-
1000+ posts
Update/Revise the "Browser not supported" message.
I think the version on mobile is the same as pc(#8)This is still assuming that the user is using PC, however I'll do it I guess.
It should say that it supports mobile devices also.
EDIT: Nevermind — I can't think of any way it'd fit.
thats what I think on chrome
My browser / operating system: IPad iOS 16.6, ChromeiOS 117.0.5938.117, No Flash version detected
Last edited by gdfsgdfsgdfg (Oct. 2, 2023 15:52:40)
- Zydrolic
-
1000+ posts
Update/Revise the "Browser not supported" message.
(#10)It is the same (atleast judging from trying to look for any mobile-check in HTML)
I think the version on mobile is the same as pc
thats what I think on chrome
My browser / operating system: IPad iOS 16.6, ChromeiOS 117.0.5938.117, No Flash version detected
- Zydrolic
-
1000+ posts
Update/Revise the "Browser not supported" message.
(#11)(an edit would be basically worthless now)(#10)It is the same (atleast judging from trying to look for any mobile-check in HTML)
I think the version on mobile is the same as pc
thats what I think on chrome
My browser / operating system: IPad iOS 16.6, ChromeiOS 117.0.5938.117, No Flash version detected
Just to clarify I'd snooped around in other parts of the HTML (other than the browser checksum itself) and it indeed doesn't have a check
EDIT: Fixed it up
Last edited by Zydrolic (Oct. 4, 2023 19:46:30)
- Zydrolic
-
1000+ posts
Update/Revise the "Browser not supported" message.
Bruhmp again, discussion is basically like a 404 on this
- Zydrolic
-
1000+ posts
Update/Revise the "Browser not supported" message.
bump bruhmp
Last edited by Zydrolic (Oct. 6, 2023 16:34:35)
- medians
-
1000+ posts
Update/Revise the "Browser not supported" message.
Also, for some reason I didn't realize /info/faq moved for a second, but that one redirects to /faq. The resources part of the footer on scratchr2 still is /info/faq by the way.(#3)Yeah it does redirect to download, lol im blind
Actually, it might not matter that much though because (at least when I last checked) /scratch2download redirects to /download
- Zydrolic
-
1000+ posts
Update/Revise the "Browser not supported" message.
(#18)Well I guess those could be updated but
Also, for some reason I didn't realize /info/faq moved for a second, but that one redirects to /faq. The resources part of the footer on scratchr2 still is /info/faq by the way.
that's a different suggestion
EDIT: Aka probably not here lol
Last edited by Zydrolic (Oct. 7, 2023 16:30:10)
- Discussion Forums
- » Suggestions
-
» Update/Revise the "Browser not supported" message.