Wikia

Wikia Developers Wiki

Cqm

Admin
1,382 Edits since joining this wiki
April 13, 2012

Archive 1


If you have any questions that do not require my specific attention, please consider asking in forums first.


Unless requested, any messages posted here will be replied to here in order to keep a centralised, easy to follow discussion.

ReferencePopups‎

Thank you very much always for your kind support!!

I'm sorry to trouble you, but would you mind if I asked adding the translation to ReferencePopups again (because of the new extension, JavaScript review process)? --Plover-Y (talk) 2015-11-07 05:04 (UTC)

Unfortunately it's still locked down. I should be able to sort something out within a week or so though :) cqm 22:34, 12 Nov 2015 (UTC)
Thank you very much for the reply! --Plover-Y (talk) 2015-11-13 14:11 (UTC)


This might come off as rude, but I'm not trying to be. Have you constiered archiving your talk page?

In truth I haven't. I probably should sometime soon though :P cqm 22:34, 12 Nov 2015 (UTC)

Protect PrintableVersion/code.js

I created a new script called PrintableVersion that I need protected with codeeditor level.
~Curiouscrab (talk) 22:11, November 12, 2015 (UTC)

I can, but no one can edit js at the moment anyway, and we should be moving to the JS review system within a week or so which makes the codeeditor right/protection obsolete.
If I may ask however, what does your script do that MediaWiki:Print.css doesn't? It's probably better implemented via CSS. cqm 22:29, 12 Nov 2015 (UTC)
On closer inspection, and as this is all skin based, why not simply request additions to github:Wikia/app/blob/dev/skins/oasis/css/print.scss and something extra to kill the wikia specific stuff at the bottom of monobook? It's even better to have support for this stuff natively :) cqm 22:52, 12 Nov 2015 (UTC)
Well, it provides a good view of what the intended target page would look like. In CSS, I've found that hiding items generally leaves large undesirable spaces which take up perfectly usable space and requires more pages to be used in the process of printing. Of course, I guess you could try and scale those items to almost non-existence, but it's nearly impossible without removing them altogether.
~Curiouscrab (talk) 03:10, November 13, 2015 (UTC)
In addition, if we want to somehow stamp the page with the user's username as well as the URL that leads directly to the page rather than the current revision view, JS would be required.
~Curiouscrab (talk) 03:15, November 13, 2015 (UTC)

Check script

Hello, Cqm! Sorry for bothering, but I need you help.

Since Wikia have some problems with security and JS, we should be carefull. I've written one script, which have all data outside of .js page, because it's simple way to change script's config without waiting of JS review result. Here is script and data. I'm going to push it here, but before I want to be totally sure, that everything is ok. Can you, please, check it?

Idea of is script is alternative of custom achievement. Admin can create new badge and give it to user.

Thanks in advance! FANMADE_Luna_S1_flying.gifKopcap94@Wikia18:24, 18/11/2015

If you want people to review your code, you can post a request at Board:Code Review, although you should probably place a copy for review somewhere on this wiki. --Saftzie (talk) 01:16, November 19, 2015 (UTC)
Ah, okay, thanks! FANMADE_Luna_S1_flying.gifKopcap94@Wikia15:28, 19/11/2015
  • I'd avoid using onclick attributes, it's safer to use a proper click event handler such as jQuery's .on('click', ...) or .click(...)
  • Make sure to escape anything you aren't absolutely 110% sure about when working with html. In this case, it applies to the config stored in JSON. Simply use mw.html.escape(...) before adding the inner text inwhich saves a lot of potential headache in the future.
  • <center> is deprecated in HTML5. It'll work, but there's no real reason to use it when it can be easily replicated with CSS.
  • The debug and allinone query parameters do nothing when combined with action=raw.
  • Seeing as you're working with the DOM, it might be prudent to wrap your init call with $(...) (but don;t invke the method). For example, $(foo.init)
  • You're using some very generic regexes. I'd look at either making them a little more specific or commenting why you're using them in that way. Regex is one of those things you tend to have difficulty fixing when they break.
