Client Script for all Doctypes in common

Hi Guys,

Is there any way to write custom Client or Server script that should apply for all Doctypes. But in Client Script there is only option to select only one Doctype. How to trigger for all doctype in one script?