FYIO:
Further if this question would have been asked in professional environments then there the feedback would have been that
hacking into the inner workings of a product by users has usually side effects.
Typically that it is not supported by the support and development, as it circumvents the usual certified and official external entries to the inner working of the product.
Typical side effects are that it might be working in a current version of the product, but not anymore in a future version
because those used by the user specific internal workings of the product might have been changed by the developer.
So it is the responsibility of the user to re-adapt it again at his end, with no support.
It might be working but no guarantee at all thus by the vendor.
But here as the action here should probably be only READING the history (=one of the buffers in memory, that is the 'history buffer') (and not writing to it assumed) it should
be save to fit it to one's purposes is assumed.
with friendly greetings
Knud van Eeden
IT specialist