Sign in Online Learning and Training - O'Reilly Media

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
txx28
Newbie
Newbie
Posts: 5
Joined: 2019-01-22, 12:07

Sign in Online Learning and Training - O'Reilly Media

Unread post by txx28 » 2021-11-14, 14:14

When I go to

https://www.oreilly.com/member/login/?n ... &locale=en

and try to sign in, I could not do so. I can do it in FF.

In Console window, I see this error:

Code: Select all

SyntaxError: expected expression, got '?'[Learn More]
Please help!

User avatar
txx28
Newbie
Newbie
Posts: 5
Joined: 2019-01-22, 12:07

Re: Sign in Online Learning and Training - O'Reilly Media

Unread post by txx28 » 2021-11-16, 17:27

Any updates?


New Tobin Paradigm

Re: Sign in Online Learning and Training - O'Reilly Media

Unread post by New Tobin Paradigm » 2021-11-19, 21:11

This is an authoritative post: viewtopic.php?f=62&t=27497#p221033

User avatar
txx28
Newbie
Newbie
Posts: 5
Joined: 2019-01-22, 12:07

Re: Sign in Online Learning and Training - O'Reilly Media

Unread post by txx28 » 2021-11-20, 05:55

So, it means the error is there because of nullish ?? coalesce operator, as MoonChild said so on above authoritative thread. Right? I could see expressions like

{invalid:a,value:r??"",validator:o,valid:!a}}

within the source code.

What is the workaround here?

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

Re: Sign in Online Learning and Training - O'Reilly Media

Unread post by Moonchild » 2021-11-20, 08:26

txx28 wrote:
2021-11-20, 05:55
What is the workaround here?
The workaround is using a different browser for this website.
"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

User avatar
txx28
Newbie
Newbie
Posts: 5
Joined: 2019-01-22, 12:07

Re: Sign in Online Learning and Training - O'Reilly Media

Unread post by txx28 » 2021-11-28, 13:32

May be I could write a quick Pale Moon add-on which will manually login to the site via add-on JS code. This way, required cookies, etc. would be set. Can you point me to a sample / demo add-on wherein I can write JS code to do an XHR? I can, of course, use FF to find out correct URL and/or POST data needed for XHR.

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4942
Joined: 2015-12-09, 15:45
Contact:

Re: Sign in Online Learning and Training - O'Reilly Media

Unread post by moonbat » 2021-11-29, 00:17

Don't need an addon, this can be accomplished by a userscript. Look up the Greasemonkey guide for more info. Goes without saying you need to install Greasemonkey for Pale Moon first.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

User avatar
txx28
Newbie
Newbie
Posts: 5
Joined: 2019-01-22, 12:07

Re: Sign in Online Learning and Training - O'Reilly Media

Unread post by txx28 » 2021-11-29, 13:20

Great! Thanks for the help. I will install GreaseMonkey Pale Moon add-on and will try it.

Locked