User:OrchidSomnium/global.js

/* skin change buttons */ function CreateSkinChangeButtons { //Oasis buttons $('div.buttons a:first-child').before('MonobookVector'); //Monobook buttons $('#p-cactions .pBody ul li:nth-last-child(1)').after('OasisVectorMobile<a href="/index.php?title='+ encodeURIComponent(wgPageName) +'&useskin=venus" title="Change to crap [k]" id="skinChangeButton" accesskey="k">Crap</a></li>'); } addOnloadHook(CreateSkinChangeButtons);

// *************************************************   // Pagetitle rewrite //   // Rewrites the page's title, used by Template:Title // *************************************************   $(function{	var newTitle = $("#title-meta").html;	if (!newTitle) return;	var edits = $("#user_masthead_since").text;	$(".firstHeading,#WikiaUserPagesHeader h1,#WikiaPageHeader h1").html(newTitle);	$(".#user_masthead_head h2").html(newTitle + "<small id='user_masthead_since'>" + edits + " "); });

/* Monchomans chat hacks */ importScriptPage('User:TimeSoul/ChatHacks.js', 'c'); if(wgCanonicalSpecialPageName == 'Chat') { function createGroupPM { var users = prompt('Enter comma seperated list of users to start a PM with',''); var users = users.split(','); mainRoom.openPrivateChat(users); } $('form#Write').append('<a class="wikia-button" href="javascript:createGroupPM" style="position:absolute; right:50px; top:0;">PM</a>'); }

importScriptPage('MessageBlocker/code.js', 'dev');