Rebuilding Pallani's work on bookmarklet