Page 17 of 19

Re: Greasemonkey script to display team data on FPL league page

Posted: 30 Sep 2017, 15:34
by zomri
nick is here and is working on his script. not so sure it would be ok to post it. posted mine last week up until nick came back.

bottom line, if he approves then ok i'll post mine as well.

Re: Greasemonkey script to display team data on FPL league page

Posted: 30 Sep 2017, 19:48
by SuperGrover
The Played/To play count is not updating either.

Re: Greasemonkey script to display team data on FPL league page

Posted: 30 Sep 2017, 20:25
by SuperGrover
Number played seems to be working now. Wasn't 15 minutes ago.

Re: Greasemonkey script to display team data on FPL league page

Posted: 30 Sep 2017, 20:26
by SuperGrover
But BAPs not being added so scores are off.

Re: Greasemonkey script to display team data on FPL league page

Posted: 01 Oct 2017, 17:46
by OIEIAO
There's something definitely up with the total "live score data.
My own team shows a correct live total but other teams are showing 40 or so points fewer on the live total, than the overnight total.

This is a great tool by the way. Please keep up the good work.

Re: Greasemonkey script to display team data on FPL league page

Posted: 01 Oct 2017, 20:00
by hellrokr
zomri wrote: 30 Sep 2017, 15:34 nick is here and is working on his script. not so sure it would be ok to post it. posted mine last week up until nick came back.

bottom line, if he approves then ok i'll post mine as well.
Well, he seems busy. It is open source, I guess you can share it here, of course, everybody knows it is his script after all. You can remove it if he says otherwise.

Thanks everyone for their contribution. Really great work though.

Re: Greasemonkey script to display team data on FPL league page

Posted: 01 Oct 2017, 20:50
by zomri
its two weeks till next gw. im sure nick is working on it and will get it fixed before then.

Re: Greasemonkey script to display team data on FPL league page

Posted: 02 Oct 2017, 09:16
by hellrokr
zomri wrote: 01 Oct 2017, 20:50 its two weeks till next gw. im sure nick is working on it and will get it fixed before then.
hmm. maybe. Let's wait and see.

Re: Greasemonkey script to display team data on FPL league page

Posted: 14 Oct 2017, 14:58
by zomri
Here's my version for the community until nick updates the original.

https://pastebin.com/RBEkhUML

Re: Greasemonkey script to display team data on FPL league page

Posted: 15 Oct 2017, 16:27
by mohamed3on
zomri wrote: 14 Oct 2017, 14:58 Here's my version for the community until nick updates the original.

https://pastebin.com/RBEkhUML
Thank you!
Though I notice the live points column isn't accurate, any idea why?

Re: Greasemonkey script to display team data on FPL league page

Posted: 15 Oct 2017, 17:03
by zomri
adding live (provisional) bonus and autosubs points if they are available (ie sub coming in has played).

Re: Greasemonkey script to display team data on FPL league page

Posted: 16 Oct 2017, 09:09
by hellrokr
zomri wrote: 14 Oct 2017, 14:58 Here's my version for the community until nick updates the original.

https://pastebin.com/RBEkhUML
Cheers! even the total transfers were wrong as well on that one. Let me try.

Re: Greasemonkey script to display team data on FPL league page

Posted: 16 Oct 2017, 10:46
by zomri
hellrokr wrote: 16 Oct 2017, 09:09
zomri wrote: 14 Oct 2017, 14:58 Here's my version for the community until nick updates the original.

https://pastebin.com/RBEkhUML
Cheers! even the total transfers were wrong as well on that one. Let me try.
nice. send some feedback when you finish.

Re: Greasemonkey script to display team data on FPL league page

Posted: 18 Oct 2017, 11:18
by hellrokr
zomri wrote: 16 Oct 2017, 10:46
hellrokr wrote: 16 Oct 2017, 09:09
zomri wrote: 14 Oct 2017, 14:58 Here's my version for the community until nick updates the original.

https://pastebin.com/RBEkhUML
Cheers! even the total transfers were wrong as well on that one. Let me try.
nice. send some feedback when you finish.
The figures are still wrong.
Let's follow this guy:
https://fantasy.premierleague.com/a/team/247842/event/8
Transfer made last week:2
Transfer made this week:0
Squad value: 98.1
ITB:3.7

As per this script, let's follow one of his league: https://fantasy.premierleague.com/a/lea ... 39/classic
Transfer made last week:N/A
Transfer made this week:2. Should be 0, this column used to show how many transfers he is making for the upcoming GW.
Squad value: 101.7. Should be 98.1
ITB:3.7
Total: 105.4 which is, of course, wrong as well.