Otherwise, it looks ok. I haven't tested it in any way, the above is just some initial notes based on what I could see. cqm 16:48, 19 Nov 2015 (UTC)
I've fixed problem with html by another way (.attr()), so there shouldn't be any problems, because it's not allowing to add something like 'onclick' and so on. Button's 'onclick' is kinda crazy, I know, but it's same as 'click()', thought. About center - yep, my fail, was lazy to make it via CSS and totally forgot about this. Also was not informed about 'allinone' and 'debug' - will know it. Thanks for checking, I really appreciate it! FANMADE_Luna_S1_flying.gifKopcap94@Wikia17:37, 19/11/2015

Page Deletion

Is there a way to get some of my pages deleted, I marked them for deletion almost 2 weeks ago. I have also blanked them and added the delete template to the 4 pages. I have listed them below.
Sophie Profile Talk/Message Wall Contributions 10:45, November 21, 2015 (UTC)

(1) User:Sophiedp/Clean_Up_JS_Inports
(2) User:Sophiedp-Clean_Up_JS_Inports
(3) Template:Sophiedp-Clean_Up_JS_Inports
(4) Sophiedp-Clean_Up_JS_Inports
Category:Candidates for deletion has a few more. --Saftzie (talk) 04:33, November 22, 2015 (UTC)
Sorry, it's a little quiet here on Dev, so I don't tend to check such things very often. I'll get right on it :) cqm 16:30, 22 Nov 2015 (UTC)
Thanks :) Sophie Profile Talk/Message Wall Contributions 03:00, November 23, 2015 (UTC)

diff 34523

http://dev.wikia.com/wiki//?diff=34523
#WikiaArticle should probably be #mw-content-text, since #WikiaArticle exists only in Oasis. I'd post on Rappy's page, but I doubt he'd even read it. --Saftzie (talk) 22:44, November 23, 2015 (UTC)

Wikimarks not loading

Greetings Cqm! It appears that Wikimarks is hanging again (no console errors are generated, but the menu fails to appear and the "wait state" covering the "On the Wiki" menu cycles forever). Last time that happened I believe all that was needed was a null edit of the source code to reset it. 60px-Spsig.png (talk) 12:08, 24-Nov-2015 (UTC-7)

See Talk:Wikimarks#Stop_working.3F. Unfortunately, it's not a quick fix. cqm 10:27, 25 Nov 2015 (UTC)

Border Radius

On Template:Infobox JavaScript the infobox looks awfully boxy. I think it might look better if the corners were rounded with the border-radius property. I'm sure others would agree.
~Curiouscrab (talk) 16:05, November 25, 2015 (UTC)

Personally, I disagree for 2 reasons: I don't think it would add anything the the aesthetic quality of the infobox, and modifications to PI CSS have the potential to break in the future as wikia change things. I'd rather keep away from those modifications, unless absolutely necessary. cqm 22:26, 25 Nov 2015 (UTC)

suppressredirect

Considering that codeditors move stuff around, do suppose it's reasonable to ask Wikia to add suppressredirect to codeditor? --Saftzie (talk) 10:33, November 28, 2015 (UTC)

I don't see why not, I'll send something in to request it. cqm 10:38, 28 Nov 2015 (UTC)
And done :) cqm 20:27, 1 Dec 2015 (UTC)

Thank You

Cqm,

I wanted to thank you personally for your work on Wikimarks. I have been using the script for what I now realize has been literally years, and your effort towards keeping Wikimarks up to date with Wikia now that Pecoes seems to have moved on is greatly appreciated.

Regards,

--Whistle9 (Talk) 20:38, November 30, 2015 (UTC)

No problem, I've been using it for years as well so I was quite put out when it suddenly broke. It's surprisingly how many people really relied on it. cqm 21:19, 30 Nov 2015 (UTC)
Great to see you've fixed up that script. I might actually make use of it myself now. --SuperSajuuk Talk Page | Tabber Code | Channel 20:52, December 3, 2015 (UTC)

PurgeBlogs

Hi. I just noticed that my PurgeBlogs script was added to the MediaWiki namespace here. Will the former page at PurgeBlogs be needed any longer, as well as it's associated code page?

