LinkedIn script not working

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

Tr3b's picture

I just updated my script and cleared my linkedin cookies.  For me, it is working the say.  I can get into my specific account if a LinkedIn tab is not open.  But if I have a tab open and logged into that account and I want to switch account, I cannot easily just click on that other account and assume it will open in the same tab.  I need to close that tab and then click on the other account.

Tr3b's picture

LinkedIn is getting like Yahoo with making stupid changes and breaking the script. 

Clicking on LinkedIn is now taking me to a blank page.

Do you mean a blank page under the Linked In banner/menubar?

I got the banner/menubar and a pop-up that said invitation requests are now being managed in a new place... blah, blah (apparently in "People You May Know")... and blank below the menubar. And then clicking the message balloon icon takes me to my messages.

Tr3b's picture

Initially the menu bar, but refreshing or clicking on the link again after closing the tab brings a blank screen......and sometimes visa versa depending which way the moon and sun are lining up.

Tr3b's picture

There is still a problem with LinkedIn script.  When a new invite comes in and you click on Invitations, you are taken to a blank screen.  Same thing happens when you click on the LinkedIn account name.  It appears the script is not pointing to the corret page.

jeroen's picture

Hi Tr3b,
It should be this new 'messaging' page, right?
https://www.linkedin.com/messaging/?trk=hb-messages-hdr-item-msg-v2

Tr3b's picture

I deleted the invite, but I think when clicking on the Invite, it should go here:

https://www.linkedin.com/people/pymk/hub?ref=global-nav&trk=nav_utilitie...

I "think" when you click on the account, it should take you to the link you posted:

https://www.linkedin.com/messaging/?trk=hb-messages-hdr-item-msg-v2

or even this:

https://www.linkedin.com/home?trk=nav_responsive_tab_home

 

jeroen's picture

You can define your prefered default viewURL in about:config.

http://xnotifier.tobwithu.com/dp/node/8

