Reddit.com - infinte scroll and other issues on 28.9.3 64bit as of today Topic is solved

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
kelendral

Reddit.com - infinte scroll and other issues on 28.9.3 64bit as of today

Unread post by kelendral » 2020-05-29, 19:47

Anyone else having issues with the new/current Reddit in Pale Moon today?

Issues include broken infinite scroll. Being unable to up/down vote, being unable to change date range for Top sort, etc.

Started sometime today as it was working this morning before work.
Last edited by kelendral on 2020-05-29, 20:26, edited 2 times in total.

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

Re: Reddit

Unread post by Moonchild » 2020-05-29, 19:50

app.php/rules rule 5b. Please.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

kelendral

Re: Reddit Infinte Scroll and other issues on 28.9.3 64bit as of today

Unread post by kelendral » 2020-05-29, 20:03

Sorry, Edit done. Issue still remains.
As noted it was working earlier today. Configuration has not changed on local machines so I gather something changed on their end.
Similar behavior noted in Internet Explorer which pushes the recommendation to use 'old reddit'.
Behavior not reproduced in Firefox or Chrome.

Edit to Add a link:
https://www.reddit.com/r/free/new/
versus
https://old.reddit.com/r/free/new/

You'll have to check your preference if they both look the same or just click 'Get New Reddit' in top left.

User avatar
adesh
Board Warrior
Board Warrior
Posts: 1277
Joined: 2017-06-06, 07:38

Re: Reddit.com - infinte scroll and other issues on 28.9.3 64bit as of today

Unread post by adesh » 2020-05-30, 11:26

Web console:

Code: Select all

ReferenceError: globalThis is not defined[Learn More]  
Governance~Reddit.0b1495ab51c271daed46.js:1:334732
	c https://www.redditstatic.com/desktop2x/Governance~Reddit.0b1495ab51c271daed46.js:1:334732
	d https://www.redditstatic.com/desktop2x/Governance~Reddit.0b1495ab51c271daed46.js:1:334836
	./src/reddit/actions/reCaptchaEnterprise.ts/O< https://www.redditstatic.com/desktop2x/Governance~Reddit.0b1495ab51c271daed46.js:1:336612
	./src/reddit/actions/reCaptchaEnterprise.ts https://www.redditstatic.com/desktop2x/Governance~Reddit.0b1495ab51c271daed46.js:1:335525
	i https://www.redditstatic.com/desktop2x/runtime~Reddit.a1262282e103a90cafaf.js:1:594
	./src/reddit/index.tsx https://www.redditstatic.com/desktop2x/Reddit.f025f8fe068087df63b8.js:1:286699
	i https://www.redditstatic.com/desktop2x/runtime~Reddit.a1262282e103a90cafaf.js:1:594
	t https://www.redditstatic.com/desktop2x/runtime~Reddit.a1262282e103a90cafaf.js:1:430
	o https://www.redditstatic.com/desktop2x/runtime~Reddit.a1262282e103a90cafaf.js:1:293
	<anonymous> https://www.redditstatic.com/desktop2x/Reddit.f025f8fe068087df63b8.js:1:2

        

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

Re: Reddit.com - infinte scroll and other issues on 28.9.3 64bit as of today

Unread post by Moonchild » 2020-05-30, 13:57

If globalThis (ES2020/2021) is the problem then we're sorry but that is not yet part of UXP.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

New Tobin Paradigm

Re: Reddit.com - infinte scroll and other issues on 28.9.3 64bit as of today

Unread post by New Tobin Paradigm » 2020-05-30, 19:15

Issue #1570 (UXP) was created to track this.

User avatar
adesh
Board Warrior
Board Warrior
Posts: 1277
Joined: 2017-06-06, 07:38

Re: Reddit.com - infinte scroll and other issues on 28.9.3 64bit as of today

Unread post by adesh » 2020-05-31, 12:46

Confirming that infinite scroll and sorting works after including that commit in the build.

kelendral

Re: Reddit.com - infinte scroll and other issues on 28.9.3 64bit as of today

Unread post by kelendral » 2020-05-31, 14:26

Excellent news.
Thanks to everyone involved in this great browser.

brknsoul

Re: Reddit.com - infinte scroll and other issues on 28.9.3 64bit as of today

Unread post by brknsoul » 2020-06-01, 02:34

adesh wrote:
2020-05-31, 12:46
Confirming that infinite scroll and sorting works after including that commit in the build.
Is there a way for end users to get this build, or do we wait for an update to be pushed?

User avatar
adesh
Board Warrior
Board Warrior
Posts: 1277
Joined: 2017-06-06, 07:38

Re: Reddit.com - infinte scroll and other issues on 28.9.3 64bit as of today

