Script for sharing plugin