Adding stripts to lightboxes disabled

Adding stripts to lightboxes isn’t a feature. Is there a way to do this? Thanks?