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 :not(.masthead-info-lower) ul.details").replaceWith("\		\			Club Penguin Wiki\			Community Central\			Commando 2 Wiki\			<a href=\"http://miniclip.wikia.com/\">Miniclip Wiki</a></li>\			<a href=\"http://mechmice.wikia.com/\">Mech Mice Wiki</a></li>\			<a href=\"http://begone.wikia.com/\">BeGone Wiki</a></li>\			<a href=\"http://scubagame.wikia.com/\">Scuba Wiki</a></li>\			<a href=\"http://templates.wikia.com/\">Templates Wiki</a></li>\ <a href=\"http://dev.wikia.com/\">Dev Wiki</a></li>\ <a href=\"http://strikeforceheroes.wikia.com/\">SFH Wiki</a></li>\ <a href=\"http://strikeforceheroes2.wikia.com/\">SFH2 Wiki</a></li>\ </ul>\ "); }