Board Thread:Technical Updates/@comment-24006128-20200709172956/@comment-37336800-20200715162254

I already have something similar in my UCP global JS that I believe does what you want.