I haven’t used it, but there’s an extension that supposedly works with Safari called SocialFixer you might try.