vendor spyware code i've been directed to inject into every page is nuts ... makes redundant calls, pollutes the global name space, wonky arse looooong regex that trys to detect every possible bot UA.
if i try to cleanup any of it and wrap it in a function to at least contain it... i will be responsible for this shit and blamed even if fails for completely unrelated reasons š®āšØ