I converted this into a TamperMonkey/Greasemonkey script. Also added a feature to "hide" all elements that do not match the threshold.
https://github.com/seffignoz/icloudcleanup