I don't think such extension alreadyy exists, but sm.ms has an api(https://sm.ms/doc/), so it should not be too hard to create an extension, even though that documentation is partially in chinese(or something like that). I'll give it a try when I'll have some free time(probably this sunday or next week).