Skip to content

Instantly share code, notes, and snippets.

@bencooper222
Last active July 2, 2018 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bencooper222/f97be23a7728dbae2775b5f08ac5baff to your computer and use it in GitHub Desktop.
Save bencooper222/f97be23a7728dbae2775b5f08ac5baff to your computer and use it in GitHub Desktop.
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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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