Also, I may just have to request codeeditor to manage some of my scripts. --SuperSajuuk Talk Page | Tabber Code | Channel 21:44, December 7, 2015 (UTC)

I'm unsure exactly why a few scripts were duplicated and not others, but I think it's due to the new JS import page tha was added a couple of weeks ago. For now I'd keep your script where it is, along with it's documentation until there's a formal announcement for what the plan is with JS here. cqm 09:46, 9 Dec 2015 (UTC)
Alright, thanks for letting me know. And thanks for adding codeeditor. :) --SuperSajuuk Talk Page | Tabber Code | Channel 11:12, December 10, 2015 (UTC)

FixSourcePages

Regarding this, I finished the script some time ago and was thinking it could be tested and possibly implemented unless there is a way to enable source page formatting without the script. I set up the script so that it removes the extra pieces and parts of the script caused by the source tags, but we could always go through and manually and/or automatically remove the tags.
~Curiouscrab (talk) 03:22, December 10, 2015 (UTC)

I just went through and did some work to condense the script, but now I can;t move it back to where it belongs. If you could please move FixSourcePages/temp to FixSourcePages/code.js.
~Curiouscrab (talk) 03:36, December 10, 2015 (UTC)

Hide Deletion

I think due to the profanity in the deletion of the article deleted here, the deletion log for this page should be hidden from recent changes as well as the deletion log.
~Curiouscrab (talk) 02:31, December 11, 2015 (UTC)

That not really what revdel's for, hence LadyLostris elected not to use it. In any case, I don't have the user right here to do anything about it. cqm 09:11, 11 Dec 2015 (UTC)


Message Script not working

Seeing you are an ADmin here, I deemed it appropriate to ask you. I have attempted to use the Message script and have hit send two days in a row and it seems to be dysfunctional. I was wondering if the possible reason was that it hasn't been approved to match with the new JS Review system. Thanks so much —Preceding unsigned comment added by Superdadsuper (talkcontribs)

I'm not sure what message script you're referring to. Perhaps it would be better to contact the script's author? cqm 13:34, 30 Dec 2015 (UTC)
They have been inactive for over a year. The script is the one here. It has seemed to work, up until the introduction of the JS Review. I was thinking perhaps it hasn't been approved so the script is dysfunctional because of that (I have no way of knowing this). I have it installed on my global js and all other global js scripts are working. The extent of the dysfunction is, the dialog pops up, but it doesn't post after hitting send nor does it preview very well. —Preceding unsigned comment added by Superdadsuper (talkcontribs)
It's not a script I'm familiar with, but at a glance it's reliant on the less stable Wikia API and JS library, rather than the much more stable MediaWiki ones, so it could be any number of issues.
I don't have the time to look at it in any detail at the moment, so perhaps try posting on the forums here of at community central? cqm 15:45, 30 Dec 2015 (UTC)
After asking on the forums and on CC chat I have recieved no help. I was wondering if the issue lies in the script not being approved. If not could you sumbit it and get it approved and if that doesn't fix the problem I will message a skilled JS user or do it manually? Thanks, Superdadsuper
Alright thanks for the help anyway —Preceding unsigned comment added by Superdadsuper (talkcontribs)
JSReview isn't implemented on the scripts in the mainspace here yet, I assume there's a plan coming in the new year that will add it. cqm 12:39, 3 Jan 2016 (UTC)

Dutch Translation of CategoryRenameAuto-update

Hi, I've translated CategoryRenameAuto-update into Dutch. I cannot at it to CategoryRenameAuto-update/nl.js, however. Can you do that for me instead? The translation is located on my Sandbox. Thanks in advance! Mainframe98 talk·edits 14:24, January 1, 2016 (UTC)

Fixed a couple of quotes, just a reminder that you'll need to change the supportedLanguages array at CategoryRenameAuto-update/code.js as well once you add that language page. What's up with editing scripts now by the way? I'm a codeeditor and still can't edit scripts. Thanks Cqm! — Foodbandlt (talk) 00:32, January 2, 2016 (UTC)
No one can edit scripts here at the moment, except staff (and maybe utilities?). The workaround for the time being is to move the page to a non .js extension, edit it and then move it back. It's a pain and was meant to be fixed before Christmas, but it would seem they ran out of time. cqm 12:41, 3 Jan 2016 (UTC)
Ah, that explains a lot. I'll try that later then. Mainframe98 talk·edits 14:31, January 3, 2016 (UTC)
I got Mime to do it. Thanks Mime! — Foodbandlt (talk) 03:38, January 7, 2016 (UTC)

