how to transform the name of the active filter to the top of the page title?

Similar to: https://discourse.hkvstore.com/t/how-to-change-browser-title-dynamically-v2021/3761/1