User talk:Grunny

Welcome
Hi, welcome to Wikia Developers Wiki! Thanks for your edit to the List of Bot frameworks page.

Please leave a message on my talk page if I can help with anything! -- Uberfuzzy (Talk) 14:41, September 23, 2009

Spanish
Hi, I'm a spanish user of Wikia. Dev wiki has a lot of functions, but all they are English. I want to traslate the functions to the spanish. Can I do it here?.--Ivancillo http://images2.wikia.nocookie.net/amiguetes/es/images/9/9e/SP.png 15:18, March 29, 2010 (UTC)

fastdelete
Hi, I have been having some issues with the fastdelete tool as on talk pages as it is adding a line think this could be corrected? also the buttom is not showing on the user, user talk, blog and category namespaces. Aside from that when editing it does not appear. --Cizagna (Discusión) • Helper • Central hispana 04:32, 06 November 2010 (UTC)

 Brought from User_talk:Cizagna Hi. I've moved the buttons on talk pages so they don't cause a line break, and I've added them on user, user talk, blog and category. As for when editing pages, the issue is, the code checks if there is a delete button on the page already to make sure the user is allowed to delete, and currently there are no delete buttons in the edit view. Adding them there would mean people would have delete buttons appearing when editing on wikis where they do not have the rights to delete, so it would be adding functionality which they may not expect/like. I could create a second code page for staff/helper/vstf and those who don't mind having delete buttons on every wiki regardless that puts the fast delete buttons while editing and on diff pages as well. Let me know if you think any of the buttons would be better placed elsewhere :). Cheers, Grunny  ( talk ) 10:10, November 6, 2010 (UTC)

End of Quote User_talk:Cizagna

Awsome, I saw your changes and thought maybe you could use a switch that would save a couple of bytes. Also I think you could simplify all those repetitive links codes into a variable. If I did properly my code, it should look like this: afd = ''+ fdButtons[i].label + '' Switch (wgNamespaceNumber) { case '1': case '5': case '7': case '9': case '11': case '13': case '14': case '15': case '111': case '401': $('header.WikiaPageHeader > h2').before(afd); case '2': case '3': $('div.WikiaUserPagesHeader > ul.wikia-avatar').after(afd); case '500': case '502': $('div.WikiaUserPagesHeader > h1').after(afd); default: $('header.WikiaPageHeader > details').before(afd); } Hope this helps, thank you very much --Cizagna (Discusión) • Helper • Central hispana 20:29, 06 November 2010 (UTC)
 * Good idea. I've implemented this :). Cheers, Grunny  ( talk ) 01:03, November 7, 2010 (UTC)

Oasis Toolbar Buttons
Thanks for fixing that, it isn't a huge problem but it can really confuse people. :) --Anon talk 00:18, January 4, 2011 (UTC)
 * Thanks for taking care of this while I was away :) -- Porter21 (talk) 19:34, January 11, 2011 (UTC)
 * No problem :). Grunny  ( talk ) 07:57, January 12, 2011 (UTC)

AJAX RC
Hi Grunny, since you were able to fix The auto refresh last time i was wondering if you could find out why its not compatible with recent chanes on wikis that use the admin dashboard. Thanks,  Kangaroopowah -Briefing Room   05:00, August 1, 2011 (UTC)


 * I just checked, and it does work on wikis with the AdminDashboard. Can you link to a wiki where it doesn't? ~ Monchoman45 ( Talk  |  Contribs  |  Central ) 13:56, August 8, 2011 (UTC)


 * Quick fix for admindashboard has been implemented as it has now been pushed sitewide. Cheers, grunny  :&#126;$ 01:04, August 5, 2011 (UTC)

Monobook
What would I have to do to view AJAX RC in monobook. Thanks,  Kangaroopowah -Briefing Room   19:38, August 25, 2011 (UTC)
 * AjaxRC should work fine in monobook. You'd just have to put the import into either your global.js or your /monobook.js on any wiki. Cheers, grunny  :&#126;$ 00:06, August 26, 2011 (UTC)
 * Its in my global but I dont see it in monobook. I can give you a screenshot if you want.  Kangaroopowah -Briefing Room   00:08, August 26, 2011 (UTC)
 * Check your error console while viewing the RCs in monobook. It's possible there is JS specific to the Wikia skin that breaks in monobook. If so, you should put checks in that JS for which skin you are using. Cheers, grunny  :&#126;$ 00:12, August 26, 2011 (UTC)
 * It said it can't call method 'Index of' of undefined. What does that mean?  Kangaroopowah -Briefing Room   00:19, August 26, 2011 (UTC)
 * It's likely what I said above about Wikia skin specific JS. It is happening because indexOf is being called on an object that it can't find. Cheers, grunny  :&#126;$ 00:34, August 26, 2011 (UTC)
 * It's likely what I said above about Wikia skin specific JS. It is happening because indexOf is being called on an object that it can't find. Cheers, grunny  :&#126;$ 00:34, August 26, 2011 (UTC)

ShowHide localization
Jrooksjr stumbled upon an issue with Dantman's i18n function when trying to add a translation for a language code with a dash in it. As you probably know, dashes are not permitted in JS variable names, so the script threw an error and ceased working. In order to fix this, I've altered the function like this:

