I'm posting this as a library

The whole purpose of this is to solve a problem of mine

The following scripts use this library's Greasy Fork URL in a @require:

Script 日安装量 总安装量