Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Run this code on champion.gg's "current patch statistics" page to get the top champions by win and play rate rn (i.e. the best champs to ban). See example: https://www.useloom.com/share/a7f0773a37004827adacc264d80521d0
console.log("Go to https://raw.githubusercontent.com/bencooper222/championgg-power-parser/master/main.prod.js for the latest version")
console.log("Go to https://raw.githubusercontent.com/bencooper222/championgg-power-parser/master/main.prod.js for the latest version")
@bencooper222

This comment has been minimized.

Copy link
Owner Author

@bencooper222 bencooper222 commented Jun 11, 2018

Minified is transpiled to ES5 then uglified using the incredibly advanced process of copying and pasting to Babel's online sandbox and doing the same with this uglifier. The transpilation to ES5 is done because there aren't really any ES6+ uglifiers.

@bencooper222

This comment has been minimized.

Copy link
Owner Author

@bencooper222 bencooper222 commented Jun 12, 2018

This opens a window that probably has a 414 (URI too long) error on it. I'm working on fixing that but ignore it in the meantime.
EDIT: temporarily fixed with just a simple top 10

@bencooper222

This comment has been minimized.

Copy link
Owner Author

@bencooper222 bencooper222 commented Jun 25, 2018

I break the console object at the end of the script because the site has a lot of superfluous logging that can push the rankings out of view. Not a fan.

@bencooper222

This comment has been minimized.

Copy link
Owner Author

@bencooper222 bencooper222 commented Jul 2, 2018

Moved to proper github repo so I could include a hash to monitor changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment