User:David Fichtmueller/common.js

//quick link to purge the current page var deleteLink = document.getElementById("ca-delete"); if(deleteLink){ addPortletLink("p-cactions",deleteLink.firstElementChild.href.replace("&action=delete","&action=purge"),"Purge", "ca-purge","Purge current page","p",deleteLink); }

//clean design when page is loaded within a frame $(document).ready(function {   try{        if ( top.document.domain != self.document.domain ){            //do nothing, this will fail and cause an exception        }    }catch(e){        importStylesheet("MediaWiki:Frame.css");    } });