FANDOM

I !told you something

Title says it all

NO! 16:36, April 11, 2015 (UTC)

Welcome to the Club Penguin Wiki, HypercaneTeen!

Start Module Penguin Start Module Penguin Waving

Hi there! Welcome to the Club Penguin Wiki, the free online encyclopedia all about Club Penguin! We hope you enjoy your stay here.

Here are some things that may help you get started:

  • User page - All users have their very own user page. Your user page is where you can write about yourself, your penguin, and many other things.
  • User talk - All users have their own talk page. User talk pages are used to receive messages from others. You can also leave messages on other users' talk pages. You can add your signature by typing 4 tildes (~~~~), or by clicking the Sigtime button on the edit bar to do the same thing.
  • The wiki also has a forum and a chat, where you can start discussions about Club Penguin, editing, about the wiki, and other subjects.
  • Also, make sure all the actions you do- editing, commenting, chatting, etc., are following the wiki's policy.
  • You can also modify some of your account settings such as your signature at Preferences. If you want to learn how to make a cool signature, click here!
  • Other help pages may be found here.
If you have any questions, feel free to ask an administrator.
We're always happy to help!


Jeserator (talk) 18:17, April 11, 2015 (UTC)

Your code

Hi Hyper,
Try this:

if (mw.config.get("wgUserGroups").indexOf("sysop") > -1) {
	(function(module) {
		var obs = new MutationObserver(function(mt) {
			if ($("#UserStatsMenu .admin-actions .block").length == 0) {
				var li = $(
					'<li class="promote-sysop-btn">' +
						'<span class="icon">&nbsp;</span>' +
						'<span class="label">Make Admin</span>' +
					'</li>'
				).appendTo("#UserStatsMenu .admin-actions");
				$(li).click(function() {
					// your code here
				});
			}
		});
		obs.observe(module, {
			attributes: true
		});
		mw.util.addCSS(
			'.UserStatsMenu .actions ul li.promote-sysop-btn .icon {\n' +
				'\tbackground-position: -612px 0px;\n' +
			'}'
		);
	}(document.querySelector("#UserStatsMenu")));
}

And insert the block trigger instead of "// your code here".
Penguin-Pal (talk) 11:35, April 22, 2015 (UTC)

Ohh for some reason i thought it was gonna be a blocking feature :P Yes, it will be added to the dropdown when clicking someone in chat. I've updated the text, so it no longer says "Block" and now has the proper label.
Penguin-Pal (talk) 13:24, April 22, 2015 (UTC)

Re: Hey

Hey, Hypercane.

I've been doing well, thanks for asking. How about you?

--Hey.youcp Surfboard Pin 02:39, June 28, 2015 (UTC)

Oh, why are you considering retiring from that wiki? Losing interest?
--Hey.youcp Surfboard Pin 03:07, June 29, 2015 (UTC)

This Music

It's Zinnia's battle theme right?

The Mythical Pokemon. 19:09, July 6, 2015 (UTC)

Community content is available under CC-BY-SA unless otherwise noted.