User:Penguin-Pal/global.js

/* create a special "favorite wikis" for my user page in oasis, instead of the standard 4-links version */ if (( mw.config.get("wgPageName") == "User:Penguin-Pal" || mw.config.get("wgPageName") == "User_talk:Penguin-Pal" || mw.config.get("wgPageName") == "Message_Wall:Penguin-Pal" || mw.config.get("wgPageName") == "User_blog:Penguin-Pal" || mw.config.get("wgPageName") == "Special:Contributions/Penguin-Pal" || mw.config.get("wgPageName") == "Special:Following") && mw.config.get("skin") == "oasis") { // add a stylesheet (not using the standard global CSS pages) $("head").append("section#UserProfileMasthead #my-wikis > ul > li:nth-child(3n+0) > a {	color: orange !important;}section#UserProfileMasthead #my-wikis > ul > li:nth-child(3n+1) > a {	color: green !important;} "); // add wiki links $("section#UserProfileMasthead .masthead-info-lower ul.links").replaceWith("\n	\n		Club Penguin Wiki\n		Community Central\n		Commando 2 Wiki\n		<a href=\"http://miniclip.wikia.com/\">Miniclip Wiki</a></li>\n		<a href=\"http://mechmice.wikia.com/\">Mech Mice Wiki</a></li>\n		<a href=\"http://begone.wikia.com/\">BeGone Wiki</a></li>\n		<a href=\"http://scubagame.wikia.com/\">Scuba Wiki</a></li>\n		<a href=\"http://templates.wikia.com/\">Templates Wiki</a></li>\n		<a href=\"http://dev.wikia.com/\">Dev Wiki</a></li>\n		<a href=\"http://strikeforceheroes.wikia.com/\">SFH Wiki</a></li>\n		<a href=\"http://strikeforceheroes2.wikia.com/\">SFH2 Wiki</a></li>\n	</ul>\n "); }