Unread post by adesh » 2020-06-01, 06:30

You have to wait. Considering this is low risk and fixes some web breakage, it may be included in the next point release (if there is one) which may not be much far away. But I may be wrong and only Moonchild is authority in such matters.

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

Re: Reddit.com - infinte scroll and other issues on 28.9.3 64bit as of today

Unread post by Moonchild » 2020-06-01, 08:28

Firefox has a release tomorrow so we'll have a sec point release shortly (depending on MozSec release of bugs to me) after -- there are a few regression and web compat fixes lined up to be joined by the sec patches for a point release, and this one will be uplifted to release for it.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

brknsoul

Re: Reddit.com - infinte scroll and other issues on 28.9.3 64bit as of today

Unread post by brknsoul » 2020-06-01, 10:10

Moonchild wrote:
2020-06-01, 08:28
Firefox has a release tomorrow so we'll have a sec point release shortly (depending on MozSec release of bugs to me) after -- there are a few regression and web compat fixes lined up to be joined by the sec patches for a point release, and this one will be uplifted to release for it.
Excellent. Thanks for the work on this. Ever since Opera died (v12), and Firefox broke addons, Pale Moon and/or Basilisk have become my fave browsers, sporting some addons that I can't live without.

Octopuss

Re: Reddit.com - infinte scroll and other issues on 28.9.3 64bit as of today

Unread post by Octopuss » 2020-06-01, 19:53

could anyone of this be a reason why I cannot post anywhere on reddit, getting either blank editor or red stop sign over post button, among other things?

kelendral

Re: Reddit.com - infinte scroll and other issues on 28.9.3 64bit as of today

Unread post by kelendral » 2020-06-02, 10:08

Using this slightly modified Grease/Violent/Tamper Monkey script that I saw on reddit with Pale Moon and it appears to work for now till the update

Code: Select all

// ==UserScript==  
// @name         reddit globalThis fix  
// @match        https://www.reddit.com/*  
// @grant    none
// ==/UserScript==  
unsafeWindow.globalThis = window;  

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

Re: Reddit.com - infinte scroll and other issues on 28.9.3 64bit as of today

Unread post by Moonchild » 2020-06-02, 10:14

It underlines exactly how silly some of this later ES scripting stuff is, doesn't it?
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

kelendral

Re: Reddit.com - infinte scroll and other issues on 28.9.3 64bit as of today

Unread post by kelendral » 2020-06-02, 12:29

Yes, if it was truly needed a userscript should not have been able to fix the issue. Just more change for change's sake without rhyme or reason.
I suppose I shouldn't say no reason. It does keep the big guys dominant and hurt competition.

Lurker_01
Fanatic
Fanatic
Posts: 122
Joined: 2015-06-12, 14:59
Location: Uruguay

Re: Reddit.com - infinte scroll and other issues on 28.9.3 64bit as of today

Unread post by Lurker_01 » 2020-06-02, 18:44

kelendral wrote:
2020-06-02, 10:08
Tamper Monkey script that ... appears to work for now till the update
Off-topic:
I believe this solution is incomplete and naive per https://v8.dev/features/globalthis but it will work just fine considering we are dealing with the browser platform only, otherwise using an official polyfill or this monstrosity https://mathiasbynens.be/notes/globalthis is a better platform agnostic solution, through probably not needed.

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

Re: Reddit.com - infinte scroll and other issues on 28.9.3 64bit as of today

Unread post by Moonchild » 2020-06-02, 18:56

No need to call in a surgeon when a bandaid will do.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

brknsoul

Re: Reddit.com - infinte scroll and other issues on 28.9.3 64bit as of today

Unread post by brknsoul » 2020-06-03, 06:09

kelendral wrote:
2020-06-02, 10:08
Using this slightly modified Grease/Violent/Tamper Monkey script that I saw on reddit with Pale Moon and it appears to work for now till the update

Code: Select all

// ==UserScript==  
// @name         reddit globalThis fix  
// @match        https://www.reddit.com/*  
// @grant    none
// ==/UserScript==  
unsafeWindow.globalThis = window;  
Cool.. It works, and if it works, I'm happy.
Like Moonchild says; bandaid and superglue will do until the surgeon comes along. Thank you!

New Tobin Paradigm

Re: Reddit.com - infinte scroll and other issues on 28.9.3 64bit as of today

Unread post by New Tobin Paradigm » 2020-06-03, 06:26

If you are gonna use this you should really do it in polyfill style and check if it already exists and if not then assign it else it will bust scripting in the next version. Tho I can't believe you guys couldn't have waited for the next release to fix a poorly coded shithole like reddit.

Locked