I.e. it's replacing dashes with underscores in the language variables. You might know a better way to address this, but I thought I'd make you aware so the localization of ShowHide can be fixed (since I can't edit it). I'll patch up the other scripts using that function. -- Porter21 (talk) 11:33, November 23, 2011 (UTC)


 * It would be a lot simpler to leave it as is and when languages with a dash in them are added, they should use quotes, i.e. . In objects, keys are strings, but when they are a valid variable name, the quotes can be dropped. In this case, as it is not a valid variable name, just use quotes around it. :) Cheers,  grunny  :&#126;$ 12:10, November 23, 2011 (UTC)


 * Right. Guess that's what you get when you work on script stuff in the early morning... :P -- Porter21 (talk) 13:48, November 23, 2011 (UTC)

Page protection
Thanks for protecting the PurgeButton and EditIntro code pages. Great idea! — Spike  Toronto  04:12, February 14, 2012 (UTC)
 * No problem :). grunny  :&#126;$ 04:13, February 14, 2012 (UTC)

Re: New Protection Level
Sorry for the dumb question but I'm a noob: The codeeditor permission means that I will continue to be able to edit the code I added but that third parties would have to either ask me to add their patches or request the codeeditor permission from you or me? Is that correct? If so, then sign me up please! (Not that my code has high traffic - what with being brandnew and all - but better safe than sorry. :) -- Pecoes 18:14, February 24, 2012 (UTC)
 * Yep, basically it will mean that only people with the codeeditor permission will be able to edit it, which will be kept to only those that are maintaining code, and have demonstrated they won't break anything :P. I've given you the right and protected your code page. I hope that helps. :) Cheers, grunny  :&#126;$ 18:19, February 24, 2012 (UTC)


 * Thanks :) -- Pecoes 18:23, February 24, 2012 (UTC)
 * Just a quick comment. Could you switch the description for coeditor on Special:Listgrouprights to something more descriptive? THanks, -- Kangaroopowah  ( Talk ) 03:48, February 26, 2012 (UTC)


 * How about: "Edit protected JS and CSS pages"? -- Pecoes 07:09, February 26, 2012 (UTC)


 * Done. Cheers, grunny  :&#126;$ 10:57, February 26, 2012 (UTC)
 * Thanks, -- Kangaroopowah  ( Talk ) 21:26, February 26, 2012 (UTC)

Two more please: Pecoes 02:51, March 13, 2012 (UTC)
 * 1) Sine/code.js
 * 2) FixWantedFiles/code.js
 * Actually, can you wait on sine. I have some config fixes I want to push. Thanks --  Kangaroopowah  ( Talk ) 03:28, March 13, 2012 (UTC)


 * If you want to edit Sine you might want to wait a little. I'm currently rewriting the whole thing from scratch because it's such an ugly mess of spaghetti code. -- Pecoes 04:05, March 13, 2012 (UTC)


 * I've protected the WantedFiles code page, do you still want the Sine code page protected or did you want to wait a while? Cheers, grunny  :&#126;$ 14:34, March 13, 2012 (UTC)

fd
Hi Grunny,

I recently saw you rewrote AjaxBatchDelete, which included removing the Querystring function with window.location.href.match. I was wondering if it would be possible to push those for Fastdelete. Best, -- Kangaroopowah  ( Talk ) 05:38, March 8, 2012 (UTC)
 * I went and changed both instead to $.getUrlVar, which is a jQuery function loaded on all pages anyway. :) Cheers, grunny  :&#126;$ 06:43, March 8, 2012 (UTC)
 * According to FastDelete its still 1.5. Do you think it's ready to jump to 2.0 yet :P. Anyways, out of curiosity couldn't all the document.getElementById in fd_checkdelete be changed to the jquery shortcut $? Just curious, -- Kangaroopowah  ( Talk ) 21:03, March 10, 2012 (UTC)
 * I was actually gonna bump it to 2.0 when I update it to use Ajax instead of going to ?action=delete then submitting. :) As for the document.getElementById, it could but there's no real advantage in doing so. Cheers, grunny  :&#126;$ 14:11, March 11, 2012 (UTC)

JavaScript and CSS Cheatsheet
Hi Grunny!

I aggregated this little cheatsheet which contains the things absolutely everybody who comes here needs to know. So I was wondering if you could add a link to it to the top navigation?

Pecoes 06:13, March 8, 2012 (UTC)
 * Done. :) grunny  :&#126;$ 06:39, March 8, 2012 (UTC)

RE
Hi Grunny, thanks for the reply. Regarding this, I wanted to make it work on the Dead Space wiki, but before I would make any changes to the site's .js I wanted to test if it would work on my global.js first.

Since I first left that question, an other admin from the wiki applied the change to the site's .js, and it turns out that it works fine, as it should. Which leaves me buffled as to why it did not work when I was testing the change to the copy (note: copy, not import) of the script over at my global.js. Don't scripts work when they are actually in the global.js, instead of being imported?

Oh and since you asked, I was testing on both Chrome and Firefox.

One last thing if I may ask. Can you visit the Dead Space wiki on firefox and let me know if the Back To Top button appears in the site's footer? The script, which is local to the site, does not load for me on Firefox, however it loads fine on Chrome, and also loads fine on both browsers when I import it to my global.js from dev wiki. I'd like to know if it happens to all users or is it just me for some reason.

Regards! -- Noemo n  * talk * 23:32, March 11, 2012 (UTC)


 * I can confirm that the JS doesn't load on Firefox (v10.0.2), but it does on Chrome (v17.0.963.79). Haven't test it out on Safari or Opera yet.— subtank  ( 7alk ) 17:32, March 12, 2012 (UTC)


 * I'll take a look at your wiki's JS later today and see if I can track down the issue. Cheers, grunny  :&#126;$ 01:21, March 13, 2012 (UTC)


 * Thanks, but just so you know, in case I can spare you the time, I think the issue is resolved. Regards :) -- Noemo n  * talk * 01:25, March 13, 2012 (UTC)

Fastdelete ajax
I used your ajax batch delete functions to turn fd into ajax. It drops support for monaco but that's about it (oh and a little more jquery to remove addonloadhook). Can you push it if it's good?

Here's the code:

Best, --  Kangaroopowah  ( Talk ) 02:26, March 14, 2012 (UTC)

P.S. I used javascript:fd_delete in the hrefs, but I'm not sure I coded that right. Can you check that part please? Thanks,  Kangaroopowah  ( Talk ) 02:30, March 14, 2012 (UTC)


 * I had actually already written an AJAX version, just hadn't posted it yet. I have now. Have a go and let me know what you think. :) Cheers, grunny  :&#126;$ 13:48, March 14, 2012 (UTC)

Thanks but can you check the JavaScript links to make sure I cod that properly for future reference? Thanks. -- Kangaroopowah  ( Talk ) 00:59, March 15, 2012 (UTC)
 * It's close, but the variable in the JavaScript function call needs to be wrapped in quotes and you need to concatenate it (otherwise the href would appear as  which will cause an error as it should be say  ), like this:


 * You could also tie clicking an element with a function by binding an event handler to it, such as by using, or using the onclick parameter of a tag instead. I hope that helps. Cheers,  grunny  :&#126;$ 14:34, March 15, 2012 (UTC)
 * So if I wished to use the onclick tag would i have to use encodeURIComponent? --  Kangaroopowah  ( Talk ) 16:27, March 16, 2012 (UTC)
 * Well, you want to at least make sure you escape any ' as if the variable has one it will close the quote in the  which will cause an error. How you do that is up to you, so it depends what you're doing with the variable in the function and also what type of variable you're getting. Cheers,  grunny  :&#126;$ 16:31, March 16, 2012 (UTC)

Advanced Oasis UI
Hi Grunny,

I was update Advanced Oasis UI by i18n'ning save page but the script is now broken. When I open console it tells me that the problem is an unexpected identifier on line thirty, or Save Page :  "Seite speichern" , in the de section of config. Can you try to fix the problem?

Thanks, --  Kangaroopowah  ( Talk ) 04:02, March 16, 2012 (UTC)


 * Fixed. In objects, keys are strings, but when they are a valid variable name, the quotes can be dropped. In this case, as 'Save Page' is not a valid variable name, it either needs quotes around it or to be made a valid variable name. To match the others, I changed it to savePage. Cheers, grunny  :&#126;$ 05:00, March 16, 2012 (UTC)
 * Thanks! --  Kangaroopowah  ( Talk ) 05:05, March 16, 2012 (UTC)

Js debug
Hi Grunny,

I recently made a mass rollback script on WP and I was wondering if youu could dind the mistake I made in it because it doesn't work. The code is here. Thanks, -- Kangaroopowah  ( Talk ) 17:05, March 24, 2012 (UTC)

Spoiler Alert
Hi Grunny!

Does the SpoilerAlert conflict with Wikia's policies? I'm asking because it does obstruct content. In a sense that is its purpose.. -- peco e s 15:07, March 29, 2012 (UTC)


 * This site is mostly maintained by Staff (i.e., Grunny). So, there would be no scripts, etc., that would be here if they contravened Wikia policy and/or the ToU. Also, the policy of not using spoiler alert notices is a Wikipedia policy, not a Wikia policy. Thanks! — Spike  Toronto  17:25, March 29, 2012 (UTC)


 * Sorry. I completely misunderstood. I thought that the spoiler script was one that was already here on the dev wiki. I forgot that anyone can add scripts. Thanks for clearing that up Grunny. — Spike  Toronto  13:17, March 30, 2012 (UTC)


 * Okay. Sorry for frying your brain btw -- peco e s 18:25, March 29, 2012 (UTC)


 * Hi Pecoes. I just checked about whether this would violate TOU. I'm assuming this blacks out the whole web page until they confirm? If so, no that can't be put for all users on a wiki. However, if you made it so it only blacked out the content area but left the rest of the site surrounding the content area intact for people viewing the page, that would be fine. @Spike we allow things here that maybe wouldn't be allowed to be enabled sitewide but users can use for personal use as well :). Cheers, grunny  :&#126;$ 23:39, March 29, 2012 (UTC)


 * I'll change it if it's not okay. But, please, check out the demo, so you get the full idea! -- peco e s 23:48, March 29, 2012 (UTC)


 * Yeah, as that blocks areas of the site outside of the content area it's against TOU. If you could just blackout the content/text area of the page that would be fine. Also, you could add the ability to only hide certain areas of the text for articles that only have parts that are spoilers. :) Cheers, grunny  :&#126;$ 03:38, March 30, 2012 (UTC)


 * Alright. I'll change it. -- peco e s 03:59, March 30, 2012 (UTC)

