FPL GW15 Preview -- Predicted EPL Line-Ups 3-5 Dec: Part 1, Part 2, Part 3
View Latest: 1 Day | FISO Injury Search

Greasemonkey script to display team data on FPL league page

A Fantasy Football forum for news on fantasy football games run by the Premierleague (FPL).
zomri
Wideboy
Posts: 61
Joined: 21 Aug 2013, 23:37

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

Post by zomri » 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.

User avatar
SuperGrover
Grumpy Old Man
Posts: 1520
Joined: 12 Sep 2012, 15:38
Location: Chicago, USA

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

Post by SuperGrover » 30 Sep 2017, 19:48

The Played/To play count is not updating either.

User avatar
SuperGrover
Grumpy Old Man
Posts: 1520
Joined: 12 Sep 2012, 15:38
Location: Chicago, USA

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

Post by SuperGrover » 30 Sep 2017, 20:25

Number played seems to be working now. Wasn't 15 minutes ago.

User avatar
SuperGrover
Grumpy Old Man
Posts: 1520
Joined: 12 Sep 2012, 15:38
Location: Chicago, USA

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

Post by SuperGrover » 30 Sep 2017, 20:26

But BAPs not being added so scores are off.

OIEIAO
FISOhead
Posts: 969
Joined: 27 Aug 2014, 22:13

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

Post by OIEIAO » 01 Oct 2017, 17:46

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.

hellrokr
Cheetah
Posts: 7
Joined: 17 Sep 2017, 08:48

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

Post by hellrokr » 01 Oct 2017, 20:00

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.

zomri
Wideboy
Posts: 61
Joined: 21 Aug 2013, 23:37

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

Post by zomri » 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.

hellrokr
Cheetah
Posts: 7
Joined: 17 Sep 2017, 08:48

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

Post by hellrokr » 02 Oct 2017, 09:16

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.

zomri
Wideboy
Posts: 61
Joined: 21 Aug 2013, 23:37

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

Post by zomri » 14 Oct 2017, 14:58

Here's my version for the community until nick updates the original.

https://pastebin.com/RBEkhUML

mohamed3on
Newbie
Posts: 2
Joined: 07 Dec 2015, 08:46

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

Post by mohamed3on » 15 Oct 2017, 16:27

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?

zomri
Wideboy
Posts: 61
Joined: 21 Aug 2013, 23:37

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

Post by zomri » 15 Oct 2017, 17:03

adding live (provisional) bonus and autosubs points if they are available (ie sub coming in has played).

hellrokr
Cheetah
Posts: 7
Joined: 17 Sep 2017, 08:48

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

Post by hellrokr » 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.

zomri
Wideboy
Posts: 61
Joined: 21 Aug 2013, 23:37

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

Post by zomri » 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.

hellrokr
Cheetah
Posts: 7
Joined: 17 Sep 2017, 08:48

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

Post by hellrokr » 18 Oct 2017, 11:18

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!

zomri
Wideboy
Posts: 61
Joined: 21 Aug 2013, 23:37

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

Post by zomri » 18 Oct 2017, 12:33

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.

hellrokr
Cheetah
Posts: 7
Joined: 17 Sep 2017, 08:48

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

Post by hellrokr » 20 Oct 2017, 14:35

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

zomri
Wideboy
Posts: 61
Joined: 21 Aug 2013, 23:37

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

Post by zomri » 20 Oct 2017, 15:06

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

zomri
Wideboy
Posts: 61
Joined: 21 Aug 2013, 23:37

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

Post by zomri » 02 Nov 2017, 12:16

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.

User avatar
andybarrell
Dumbledore
Posts: 7213
Joined: 13 Oct 2005, 18:26
Location: Southend-on-Sea
FS Record: 2013 Licence to Kill Winner
2019 S15 R2 Championship Winner
Contact:

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

Post by andybarrell » 30 Nov 2017, 22:37

did anyone get this working using M/soft Edge?

zomri
Wideboy
Posts: 61
Joined: 21 Aug 2013, 23:37

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

Post by zomri » 23 Feb 2018, 15:30

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.

zomri
Wideboy
Posts: 61
Joined: 21 Aug 2013, 23:37

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

Post by zomri » 24 Feb 2018, 07:52

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.

User avatar
math!
Grumpy Old Man
Posts: 4781
Joined: 01 Aug 2015, 03:30

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

Post by math! » 26 Feb 2018, 17:14

Everyone has Van La Parra as their captain apparently, except for one guy who has Mbemba :lol:

User avatar
Tacalabala
FISO Knight
Posts: 19010
Joined: 07 Sep 2008, 01:03

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

Post by Tacalabala » 06 May 2018, 09:16

Is this dead in the water? If so, I'll unsticky.

User avatar
rootcoors
FISOhead
Posts: 650
Joined: 13 Oct 2005, 18:33
Location: East Yorkshire, UK
FS Record: 51,456

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

Post by rootcoors » 09 Aug 2018, 11:21

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

User avatar
nickchild
FISOhead
Posts: 648
Joined: 27 Jul 2006, 23:51
FS Record: 180th Overall FPL and X-League Winner 2008/09
Contact:

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

Post by nickchild » 11 Aug 2018, 00:53

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

User avatar
kidzio
Kevin and Perry
Posts: 49
Joined: 06 Sep 2015, 14:42

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

Post by kidzio » 13 Aug 2018, 02:31

Looking forward to both the Web browser and app update. Thanks Nickchild! I always use them when they were bugs free then.

User avatar
sstaffsw
Grumpy Old Man
Posts: 1261
Joined: 08 Dec 2011, 10:47
Location: Wolverhampton

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

Post by sstaffsw » 13 Aug 2018, 08:23

This is a brilliant tool when it's up and running. Thanks in advance NickChild.

User avatar
hungngo
Kevin and Perry
Posts: 28
Joined: 14 Oct 2017, 10:06

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

Post by hungngo » 13 Aug 2018, 09:19

Thank you and keep it up again NickChild, we are missing the feature now.

User avatar
nickchild
FISOhead
Posts: 648
Joined: 27 Jul 2006, 23:51
FS Record: 180th Overall FPL and X-League Winner 2008/09
Contact:

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

Post by nickchild » 15 Aug 2018, 09:30

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!)

User avatar
nickchild
FISOhead
Posts: 648
Joined: 27 Jul 2006, 23:51
FS Record: 180th Overall FPL and X-League Winner 2008/09
Contact:

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

Post by nickchild » 16 Aug 2018, 07:59

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....

View Latest: 1 Day View Your posts
Post Reply

Return to “Fantasy PremierLeague.com (FPL)”

Who is online

Users browsing this forum: Google [Bot], GrapeshotCrawler and 19 guests