I did solve the problem of the document.title (by the way, it does not work at $(document).ready time). It is quite a hacking approach, but we, as an OEM, really had to hide Splunk mentions from everywhere.
There are three files which need changing (actually just two, because we, as an OEM, also have to hide Searching & Reporting from our end users). $(static_dir) below refers to the folder we define as static_dir in web.conf:
$(static_dir)/js/build/bundles/common.js : find "| Splunk %s" there and replace it with our text. %s is used to display the Splunk version, so it does need removing. This, though, affects only the Search screens and is not exactly relevant to our end product.
$(static_dir)/js/build/accountpage.js : find "| Splunk" and replace it. Affects the login page.
$SPLUNK_HOME/ share/splunk/search_mrsparkle/templates/dashboards/dashboard.html : find "| Splunk" and replace it. I found out the hard way that setting template_dir in web.conf does not work - one needs to go to the original search_mrsparkle tree.
... View more