(reset indent) Done. Can I make a demo here? Let's say at SpoilerAlert/Demo?

This is the code I'd need:

peco e s 12:32, March 30, 2012 (UTC)
 * For the sake of keeping everything in one place I'll give my two cents here. It's a good script but my only problem with it is that it tests document.title for a spoiler notice. Instead, it should test the article content itself. Best, -- Kangaroopowah  ( Talk ) 14:18, March 30, 2012 (UTC)


 * The function that tests the page is a configuration option. The example code features a version that tests if the page is in the category "Spoiler". Users can copypaste that one if they like it better. Or write a new one that tests if the page is in the "Spoiler" namespace. Or what have you...


 * But I will add another example function that tests if there are any elements with the css class "spoiler". That's what you were getting at, wasn't it? -- peco e s 14:41, March 30, 2012 (UTC)
 * I don't really think pages that contain spoilers will actually have "Spoiler" in the page title. Instead, I think we should make a new nav menu called "Spoiler" on the dropdown of the edit button for admins only, which when clicked, anonymous users and regular registered users will see the message when they visit the page. Sorry if the description isn't clear &mdash; you can reply to this message if you don't understand -- Sam Wang (talk) 03:06, May 27, 2012 (UTC)


 * The trigger is already configurable, Sam. Check out the examples at SpoilerAlert for two completely different alternatives! -- peco e s 19:03, May 27, 2012 (UTC)
 * IMO, that's a good idea Sam Wang. It'll probably take some API requests but it would be fairly easy to pull off. -- Kangaroopowah  ( Talk )


 * The problem is storage. The easiest answer is to store the information in the page itself. If you don't store info in the page title or a category or a class name then where? -- peco e s 05:13, May 28, 2012 (UTC)

(reset indent) Thanks! -- Sam Wang (talk) 04:52, May 29, 2012 (UTC)
 * Save it in a mediawiki page pecoes. I'll prototype it today and post something to

Mediawiki:SpoilerAlet.js on my test wiki today or tommorw. -- Kangaroopowah  ( Talk ) 01:30, May 30, 2012 (UTC)

Spoiler Alert 2
Er, Grunny? What about my demo request? Did you miss that? I'd still like to make one... -- peco e s 12:13, April 05, 2012 (UTC)
 * I saw it originally, but with the further discussion between you and Kangaroopower I forgot :P. Done. Cheers, grunny  :&#126;$ 13:39, April 5, 2012 (UTC)


 * Thanks :) -- peco e s 15:38, April 05, 2012 (UTC)

Hai
Hey there, just a hopefully quick question for you. I'm trying to come up with a toolbar that has slightly easier access to certain pages I commonly use. I've borrowed bits of code here and there, got odd bits of help where I can find it, but I've hit a dead end and in reality I'm no good with js. ):

$(function { $(' • <a href="/wiki/Special:RecentChanges">Recent Changes</a> • <a href="/wiki/Special:CreatePage">Create Page</a> • <a href="/wiki/Special:WhatLinksHere/"' + wgPageName '"">What Links Here</a> • <a href="/wiki/"' + wgPageName + '"?action=history">History</a> • <a href="/wiki/Special:WantedFiles">Wanted Files</a> • <a href="/wiki/Special:WantedPages">Wanted Pages</a> </li></ul>').appendTo('ul.tools'); });

As you can see it's a little bit on the messy side, but the main problem is that the  part doesn't work as intended. It's meant to link to the  of the current page, similarly with the , but it's not really working. I've got it implemented here if you wanted to see it in action. If it's not too much trouble, could you add in the relevant code to make  open in a new tab too and maybe clean it up so it's not so daunting to edit ;)?

Cheers Cam.


 * I'm not Grunny but I see a few problems with you code. Firstly, you're using the notifications interface which I don't think you want to use right now. Secondly, a much, much easier way to do this is to just click customize in the floating toolbar and customize it there- all the links you want can be easily inserted through that. Hope this helps! -- Kangaroopowah  ( Talk ) 01:49, April 13, 2012 (UTC)


 * I'm not Grunny either, but if you want to open Special:CreatePage in a new tab, you could do it like this:


 * And two tips for future reference:
 * Always check your browser's error console! The reason why your script does nothing is a syntax error.
 * The line number the error console will tell you isn't worth much, if most of your code is on a single line. You should try to break the code up into multiple lines.
 * peco e s 03:03, April 13, 2012 (UTC)
 * Cheers for the help guys. I knew there's a My Tools menu but its a little easier for me when I'm making mass redirects, etc. to have a option that's always on the screen. I'll look into splitting up the code so I can tell where the problem is, though I suspects it's something to do with the combination of 's or "s around the wgPageNames's. It's when I start trying to add them in it starts breaking. Cam


 * Hi, I am Grunny ;-). And yep, you're right about your issue being with the quotes. Currently for the WhatLinksHere you have, the 's are correct, but you have too many "s and you're missing the second  . It should be  . I'd also use encodeURIComponent on the wgPageName to make sure the page name works properly if it has say an ampersand in it. So it would look like  . The same for the history link, which should look like:  . I hope that helps. Cheers,  grunny  :&#126;$ 09:10, April 13, 2012 (UTC)
 * It works :D I've spent so long playing with variations of 's and "s yet I never tried that one. Thanks so much for getting it working. Cam

Find&Replace
Hi Grunny!

Kangaroopower and I are developing a little plugin for the editor that adds find&replace. By and large it's going well, but I cannot figure out how to subscribe to the sourceModeReady and the wysiwygModeReady events. Can you shed some light on this? -- peco e s 06:08, April 19, 2012 (UTC)


 * And a follow-up question: Which event tells me when WikiaEditor.getInstance.getEditbox becomes available? -- peco e s 21:29, April 19, 2012 (UTC)


 * Hey Pecoes. Sorry for the delay. I answered both of these questions in the reply to your S:C email. Cheers, grunny  :&#126;$ 09:51, April 27, 2012 (UTC)
 * Can you please post the answers here though, just so I can see it? Thanks, -- Kangaroopowah  ( Talk ) 20:41, April 29, 2012 (UTC)


 * This is the code Grunny gave me:

peco e s 20:57, April 29, 2012 (UTC)

(reset indent) What does the code do? -- Sam Wang (talk) 00:56, May 27, 2012 (UTC)


 * I tells you when the editor has fully loaded. -- peco e s 19:06, May 27, 2012 (UTC)

Compressed JS and CSS files?
Should we create subpages like /code.min.js and /code.min.css for compressed versions of JS and CSS files to load faster? -- Sam Wang (talk) 10:33, May 26, 2012 (UTC)
 * Unless the code is quite large, which most of the ones here aren't, compressing won't save that much, so it's probably fine to just leave them as is. :) Cheers, grunny  :&#126;$ 13:21, May 26, 2012 (UTC)
 * That's true. However, once you've imported many of the code here, it then starts to use up a bit of space -- Sam Wang (talk) 00:16, May 27, 2012 (UTC)
 * AddNavMenuItems seems to have a lot of comments, but not really that much JavaScript (or jQuery). If the unnecessary spaces and comments are removed, then it should save a lot of space -- Sam Wang (talk) 00:19, May 27, 2012 (UTC)
 * Or perhaps pages like ArchiveTool/code.js -- Sam Wang (talk) 05:11, June 14, 2012 (UTC)

BotoneraPopups
Hello Grunny. I decided to share my code here, and as Pecoes suggested that it would be nice to have a demo on the wiki Talk:BotoneraPopups. If that's possible, that would be cool.

Also, I'm interested in protecting pages in Special:PrefixIndex/BotoneraPopups/ that end in .js or .css and becoming codeeditor. I've been using that code for ages and with the last improvement I did it should be considered stable and (hopefully :P) bug-free. Thanks! --Ciencia Al Poder en WikiDex 16:17, June 4, 2012 (UTC)


 * Hey Ciencia. Thanks for putting the code up, and done, done, and done. (unless I missed a page :P) Cheers, grunny  :&#126;$ 10:10, June 5, 2012 (UTC)

Cooeditor
Hey granny, if possible could I have coeditor status. Thanks! -- Kangaroopowah  ( Talk ) 13:33, June 6, 2012 (UTC)
 * I'm no granny ;) but done. Cheers, grunny  :&#126;$ 15:04, June 6, 2012 (UTC)
 * OMG IM SO SORRY. Apple auto correct >.<. Thanks for the right though! -- Kangaroopowah  ( Talk ) 00:57, June 7, 2012 (UTC)

Ajax Auto-Refresh
Hey, I'm a bureaucrat at the Patapon Wiki. I first found the AjaxRC script on the RS wiki. We are currently renovating our forums and I think this feature would be great to have. However, it wasn't functional for me (probably my fault). I first tried it on the w:c:patapon:Mediawiki:Common.js and then my personal common.js (script is still imported from the Mediawiki:Common.js subpage). Could you please show me what the problem is? Thank you, it's greatly appreciated. -- Pulse daemon (Talk) 02:35, June 14, 2012 (UTC)


 * Hi. Your Mediawiki:Common.js is currently broken as you have some illegal characters in there (take a look at the symbol at the start of the two lines that start with  and remove it). Your personal one won't yet work as you've put it in /common.js. The user subpage /common.js doesn't currently work on Wikia as we are still running MediaWiki version 1.16. When we upgrade to MediaWiki 1.19 that page will start working. This is happening very soon, as you can read about in this blog post. :) Cheers,  grunny  :&#126;$ 08:48, June 15, 2012 (UTC)

Thank you! I didn't notice you replied on this talk page. -- Pulse daemon (Talk) 01:12, June 20, 2012 (UTC)

