[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-dev] consensus-health.torproject.org



On 19/04/14 00:07, Michael Wolf wrote:
> I think I can make some improvements to the consensus-health page
> (mostly removing redundant formatting code in the HTML), but I can't
> seem to find the git repo for the project listed at
> https://gitweb.torproject.org/
> 
> Could someone point me in the right direction?

https://gitweb.torproject.org/doctor.git/blob/refs/heads/java:/src/org/torproject/doctor/MetricsWebsiteReport.java

We almost shut down this service a couple of months ago, because we have
a Python replacement for the DocTor service that periodically checks the
consensus for problems.  But then we decided to keep the website output
because we don't have a full replacement yet.  This is the reason why
the code is so "well hidden".

> I another pertinent question would be: is anyone using any scripts that
> scrape this page, which might be broken if things are changed?

I'd say don't worry about that.

> An example of a change could be: since the flags in the "Consensus"
> column seem to always be blue, remove all the <font color="blue"> tags,
> (and closing tags) in the consensus column, and replace them with one
> class per <td> in that column. I estimate that this change alone would
> save about 575KiB in the uncompressed HTML.  That's about 10% of the
> document's uncompressed size, without even using any CSS3 trickery.

Happy to apply such a patch.  Please open a ticket on Trac in the DocTor
component.

Thanks!

All the best,
Karsten

_______________________________________________
tor-dev mailing list
tor-dev@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev