Remove this Banner Ad

Resource Supercoach Bye Rounds bookmarklet

  • Thread starter Thread starter skill1414
  • Start date Start date
  • Tagged users Tagged users None

🥰 Love BigFooty? Join now for free.

Status
Not open for further replies.

skill1414

Team Captain
Joined
Mar 8, 2007
Posts
357
Reaction score
791
AFL Club
Collingwood
In the past there have been bookmarklets to show your bye round players but I couldn't find one for this year so I made one for those without $upercoach Gold.
It's not the prettiest looking but it does the job.

oazvRcl.jpg


How to use
Chrome:
- Right click in the bookmarks bar > Add page
- Enter a name and paste the code below into the URL box > click Save
- On the Supercoach teams page, click on the bookmarklet you just made in the bookmarks bar.

Firefox:
- Right click in the bookmarks bar > New Bookmark
- Enter a name and paste the code below into the Location box > click Add
- On the Supercoach teams page, click on the bookmarklet you just made in the bookmarks bar.

Code:
javascript: (function(){ var countA = 0; var countB = 0; var countC = 0; for (i=0;i<30;i++) { if (document.getElementsByClassName("player-cell team-ADE").length > i) { document.getElementsByClassName("player-cell team-ADE")[i].style.backgroundColor='#E9D460'; countA++; } if (document.getElementsByClassName("player-cell team-RIC").length > i) { document.getElementsByClassName("player-cell team-RIC")[i].style.backgroundColor='#E9D460'; countA++; } if (document.getElementsByClassName("player-cell team-CAR").length > i) { document.getElementsByClassName("player-cell team-CAR")[i].style.backgroundColor='#E9D460'; countA++; } if (document.getElementsByClassName("player-cell team-GCS").length > i) { document.getElementsByClassName("player-cell team-GCS")[i].style.backgroundColor='#E9D460'; countA++; } if (document.getElementsByClassName("player-cell team-STK").length > i) { document.getElementsByClassName("player-cell team-STK")[i].style.backgroundColor='#E9D460'; countA++; } if (document.getElementsByClassName("player-cell team-COL").length > i) { document.getElementsByClassName("player-cell team-COL")[i].style.backgroundColor='#E9D460'; countA++; } if (document.getElementsByClassName("player-cell team-PTA").length > i) { document.getElementsByClassName("player-cell team-PTA")[i].style.backgroundColor='#3FC380'; countB++; } if (document.getElementsByClassName("player-cell team-WCE").length > i) { document.getElementsByClassName("player-cell team-WCE")[i].style.backgroundColor='#3FC380'; countB++; } if (document.getElementsByClassName("player-cell team-ESS").length > i) { document.getElementsByClassName("player-cell team-ESS")[i].style.backgroundColor='#3FC380'; countB++; } if (document.getElementsByClassName("player-cell team-WBD").length > i) { document.getElementsByClassName("player-cell team-WBD")[i].style.backgroundColor='#3FC380'; countB++; } if (document.getElementsByClassName("player-cell team-SYD").length > i) { document.getElementsByClassName("player-cell team-SYD")[i].style.backgroundColor='#3FC380'; countB++; } if (document.getElementsByClassName("player-cell team-MEL").length > i) { document.getElementsByClassName("player-cell team-MEL")[i].style.backgroundColor='#3FC380'; countB++; } if (document.getElementsByClassName("player-cell team-NTH").length > i) { document.getElementsByClassName("player-cell team-NTH")[i].style.backgroundColor='#40C2FF'; countC++; } if (document.getElementsByClassName("player-cell team-BRL").length > i) { document.getElementsByClassName("player-cell team-BRL")[i].style.backgroundColor='#40C2FF'; countC++; } if (document.getElementsByClassName("player-cell team-GEE").length > i) { document.getElementsByClassName("player-cell team-GEE")[i].style.backgroundColor='#40C2FF'; countC++; } if (document.getElementsByClassName("player-cell team-GWS").length > i) { document.getElementsByClassName("player-cell team-GWS")[i].style.backgroundColor='#40C2FF'; countC++; } if (document.getElementsByClassName("player-cell team-FRE").length > i) { document.getElementsByClassName("player-cell team-FRE")[i].style.backgroundColor='#40C2FF'; countC++; } if (document.getElementsByClassName("player-cell team-HAW").length > i) { document.getElementsByClassName("player-cell team-HAW")[i].style.backgroundColor='#40C2FF'; countC++; } } var legend = document.createElement('div'); legend.id = 'info'; document.getElementsByTagName('body')[0].appendChild(legend); document.getElementById('info').innerHTML="<div id='13'>Round 13: " + countA + "</div><div id='14'>Round 14: " + countB + "</div><div id='15'>Round 15: " + countC + "</div>"; document.getElementById('info').style.position='absolute'; document.getElementById('info').style.left='250px'; document.getElementById('info').style.top='290px'; document.getElementById('info').style.backgroundColor='white'; document.getElementById('info').style.fontWeight='bold'; document.getElementById('info').style.color='black'; document.getElementById('13').style.backgroundColor='#E9D460'; document.getElementById('14').style.backgroundColor='#3FC380'; document.getElementById('15').style.backgroundColor='#40C2FF'; document.getElementById('13').style.margin='3px'; document.getElementById('14').style.margin='3px'; document.getElementById('15').style.margin='3px'; document.getElementById('13').style.padding='4px'; document.getElementById('14').style.padding='4px'; document.getElementById('15').style.padding='4px'; document.getElementById('13').style.float='left'; document.getElementById('14').style.float='left'; document.getElementById('15').style.float='left'; })();
tip: triple click to highlight all the code
 
Last edited:
I have SC Gold but this is easier to read, thanks!

Only issue is the counters at the top are way off for me, reading 10, 17 and 13 when it should be 8, 10 and 12.

Edit: I figured out it was highlighting the "Most Traded" tab down the bottom too, which is a part of SC Gold so wont be an issue for non-Gold users.
 
Status
Not open for further replies.

Remove this Banner Ad

Remove this Banner Ad

🥰 Love BigFooty? Join now for free.

Back
Top Bottom