PurgeButton
Hi Grunny!

Did you notice this message?

peco e s 08:58, June 15, 2012 (UTC)

mw:Extension:Minify
Hi Grunny, I was reading about the minify extension over on MediaWiki, and it says that it's a core MW feature as of 1.17. Given that Wikia is upgrading to MW 1.19, does this mean that we'll get the benefits of this extension automatically as a core feature of the new version of MW? So there's no point in minifying any javascript I'm writing here on Wikia, because MW will do it behind the scenes after for all pages in the MediaWiki namespace such as Common.js, global.js, etc? — Mathmagician (message wall) 03:20, June 19, 2012 (UTC)

AjaxBatchDelete - MediaWiki 1.19
Hi, ever since MediaWiki 'updated' to version 1.19, AjaxBatchDelete doesn't seem to be working. It gets stuck on "This page is intentionally left blank." I'm wondering if anyone else is experiencing the same thing, if so, please update/fix it. Thanks. -Falzar FZ- 12:11, July 6, 2012 (UTC)


 * It loads now, but it seems to get stuck on "Attempting to delete". -Falzar FZ- 03:37, July 20, 2012 (UTC)


 * Yep, that's a bug with deleting through the API. I fixed the issue of the page not displaying here and the bug with the API here. The API fix will go live with the next code release, so should start working again on Wednesday next week. Cheers, grunny@  :&#126;$ 10:15, July 20, 2012 (UTC)


 * Awesome, it works now as you said it would, thanks. -Falzar FZ- 02:43, August 2, 2012 (UTC)

AjaxRC Rewrite
Hey Grunny. I recently sat down and did a partial rewrite of AjaxRC. This included replacing cookie functions with localStorage, object orienting it and removing some unneeded stuff. Unfortunately (and this is my main concern), this destroys backwards compatibility into millions of tiny pieces. My suggestion would be two rename /i8n.js to /2.0.js (to make it seem friendlier) rework the standard AjaxRC page to set that as a default while clearly pointing out that the old one is obsolete, no longer maintained and should be replaced with an import to 2.0.js. As for the code, take a look below.


 * Please, do NOT use  with Arrays. It's only intended to be used to iterate through object properties. Arrays must use ordinal access index (using array.length and so on). Otherwise, if one modifies the Array prototype adding more properties they will get iterated as well with the array indexes. You should provide a fallback mechanism if localStorage is not available in the browser. --Ciencia Al Poder en WikiDex 19:32, July 8, 2012 (UTC)
 * @Ciencia, I didn't actually write any of the for loops myself... those exist already in the current version of AjaxRC. As for support, according to this all firefox and chrome versions support it, as well as IE 8+ and Safari 4+. This covers all of the browsers supported by wikia themselves, so if a user is using a browser not one of these, AjaxRC being broken is the least of their worries. -- Kangaroopowah  ( Talk ) 21:47, July 8, 2012 (UTC)

AjaxRC Issue
Grunny. Since you seem to be the person to go on this, as I saw you updating the RC code more than anyone, I was hoping you could help. I'm an admin on the Mass Effect Wiki, and while our AJAX feature is working, there seems to be a bug. When the auto refresh is on, the Javascript that collapses the edits into a single line doesn't work. When it turns off, the edits collapse. I'm not sure if this is related to Wikia's mediawiki update, but again since you seem to be the one writing the code for the feature, I figured you'd be the one to go to. If you have any more questions I'd be happy to answer them, and if you can help, it would be appreciated. Thanks. Lancer1289 20:37, July 12, 2012 (UTC)

New version for ShowHide
Hello

There is a little bug in ShowHide: a collapsed NavFrame in a collapsed table is visible if the table is uncollapsed (look at User:Arkondi/sandbox). I worked on a fix for this and additionally modified the code in some other ways. Now I'm satisfied with the code (User:Arkondi/wikia.js). Please take a look and tell me your opinion (or is it better to ask the whole community?). If you think it is ok, then I'll modify the documentation to reflect the changes (first on a subpage of my account). If that is done, I'll notify you again and you can take over the new code and documentation. Arkondi (talk) 19:23, August 12, 2012 (UTC)


 * Hi. I'd suggest taking a look at the built-in collapsible module in MediaWiki 1.19 which mostly makes ShowHide obsolete IIRC: mediawikiwiki:Manual:Collapsible_elements. If it covers pretty much everything that ShowHide does, ShowHide should be deprecated and people encouraged to move to the built-in functionality. Cheers, grunny  :&#126;$ 14:30, September 13, 2012 (UTC)

AjaxRC
At the top of AjaxRC/code.js, can you please change this line: to: This would make it so that the  configuration option (promised on the AjaxRC page) actually works so that people can customize the throbber. — Mathmagician (message wall) 23:59, August 25, 2012 (UTC)


 * Done. Cheers, grunny  :&#126;$ 14:33, September 13, 2012 (UTC)

