LinkedIn script not working

I noticed my LinkedIn did not work over the past week (not checked in FF & Chrome & Opera).

Tr3b's picture

Just verified my LinkedIn using script dated 10.08.12 and works

Strangely enough... I just added my linkedin account with 2012-10-08 script and it can't check for mail although it will log in, in a new tab.

jeroen's picture

@RpD: Same here.

jeroen's picture

Cleared cache and cookies, not working in new FF profile either and the log file stays empty.

@RpD: When clicking the LinkedIn account from the XN popup, it opens in new tab, but I have to fill in username/password. What was causing that again? Same when I go to new tab from facebook f.i.

jeroen's picture

Checking 'Keep session for links' solves it for facebook, but not for LinkedIn.

jeroen's picture

But Tr3b's script with same date is working.

@Tr3b: I downloaded it fresh from the scripts page. Size is 2.15 kB (4kB on disk). Same as yours? And still working when you delete your script and reinstall the latest one from the scripts page?

@tobwithu: Just covering all the bases ;-)

My Thunderbird auto logs in... I have 'Enable auto login' and 'Auto login default account' checked there.
In Firefox, I was having the same not-logging in, in tab, as you... looked at Options and Auto login default account was -not- checked... checkmarking it fixed auto login.

Tr3b might not want to fuss with it... if it ain't broke, don't (fuss with) it ;)

 

 

jeroen's picture

Haha, I glanced at 'Enable auto login' and thought no, but yes: that works again. Thanks RpD!

About the fuss: point taken. Although Tr2b can save his working script. Or he could copy/paste it here, so we can compare it with ours. Then again it's a shot in the dark. Like I said: Just covering all the bases...

Tr3b's picture

My script has just quit working while I was testing.  What I did is log out of my LinkedIn session and then click on the LinkedIn account in my sidebar and I was asked to login.  Apparently my user/pass is filled in, I just need to hit "enter"

jeroen's picture

That's normal behavior. You clicked the account before XN reached its next checking cycle.

Tr3b's picture

Once XN finished and was logged into LinkedIn, I clicked on LinkedIn in my sidebar and it logged in.  I then logged out, did another manual "Check Now" and then clicked on LinkedIn in my sidebar again and I was prompted for user/pass (but it was filled in).

 

jeroen's picture

Well, I can only conclude once and again the login process fails. Session between server and client may not be established. And that will result in failing to extract the necessary data to be extracted from the failing server response. With me and RpD it is permanent. I am only puzzled why your script can establish session with the server.

And that part of the script is still far from straight forward to me and requires documentation and clarification from tobwithu. Guess it is not straight forward, because it depends on the specific webserver behavior.

So lets wait and give tobwithu time to investigate.

Tr3b's picture

Since I was nt able to automatically login to LinkedIn after logging out, I shut down Cyberfo (Portable), waited till all the files cleared and fire it back up...LinkedIn was working again.

 

jeroen's picture

@tobwithu: Did a debug. Following match is not found.
<code>
var fnd=aData.match(/(https:\/\/www.google.com\/recaptcha\/api\/challenge\S+?)"/);  
</code>

I get  process ST_LOGIN_RES stage: 201 not fnd from below code:

<code>
case ST_LOGIN_RES:
    Components.utils.reportError("process ST_LOGIN_RES stage: "+this.stage);
    var fnd=aData.match(/(https:\/\/www.google.com\/recaptcha\/api\/challenge\S+?)"/);  
    if(fnd){
      var fnd2=aData.match(/<input.+?type="hidden".+?name="csrfToken".+?value="(.+?)"/);
      if(fnd2){
        this.post=this.getForm(aData,"captcha");
        this.getHtml(fnd[1]);
        return false;
      }     
      Components.utils.reportError("process ST_LOGIN_RES stage: "+this.stage+" not fnd2");
    }
    Components.utils.reportError("process ST_LOGIN_RES stage: "+this.stage+" not fnd");
    break;
</code>

jeroen's picture

Should I disable rich text to get the html formatting?

var fnd=aData.match(/(https:\/\/www.google.com\/recaptcha\/api\/challenge\S+?)"/);

Yep ;-)

tobwithu's picture

I updated the linkedin script.Now you can get notification for invitation too.
Uncheck 'Notify inbox only' if you want notification for invitaion.

Tr3b's picture

Works like a charm.  I like seeing the invitation notification.

:thumbs:

jeroen's picture

All is well :-)

The new Scripts update checker doesn't see an update for me... (for LinkedIn script).
In Thunderbird, if I click the 'account' in pop-up list, it goes to the Scripts page, where new LinkIn is at top of list.
In Firefox/Sea Monkey, if I click the 'account', it goes to the Updated Scripts page, and there's nothing listed.

Also, if I put an incorrect password for the username that I use for Scripts (and Forums), X-Notifier doesn't say 'Not checked'. The account will go black in the pop-up list, but no results. 

If I leave the password blank, then Scripts in the account list remains gray, and will prompt me for password if I click on the account... but it will take anything (except blank, which does nothing, account remains gray)... after inputting anything for password, account again goes black, with no results.
If the password is blank, and I restart browser... Scripts will come up red and 'Not checked', in the tooltip.

???

Tr3b's picture

....to cript update checker.  On one Cyberfox v210 last night, the script detected an update.  This AM on the same version of Cyberfox, no update to scripts has been detected and there is a new script available when I select XN-Scripts from my sdebar.

Tr3b's picture

Can we have the 'Invitatons" label hidden when there are no new invitations as the Facebook script works?

 

tobwithu's picture

My mistake.

Done.

Tr3b's picture

Works beautful.  Will check out on my other systems later today

Tr3b's picture

I have a few more systems to check it on but this new script seems to work fine

Tr3b's picture

Seems LinkedIn is failing again.  It is grey'd out

 

jeroen's picture

I'm looking at the grey'd out account for several days already. Was wondering if it's just me ;-)

Tr3b's picture

It does log you in if you click on it but just stays grey

 

Tr3b's picture

Script update and LinkedIn working again.

 

jeroen's picture

Thanks again :-)

