Similar to https://github.com/itsBelinda/plog/pull/1/files and https://bugzilla.mozilla.org/show_bug.cgi?id=1442819.