MediaWiki:Wikia.js: Difference between revisions

no edit summary
imported>Woganhemlock
(Undid revision 323487 by Woganhemlock (Talk) looks horrid, and since it moves the contribute button its probably another tou violation)
imported>Lost Labyrinth
No edit summary
Line 1:
// 0821:1709, OctoberAugust 1814, 20112012 (UTC)
// <source lang="JavaScript">
/* add contribs to user menu - 2/1/11 */
Line 8:
addOnloadHook(UserContribsMenuItem);
 
/* smarter IRC connect system */
$(document).ready(function () {
if ($('#IRClogin')) {
var nick = (wgUserName == null) ? ('Wikian' + Math.floor(Math.random() * 10)) : wgUserName.replace(/ /g, '_');
$('#IRClogin').html('<iframe src="http://webchat.freenode.net/?nick=' + nick + '&channels=wikia-cod&prompt=true&uio=OT10cnVlJjExPTUxJjEyPXRydWU37" width="950" height="400" style="border:0;"></iframe>');
}
 
// </source>