ShowHide has died
jQuery has been upgraded and it not chokes on one of the selectors in ShowHide which causes the table hiding to stop working entirely. MW1.19 mw-collapsible is nice but there is a lot of legacy stuff that needs ShowHide to work. I figured out where the problem is: jQuery does not like  any more, it gives empty result sets. It should be: I tested this and it works again but the page is locked so I can't change the code myself. Lunarity 05:38, September 20, 2012 (UTC)


 * Done, thanks for the fix. :) Preferably, unless there is something specific to ShowHide that users need for templates, now that all wikis are on 1.19, we should start encouraging users to make use of the core makeCollapsible module. Then there's one less JS script they have to import and load. :) Cheers, grunny  :&#126;$ 07:07, September 20, 2012 (UTC)

Delete
Hi. Can you delete these please.--— UltimateSupreme (Talk) 13:41, October 25, 2012 (UTC)
 * Done. Cheers, grunny  :&#126;$ 02:43, October 27, 2012 (UTC)

Reference pop ups
Hi Grunny, I installed Reference Popups on my Wiki (merlin.wikia.com) but I do not want "Reference popups" showing in the edit button drop down on every page. Is there a code to remove this and how? Thank you.


 * Hi, I'd suggest asking the author of the ReferencePopups script, Lunarity, as they will be best able to advise you on that script. Cheers, grunny  :&#126;$ 09:42, November 10, 2012 (UTC)

Codeeditor
Hey Grunny,

I was wondering if I was eligible for the codeeditor right. I'm not extremely good at JavaScript, but I've built some useful scripts over the past year or so.

Cheers -
 * Yep, and done. :) Cheers, grunny  :&#126;$ 11:53, December 7, 2012 (UTC)

Likewise. May I request for it as well? -- Noem<font color="Darkgoldenrod">o n <font color="darkgoldenrod"> * talk * 12:23, December 7, 2012 (UTC)


 * Done. grunny  :&#126;$ 12:28, December 7, 2012 (UTC)


 * Cheers! -- Noem<font color="Darkgoldenrod">o n <font color="darkgoldenrod"> * talk * 12:31, December 7, 2012 (UTC)

AjaxRc changes
Could you take a look at AjaxRC/beta.js. It maintains backwards compatibility, wraps everything in a closure so the global namespace isn't filled with junk from this script, and it removes cookie dependence and switches that to localStorage. It also supports every browser Wikia supports and probably some others too. What do you think? -- Kangaroopowah  ( Talk ) 04:41, December 25, 2012 (UTC)

bump :) -- Kangaroopowah  ( Talk ) 04:56, January 5, 2013 (UTC)


 * Oops, sorry I missed this. Looks good at a glance (without testing). I'll take a closer look soon. Maybe we should have some sort of Code Review forum on this wiki, where user's can request feedback on scripts so they get attention from multiple people? Just an idea. Anyway, one minor thing from glancing is that the mediaWiki object should be included in the closure along with jQuery i.e.:


 * I'll take a closer look and test it soon. Cheers, grunny  :&#126;$ 06:30, January 5, 2013 (UTC)


 * I fixed that and did a few other changes. Could you test it out now? And the codereview forum would be a good idea. -- Kangaroopowah  ( Talk ) 19:57, January 13, 2013 (UTC)


 * Everything's good to go. It's ready for your testing. -- Kangaroopowah  ( Talk ) 04:40, January 23, 2013 (UTC)

Coding Help
I know this maybe to much to ask but I was wondering if you could teach me how to code more efficiently that is or at least help me understand how coding works and functions. Now I have an understanding of coding and how it work in general, overall anyways but I have a burning passion and love for programming and how everything comes to together to make awesome software and I would love it if I knew how to do all this cool stuff. So can you please help me.

here's some of my work: http://brotherhoodofthefallen.wikia.com/wiki/MediaWiki:Common.js

http://brotherhoodofthefallen.wikia.com/wiki/MediaWiki%3AWikia.css

http://brotherhoodofthefallen.wikia.com/wiki/MediaWiki%3AWikia.js/userRightsIcons.js

Oh and if possible help me with the Mediawiki:common.js and take a look at Mediawiki:Wikia.css

Your friend, your leader, The Fallen (talk) 02:51, January 18, 2013 (UTC)

Bob Bricks
Their is a Community Councilor named Bob Bricks who I think could highly qualify for being an Admin here.He has helped several wikis and Users all across Wikia and is a master at Media-Wiki Coding. I can show you examples of his work if you would like and think he could very well qualify for being an Admin here.

Ajax RC Beta
Ajax RC's beta is ready for production ;). -- Kangaroopowah  ( Talk ) 02:04, April 5, 2013 (UTC)


 * Hi Grunny, I would like to second Kangroo's request to push AjaxRC/beta.js to AjaxRC/code.js. In addition to other improvements, /beta.js fixes a bug on the Special:WikiActivity page reported on the talk page. Thanks,


 * On a slightly unrelated note (this was suggested a couple of sections above), would it be possible to set up a code review forum to submit code for review? I'm not sure if it would be easier to keep the current DPLForum or whether the new Wall forums would be a better option, but it would make it easier to check new code releases especially for high use code such as AjaxRC. Perhaps an extra admin wouldn't go amiss either (I'm not sure if there's any internal Wikia policy for admins here)?


 * Yes, I suggested that, but never got around to it, but let's give it a go. We generally don't give out admin rights here for security reasons. Changes to very high use scripts such as AjaxRC and FastDelete should be reviewed by a staff member (which usually is me, but could be another), hence they are protected. It is the reason the code editor right was created, so there was an option for moderately well used scripts to be protected while still allowing users who have proven they can write JS and are generally trusted to edit them. And the new version of AjaxRC is now in production. :) Cheers, grunny  :&#126;$ 10:59, April 18, 2013 (UTC)


 * Thanks Grunny! -- Kangaroopowah  ( Talk ) 11:40, April 18, 2013 (UTC)

