I'd like to be able to select which user roles have access to dirty_forms. Specifically I don't want the dirtyforms.js and onbeforeunload.js being added to pages which are only viewed by anonymous users.

Thanks.