extensions.xnotifier.accounts.[HOST#USERNAME].link : ""
define custom URL which is opened when you click the account

jeroen's picture

This function is used in several scripts, so I suggested it to admin:

function getViewURL(aFolder){
  if(aFolder=="Invitations"){
    return "https://www.linkedin.com/people/pymk/hub?ref=global-nav&trk=nav_utilitie...";
  }
  return this.viewURL;
}

I did add it in my linkedin script, but also don't get daily invitations.
So not tested as of yet...

Tr3b's picture

Can I get a copy of your script?  I have 3 invites pending and do not want to click on them until a new script comes along to see if it works

jeroen's picture

Sure. Let me know if it works as expected...
NB: In the General tab section of XN  Options you can temporarily uncheck 'Reset counter when opening messages'.

https://db.tt/F7Ub3v0B  (Right-Click: Save Link As...)

Tr3b's picture

Works like a charm.  I will put it on my other systems tomorrow.

Tr3b's picture

Works like a charm.  Left a couple of invites in there from yesterday and I could easily get to them this time.

Nice work jeron.  :thumbup:

jeroen's picture

Thanks, but it would have really surprised me when it didn't work in this case. Then this was a very straightforward and obvious solution using the available function getViewURL.

jeroen's picture

I forwarded the issue and suggestions to admin.

jeroen's picture

Admin approved my suggestion and updated the script:

http://xnotifier.tobwithu.com/scripts.php

jeroen's picture

The script's dataURL is not there anymore (https://www.linkedin.com/inbox/messages).
=== UPDATE: ONLY TRUE FOR PART OF THE WORLD ===
That is where the script got both the unread and the invitation count. I found where to get the unread count now (from dataURL=viewURL=https://www.linkedin.com/messaging and it works), but not yet where to get the invitation count. Probably a good idea to set up a 2nd account in order to send myself an invitation...

jeroen's picture

Found 2 invitation counts: PENDING_INVITES & NEW_INVITES. Hard to test the exact behavior when you don't get invites regurarly. Also found more message counts. But which one is the global unread and which is a specific one. I should do some more testing.

jeroen's picture

I used PENDING_INVITES.
Both counts get increased at first, but NEW_INVITES turns to zero very quick.

I now adapted the script to notify the following 3 counts: 
1. (Inbox) Messages, 2. Notifications and 3. Invitations

X-notifier Options:

  1. Notify inbox only
    [X]:  Notify only (Inbox) Messages
    [   ]:  Notify all folders:  Sum of (Inbox) Messages + Notifications + Invitations
  2. Show folders
    [X]: Show folder counts>0 in the X-notifier window/sidebar below the notify count (incl. message count)

Testing: Could someone (Tr3b, RpD or other) do some testing?

Download link: https://db.tt/F7Ub3v0B  (Right-Click: Save Link As...)

==UPDATED==

Tr3b's picture

Been busy and missed this post.  I will download today and place it on my system.  I will let you know how it works.

 

jeroen's picture

I managed to test the script myself and found an error in my code concerning the Notifications and Invitations count. Corrected version is now 2016-06-27.

Tr3b's picture

Installed it on my main system and I now see Notifications and Invitations, but....when clicking on the MAIL envelope, it still does not take me to the LinkedIn page when new notifications appear or Invitations.  It works though if you click on the sub-label.  I will put it live on my other systems but will not click on the label as to not mark it as checked so I can check out another script if you make changes.

jeroen's picture

Thanks, Tr3b
I am trying to get new Notifications by inviting friends, so I can check what you are saying. I thought it worked on my Firefox though, but I can't remember whether I clicked the envelope icon then. Does it work on receiving Messages?

jeroen's picture

Just got a Notification for an accepted Invitation. Envelope icon click took me to the LinkedIn page. All is well on my system.

Tr3b's picture

Clicking on both NOTIFICATION and INVITATIONS does take me to the proper page, but.....clicking on the XN Envelope does not take me to any LinkedIn page.  But the problem "may" not be a script problem but an XN problem.  If I mouse-over the envelope, I am able to see what was checked and not checked.  So even before clicking on either the NOTIFICATION and INVITATIONS label, both options (labels) did not display as either being checked and having yet to be accessed.  Hopefully I did not confuse things.

jeroen's picture

Did you consider the problem is on your computer, since it works perfectly well on mine?
Since your XN Envelope click  does not work: did you perhaps define an icon hidden preference for your LinkedIn account in about:config for a custom icon URL?

jeroen's picture
Tr3b's picture

I tested this on a couple of different systems.  It just so happened that I got another invitation when I tested on another system so I paid close attention.  Maybe it is supposed to work this way now and Admin made some changes to way it previously worked.....dunno.  But it is working if I click on the label but not if you click on the envelope.

jeroen's picture

Hey Tr3b,
I possibly found the answer: I indeed did change the viewURL (=Envelope click), but it turns out that was not necessary then the old viewURL also still works with my LinkedIn server. So, to doublecheck if this will solve your Envelope click, can you click following old en new viewURL (when logged in, of course):

  1. Old viewURL:
    https://www.linkedin.com/messaging?trk=hb-messages-hdr-item-msg-v2
  2. New viewURL:
    https://www.linkedin.com/messaging/?trk=nav_utilities_inbox

So, with your LinkedIn server the 1st should work and the 2nd not. True?

 

jeroen's picture

I did a check with user CFBancroft's linkedin account and conclusion is a lot of linkedin.com servers round the world still produce this page: https://www.linkedin.com/inbox/messages and therefore the linkedin script from the scripts page is still working for them.

@Tr3b: I don't know why your Envelope click does not work with my script, but it sure does for CFBancroft and me.

Tr3b's picture

I just seen notification that the LinkedIn script has been updated.  The script date is 04.15.16.  I previously had jeron's script dated 06.27.16 installed and things worked well.  After installing the 04.15.16 script, one of my accounts is greyed out.  I reinstalled jeron's script and things are back to normal.

Pages