On Fri, Nov 13, 2020 at 9:17 AM Christian Grobmeier <grobme...@apache.org> wrote: > > Hello Whimsy developers, > > today I found this: > https://whimsy.apache.org/site/ > > Is it possible for me to add a few more checks? In example, I would like to > check if a site does contain Google Analytics, TagManager or Google Fonts. > There might be more to check. GA is a privacy related problem, so I thought > how I could check how many of our sites are using known, critical things like > GA. > > My question is, if you would be willing to accept code to perform those > checks and where would I add it?
The following code performs the scan: https://github.com/apache/whimsy/blob/master/tools/site-scan.rb The results of the scan are placed here: https://whimsy.apache.org/public/site-scan.json The page you are referencing is produced by this script: https://github.com/apache/whimsy/blob/master/www/site.cgi That script delegates the production of the page to be displayed to https://github.com/apache/whimsy/blob/master/lib/whimsy/sitewebsite.rb > Kind regards, > Christian - Sam Ruby