User:Tm T/global.js

/* */ // (Works only(?) on Monobook; too lazy to implement check) Adds a tab to the top of every page on the far right to allow for quickly viewing page with the "New Wikia Skin" function add_skin_tab {   var URL = wgServer + wgScript + '?title=' + wgPageName + '&useskin=wikia' addPortletLink('p-cactions', URL, "nws"); var URLm = wgServer + wgScript + '?title=' + wgPageName + '&useskin=wikiaphone' addPortletLink('p-cactions', URLm, "mob"); }

addOnloadHook(add_skin_tab);

/* */