User:Rocky/bluecloud.js

if (wgPageName == "Special:Mibbit") { window.onbeforeunload = function (evt) { var message = "Are you sure you want to leave?"; if (typeof evt == "undefined") { evt = window.event; } if (evt) { evt.returnValue = message; } return message; } }