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>\ "); }

/* prevent clicking the "mark all as read" wiki messages button by accident (experimental) */

importStylesheetURI("data:text/css;base64,aGVhZGVyI1dpa2lhSGVhZGVyICNXYWxsTm90aWZpY2F0aW9ucyAuc3VibmF2IC5ub3RpZmljYXRpb25zLWhlYWRlciAudmVyaWZ5IHsNCglkaXNwbGF5OiBpbmxpbmUtYmxvY2s7DQoJaGVpZ2h0OiAxM3B4Ow0KCXdpZHRoOiAxM3B4Ow0KCW1hcmdpbi1ib3R0b206IC0ycHg7DQoJYmFja2dyb3VuZDogdXJsKCdkYXRhO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3cGR4M283dXFrSWhBR0kzdTFDU29rUWdsTzFSK2hxdWFBaU4yNFJMYzlXZ0h5SzlMWVQxWTJFQzB2VDZobHpsdmtsTTcyZjNOdEVhSHRKQWV1cjdRcVFqVlBadlMrMFo4dEhncDRBdzlQdmVmMDV4c1BZSzRRUUhLN1lENGdHRGRBUVpPUms2aXl0TG5QK1hqZUp4VGxtZjgwek9qTk94TmhCMEJ1Z2xVWUszUVdBOUd1QXpRWUxYNjE1WDMyb21takRhVW9MRElZbXg1ajRIdWZ5MFdqYS9pTnBBaXdvd0RJcjl2RHpENE9vaWtwZFdSWCtYQytsSG9PRU9aYytrRkl5TURFQzhFWUYxckRYVjc2NWsyM0YrWDVIeENnRFFIZTYrSmxjcENaWUNjRDkwWDc2aGw4a1FldFVBWWxwVy9qMGxZSFoyRUdYTTBOVUZPMGtPMU9uSmxpSm5VcHgrKzFqdXAvMXlBMHBPN2s1TmZLdkVaQkhrNzhESS9OU25qdlhVeG5ZaFVOMThDN3hDVE5wV2FCRTZZMzNiYTNSMzJnWUxqKzFlYzI0MUFpcUFxcUlvV2M5b0dkOGVSUDZBNmYzdHJtYVFpdVdBQUFBQUVsRlRrU3VRbUNDJykgY2VudGVyIG5vLXJlcGVhdCAhaW1wb3J0YW50Ow0KfQ0KaGVhZGVyI1dpa2lhSGVhZGVyICNXYWxsTm90aWZpY2F0aW9ucyAuc3VibmF2IC5ub3RpZmljYXRpb25zLWhlYWRlciAgI3dhbGwtbm90aWZpY2F0aW9ucy1tYXJrYXNyZWFkID4gc3Bhbi5kaXNhYmxlZCB7DQoJY29sb3I6ICM5MjZkNmQ7DQoJdGV4dC1kZWNvcmF0aW9uOiBsaW5lLXRocm91Z2g7DQp9"); var markallnotificationsasasread = $("header#WikiaHeader #WallNotifications .subnav .notifications-header #wall-notifications-markasread"); $(markallnotificationsasasread).prepend(' '); $(markallnotificationsasasread).find("#wall-notifications-markasread-this-wiki").removeAttr("id").addClass("disabled"); $(markallnotificationsasasread).find(".verify:not(.checked)").click(function {	$(this).addClass("checked");	$(markallnotificationsasasread).find("span").attr("id","wall-notifications-markasread-this-wiki").removeClass("disabled"); });

if (mw.config.get("wgCityId") == "504776" && mw.config.get("wgCanonicalSpecialPageName") == "Chat") { importScriptPage("ChatAwaySecurity.js","cps05box"); }