Quote:
Originally Posted by rwodonnell
It's your posts that inspired me to do it with TamperMonkey, and in fact I tried to use your methodology but I struggled to understand the Python code. I only vaguely know the language. I did copy your 5 classifications.
While your posts are awesome and much appreciated, I thought it would be neat to go to the district rankings page and have them automatically do what I wanted right in the browser - the beauty of Grease - er - TamperMonkey. (The original name is so much better!)
My son is taking Python - with your permission, when I get a chance (probably next season at this point) I will, with his help, translate your algorithm into Javascript.
|
I wonder if there's some way that we could combine our efforts. Putting them inline with the results webpage is definately more elegant than my output. At the same time, I have no idea how to run a TamperMonkey script, and I bet I'm not the only one. I'm not sure what the easiest way is to let people get results is.
How do you run a TamperMonkey script anyway? I tried installing it and got a page that looked IDE-like so I copied your code in but then I wasn't sure what to do next.
I haven't been keeping up on the latest Javascript stuff, so I feel like there's probably some security rules that will prevent this, but is it possible to make a webpage that loads a remote page and then parses it? Can you make an iframe and then mess with its contents? Could this be done with just a normal webpage?
I feel like the less barriers to entry for someone running the script the more useful it will be. For example, I don't know whether anyone besides me has tried to run my script despite it being publicly available for years. I wonder if ultimately the right thing is to put a CGI script together on a server someplace.
What do you think? Either way, feel free to copy the algorithm. And I know it's a little sparse on comments so I'm happy to answer questions about what it's doing.