To see less ads Register or Login ----- Daily Fantasy Sports games 18+

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 »

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: 1540
Joined: 12 Sep 2012, 15:38
Location: Chicago, USA

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

Post by SuperGrover »

The Played/To play count is not updating either.

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

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

Post by SuperGrover »

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

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

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

Post by SuperGrover »

But BAPs not being added so scores are off.

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

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

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

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

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

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

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

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

Post by zomri »

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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: 8990
Joined: 13 Oct 2005, 18:26
Location: Southend-on-Sea
FS Record: 2013 Licence to Kill Winner
2019 S15 R2 Championship Winner
2020 FISO H2H League 1 Winner
2020 5aSide Champions (Falcons)
Contact:

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

Post by andybarrell »

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 »

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 »

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!
Dumbledore
Posts: 6819
Joined: 01 Aug 2015, 03:30
FS Record: Yes

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

Post by math! »

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 »

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

User avatar
rootcoors
FISOhead
Posts: 650
Joined: 13 Oct 2005, 18:33
FS Record: 21997

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

Post 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

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 »

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
Wideboy
Posts: 53
Joined: 06 Sep 2015, 14:42

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

Post by kidzio »

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: 1917
Joined: 08 Dec 2011, 10:47
Location: Wolverhampton

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

Post by sstaffsw »

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 »

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 »

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 »

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