I'd suggest submitting a request to staff via Special:Contact/general. You can do it through javascript, but it's something that's better done server side which can only be implemented by staff. If you want an example, Uncyclopedia has a content warning (I believe they customised theirs to some extent).