222
edits
(→No more Wikia pain!!: new section) |
|||
Line 222: | Line 222: | ||
I found a code that will redirect users from the old Pikipedia on wikia to here. | I found a code that will redirect users from the old Pikipedia on wikia to here. | ||
<code> | <code> | ||
if ( wgUserGroups === null || typeof( wgUserGroups ) != null && wgUserGroups.join(' ').indexOf( 'staff' ) == -1 && wgUserGroups.join(' ').indexOf( 'helper' ) == -1 && wgUserGroups.join(' ').indexOf( 'vstf' ) == -1 && wgUserGroups.join(' ').indexOf( 'sysop' ) == -1 && wgUserGroups.join(' ').indexOf( 'bureaucrat' ) == -1 ) { window.location = 'http://pikminwiki.com/wiki/' + wgPageName; | :if ( wgUserGroups === null || typeof( wgUserGroups ) != null && wgUserGroups.join(' ').indexOf( 'staff' ) == -1 && wgUserGroups.join(' ').indexOf( 'helper' ) == -1 && wgUserGroups.join(' ').indexOf( 'vstf' ) == -1 && wgUserGroups.join(' ').indexOf( 'sysop' ) == -1 && wgUserGroups.join(' ').indexOf( 'bureaucrat' ) == -1 ) { window.location = 'http://pikminwiki.com/wiki/' + wgPageName; | ||
} | } | ||
</code> | </code> | ||
:Put it in Pikmin Wikia's Common.JS and you'll be good to go. {{User:Peanut64/sig}} | :Put it in Pikmin Wikia's Common.JS and you'll be good to go. {{User:Peanut64/sig}} |
edits