I do rely keep a check on GWT. If you get some time, I hope it's worth looking into it.

Thanks!

Re: Greasemonkey script to display team data on FPL league page

Posted: 18 Oct 2017, 12:33
by zomri
this is what i get

https://i.imgur.com/1961i1Z.png

seem to me it's showing correct values. be sure to turn off nick's script before running this one.

ps. sometimes randomly you get some weird data in live or live total column. haven't yet tracked what causes this. when you see it just hit refresh few times until you get correct values. you can see this issue on 4th place in a screenshot i posted.

Re: Greasemonkey script to display team data on FPL league page

Posted: 20 Oct 2017, 14:35
by hellrokr
here's the script's result:
https://i.imgur.com/fkWI8or.png
https://fantasy.premierleague.com/a/lea ... 85/classic
The guy in contention is: Joel Fretwell at number 4.

here's what I'm comparing with:
https://i.imgur.com/UQA1i5b.png
https://fantasy.premierleague.com/a/team/108320/event/8

The transfers, squad value is all wrong here. Maybe someone else can confirm this?
I tried removing and adding the script back. I'm on chrome btw.

Thanks

Re: Greasemonkey script to display team data on FPL league page

Posted: 20 Oct 2017, 15:06
by zomri
Looks good on my end.
You should definitely have only one script loading. Make sure its the one you copied from pastebin.

https://i.imgur.com/S2n2koO.png

Re: Greasemonkey script to display team data on FPL league page

Posted: 02 Nov 2017, 12:16
by zomri
Been looking into the bug with randomly chosen rows with inconsistent transfer totals, team value and live score. Narrowed it down but can't find nor solve the problem.

What happens is that for these random teams it somehow keeps entry handle data from previous row/team. When you refresh it happens for another teams.

Will look more into it over the coming days, but i admit i'm kinda stuck with this.

Re: Greasemonkey script to display team data on FPL league page

Posted: 30 Nov 2017, 22:37
by andybarrell
did anyone get this working using M/soft Edge?

Re: Greasemonkey script to display team data on FPL league page

Posted: 23 Feb 2018, 15:30
by zomri
can confirm they have changed player api data again. script is not working as of today, wrong player names displayed, gameweek live score wrong etc.

Re: Greasemonkey script to display team data on FPL league page

Posted: 24 Feb 2018, 07:52
by zomri
You can dload fixed script at this link https://pastebin.com/4dunbsq9

Still didn't fix page load inconsistencies but at least now you can see which rows have errors - the ones with captain names in bold.

Re: Greasemonkey script to display team data on FPL league page

Posted: 26 Feb 2018, 17:14
by math!
Everyone has Van La Parra as their captain apparently, except for one guy who has Mbemba :lol:

Re: Greasemonkey script to display team data on FPL league page

Posted: 06 May 2018, 09:16
by Tacalabala
Is this dead in the water? If so, I'll unsticky.

Re: Greasemonkey script to display team data on FPL league page

Posted: 09 Aug 2018, 11:21
by rootcoors
Not seen this updated in a while, but I did find this one for Firefox - looks quite good.

https://addons.mozilla.org/en-GB/firefo ... src=search

Re: Greasemonkey script to display team data on FPL league page

Posted: 11 Aug 2018, 00:53
by nickchild
I may get round to updating this at some point early seaon. In a couple of 20+ team cash leagues so no doubt I'll need it again myself...! Good luck for the season all

Re: Greasemonkey script to display team data on FPL league page

Posted: 13 Aug 2018, 02:31
by kidzio
Looking forward to both the Web browser and app update. Thanks Nickchild! I always use them when they were bugs free then.

Re: Greasemonkey script to display team data on FPL league page

Posted: 13 Aug 2018, 08:23
by sstaffsw
This is a brilliant tool when it's up and running. Thanks in advance NickChild.

Re: Greasemonkey script to display team data on FPL league page

Posted: 13 Aug 2018, 09:19
by hungngo
Thank you and keep it up again NickChild, we are missing the feature now.

Re: Greasemonkey script to display team data on FPL league page

Posted: 15 Aug 2018, 09:30
by nickchild
Does anyone know the new API URL for team data? https://fantasy.premierleague.com/drf/e ... 98/event/1 doesn't work anymore... I will continue to dig around and see what I can find (duplicate post from FPL data collection thread, sent to make sure it's seen!)

Re: Greasemonkey script to display team data on FPL league page

Posted: 16 Aug 2018, 07:59
by nickchild
Information found thanks to thesilkworm.

I will try and work on the script before the weekend, but will have to test the live data once the gameweek starts.

Stand by....