Tr3b's picture

LinkedIn is failing again.  It is grey'd out, will not log you in

Well...

My linkedin account in Chrome appeared to be working fine...
...but it was gray in Firefox and Thunderbird.

So I cleared linkedin cookies in FF and TB, and it seems to be working again in both (after restarting them)... for the moment.

jeroen's picture

I had the same remedy for Firefox.

Tr3b's picture

After clearing cache and cooking, it was working but still had problems loging in using different account.  now accounts are greayd out again.

 

jeroen's picture

Clearing linkedin cookies doesn't fix it anymore in my setup either.

And just checked Opera Next (=Chrome): not working either, same result after clearing cookies.

Login process is failing.

tobwithu's picture

Login form was changed.

Updated the script.

Works for me ;)

Tr3b's picture

Works for me  :thumbs:

Tr3b's picture

New script (07.07.15) and now cannot login again

Again not checking... (nor logging in).

jeroen's picture

A LinkedIn developer is fiddling with the design... and changed the form class from "login-form" to "ajax-form".
Just what admin was using to find the login form name:

var fnd=aData.match(/<form class="login-form"([\s\S]+?)<\/form>/);

Oh well... https://www.youtube.com/watch?v=O8RhZDGLEXM ;-)

As you may have seen from the Script Update checker... there is a new LinkedIn script.

I've added it, and it's working now for me.

jeroen's picture

I have it working fine for some days already.

Tr3b's picture

Script update and LinkedIn working again.

jeroen's picture

The login form html tag at the top of the https://www.linkedin.com page misses the name attribute (form name="login").
Therefore this script statement fails in process ST_LOGIN:
    var post=this.getForm(aData,"login");
after getting this page in process ST_PRE:
    this.getHtml("https://www.linkedin.com");
It should get the form from this page:
    this.getHtml("https://www.linkedin.com/uas/login");
where the form html tag does offer the name attribute.
(Works for me)

I will mail the solution to admin.

Does your acct show as 'not checked'?
Mine is not yet failing, that I can tell.
Thanks for staying up with their games.

Tr3b's picture

Both get checked but if I click on one account and then try to switch to the other, the login does not change.  I need to close that tab and then click on the other account for the login to work.

jeroen's picture

It showed as 'not checked' before I adapted the script, yes. This happened more often last week, but it used to recover until today. Which surprised me because I already saw the missing name="login" attribute from the form tag at https:www.linkedin.com a week ago. And this should cause script login failure.

Perhaps there is some code in XN that gets it from cache or XN cookiemanager... Or perhaps I am making some stupid mistake here? I can retest without my fix...

jeroen's picture

Ok, I logged out, removed cookies and reverted my change:
Failing (red). But after manual login it recovered.

Retested same procedure plus Firefox restart.
Same result (having to login manually).

Retested with equal conditions after adding my fix:
The script logs in by itself as it should.

Perhaps one of you should test after logout, cookie removal (FF Tools - Options - Privacy - remove individual cookies- linkedin.com) and FF restart?

Hey... 
I logged into my LinkedIn and logged out, deleted my linkedin cookies, closed browser. Restarted browser and LinkedIn was -not- checked.  I clicked 'Check Now' and it -was- checked. Closed browser again, restarted browser, and... LinkedIn -was- checked.
Seems... normal? ...clear cookies, restart... can't initially check. I expect next interval would check.

I have installed the new LinkedIn script... and logged in/out, deleted cookies, restarted browser... and it checked LinkedIn fine.

Pages