ajaxbatchundelete

since i don't have codeditor rights, me and noreplyz updated oz's version 2 of the original ajaxbatchdelete script. We removed the protect and "add category" options since that's not useful. Are you willing to help me transfer it over, i tested it and it works but did not have staff review it. I can have staff review it, just submited. its located here. Probably won't get codeditor since i'm not planning to make any further scripts or modify any.

Nerfmaster8 (talk) 06:06, January 8, 2016 (UTC)

New process for submitting code

As staff has decided to move all code to the MediaWiki namespace, I think that it will probably be useful to update the rules on submitting new code (for code-editors). Also including things such as "don't try to mess with the common.js" and related messages. Alternatively, those pages could be admin protected.

It might also be a good idea to re-submit popular scripts. Staff seems to have just pre-approved all of them without any review. —Preceding unsigned comment added by Dessamator (talkcontribs)

I agree with this. In fact, what Wikia should consider is disabling the editing interface (using JS or something) of the community JS/CSS files on this wiki so they don't work if the user is not marked as being a sysop. This unilateral wikia change requiring the mediawiki namespace to be used for code files is silly imo and doesn't really make it possible for new coders to get started, as their files will be moved to the mediawiki namespace, barring them from changing their own scripts. --SuperSajuuk Talk Page | Tabber Code | Channel 19:42, January 14, 2016 (UTC)
Actually, code editors can edit the MediaWiki namespace in this Wiki. So they can continue improving their scripts if they so wish. Strictly speaking, no code changes go live immediately, so it doesn't really matter if people try to edit it a hundred times only the revisions approved by staff will ever go live. Although I'm not sure if the editinterface right gives people permission to request a javascript review. They might have customized it for this wiki anyway. Dessamator (talk) 21:14, January 14, 2016 (UTC)
I've implemented an abusefilter to protect non .css and .js pages, as well as Common.js and variants to prevent people editing pages outside the intended scope. I've raised the issue of insecure scripts being grandfathered in previously, and staff apparently don't have the resources to review all the js here (or it was a decision made by someone who simply hoped it would be fine). Either way, the current revision has been approved so simply resubmitting it makes no difference unless we review them ourselves to fix any security issues. cqm 21:25, 14 Jan 2016 (UTC)
Makes sense, anyway, I made changes to the code help page. It would be easier to review scripts if we knew which ones are the most popular. I know of less than a dozen that seem to be widely used. With JSimport perhaps staff will have the stats on popular scripts that should be reviewed. Perhaps I should at least review my own scripts, since they were made without much care about security. Dessamator (talk) 21:56, January 14, 2016 (UTC)
Just noticed that apparently all autoconfirmed users now have the edit-interface right. I guess that makes the code-editor group pointless. Dessamator (talk) 12:41, January 16, 2016 (UTC)
Code-editor is obsolete for the time being, but everyone having the ability to edit NS_MEDIAWIKI is only a trial. If it works, we can look at removing code-editor. If not we'll have to look at other ideas.
I'll be keeping an eye on how it works out for now, as will staff. If there's anything that you or others spot that shouldn't be happening, just let me know :) cqm 15:45, 16 Jan 2016 (UTC)

ProfileTags.js needs review and more testing

I left some notes in :

http://dev.wikia.com/wiki/MediaWiki_talk:ProfileTags.js#Script_needs_review_and_more_testing

In addition you may also consider adding some visible way of showing regular users that the script is actually working. Most users are ignorant of things such as browser console.Dessamator (talk) 11:50, January 16, 2016 (UTC)

Question about editing using Threads / Wall api

Hi, your input would be appreciated in Thread:8646.Dessamator (talk) 11:09, February 10, 2016 (UTC)

Around Wikia's network

Random Wiki