JS and CSS Cheatsheet
Hi Grunny!

The page JS and CSS Cheatsheet no longer serves a purpose. At the moment it's just a redundant disambiguation page redirect. It would be for the best to delete it and replace the link to it in MediaWiki:Wiki-navigation with a link to Help:JavaScript_and_CSS_Cheatsheet. --

Code Request
Hi Grunny, if it is not too much to ask (and if it is possible), do you think you or anyone reading this, could whip up a bit of an extension to ShowHide that collapses the content horizontally rather than vertically? This came up in discussion on Fairy Tail Wiki and would prove to be very helpful for our wiki. Cheers--Godisme &lt;talk&gt; 04:03, April 25, 2013 (UTC)


 * What content on which page you would like to collapse? Perhaps there's a way to realize it with the integrated feature. Arkondi (talk) 06:53, April 25, 2013 (UTC)
 * Nothing specific at the moment. We are redesigning a bunch of templates and a horizontal collapse would be an interesting look and save some space.--Godisme &lt;talk&gt; 03:42, April 26, 2013 (UTC)
 * It would sure be useful to have an example though - to clarify your request and to allow for testing. --
 * On User:Arkondi/horizontalCollapse.js you can find code (copy it to your personal js) and on User:Arkondi/sandbox/HorizontalCollapse an example. Please do not hesitate to ask if there are any questions about it, because it is only a draft. Arkondi (talk) 07:37, April 29, 2013 (UTC)

Another update to AjaxRC
Hey Grunny. Could you please update AjaxRC/code.js with the latest from AjaxRC/beta.js? The list of changes can be found at Portal:Code Review/AjaxRC. Thanks, -- Kangaroopowah  ( Talk ) 22:51, April 27, 2013 (UTC)
 * Done. Cheers, grunny  :&#126;$ 15:24, May 1, 2013 (UTC)
 * Just saw this. Thanks! -- Kangaroopowah  ( Talk ) 04:21, May 8, 2013 (UTC)

Help with my wiki
Well, I tried everything, my wiki: The Big Bang Theory, just struggle to accept any of the codes I put on the Mediawiki page. Can you please review Common/wikia.js to tell me what's wrong? I also cleared cache, tried to browse the wiki from another wiki and also from another wifi.

Thanks! And please reply on my talk page so I could get a notification. —Preceding unsigned comment added by Unnamed Airbender (talk • contribs) May 12, 2013

Meta Wikia
Hello!

Sorry for disrupting you. Recently, a few other administrators of Wikia-related wikis and I started the Meta Wikia project. It is for all wikis dedicated to Wikia relevant topics. I feel that the Developer's Wiki would be a constructive addition to the project. Do you have any opinions or thoughts? However, the project was only recently started and as such, most of the wikis in it are very little in content. Denial is completely understood, considering this is such a large, widely used wiki. I understand you not having any interest in joining. Thank you in advance.

Best regards. -- Yuzura☆ 炎のマスタ ー 01:15, May 31, 2013 (UTC)


 * Can you give a link to the wiki? Arkondi (talk) 02:52, May 31, 2013 (UTC)


 * It is not a specific wiki, but merely a group project of wikis, with a footer that can be seen here. -- Yuzura☆ 炎のマスタ ー 19:58, May 31, 2013 (UTC)

Question about a code
Hi Grunny.

I was wondering if there was a code that maybe I could put into a page or something that would show a list of all the empty (blank) pages so I can find vandalism easier.

P.S. Please reply on my talk page.

Thanks. u&#592;&#653;o&#633; 14:46, June 9, 2013 (UTC)

Suggestions
Is there a place where I can suggest a code be made? I don't really have enough knowledge to make a javascript mod for Wikia, but I'd like to know if it's possible to make a feature for banning people from just forum editing. :D  ( T <font color="darkturquoise">C FF ) 21:12, June 25, 2013 (UTC)
 * I see you've posted on the Help desk forum already, but that's what I would have suggested. :) Cheers, grunny  :&#126;$ 11:09, June 26, 2013 (UTC)

Protected
Hi, could you unlock the PurgeButton/code.js page, I wanted to finish adding all translations, Thanks! --— Original  Authority  at Wikia Developers Wiki 21:57, August 9, 2013 (UTC)


 * You could leave the translations on the talk page and notify Pecoes who seems to be maintaining the script at the moment.


 * Per Cqm. Also, please stop using the tag in your signature, that is only for Wikia Staff members. Cheers, grunny  :&#126;$ 04:33, August 10, 2013 (UTC)