User talk:Cqm

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 :)


 * 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

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) ~Curiouscrab (talk) 03:10, November 13, 2015 (UTC) ~Curiouscrab (talk) 03:15, November 13, 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.
 * 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 :)
 * 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.
 * 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.

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! http://images4.wikia.nocookie.net/mlp/images/6/6f/FANMADE_Luna_S1_flying.gif Kopcap94  18: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! http://images4.wikia.nocookie.net/mlp/images/6/6f/FANMADE_Luna_S1_flying.gif Kopcap94  15:28, 19/11/2015


 * I'd avoid using onclick attributes, it's safer to use a proper click event handler such as jQuery's  or
 * 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  before adding the inner text inwhich saves a lot of potential headache in the future.
 * 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,
 * 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.
 * I've fixed problem with html by another way, 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! http://images4.wikia.nocookie.net/mlp/images/6/6f/FANMADE_Luna_S1_flying.gif Kopcap94  17: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 :)


 * Thanks :) Sophie Profile Talk/Message Wall Contributions 03:00, November 23, 2015 (UTC)

diff 34523
should probably be, since   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. http://images2.wikia.nocookie.net/__cb20130823072743/spottra/images/thumb/e/ea/Spsig.png/60px-Spsig.png ( talk ) 12:08, 24-Nov-2015 (UTC-7)


 * See Talk:Wikimarks. Unfortunately, it's not a quick fix.

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.
 * Well, there is a standard feature now. The europa theme that can be activated in Special:Wikifeatures. That may be worth activating as it probably looks way better than the default theme .Dessamator (talk) 11:24, April 14, 2016 (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.


 * And done :)

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.
 * Great to see you've fixed up that script. I might actually make use of it myself now. --SuperSajuuk Talk Page 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 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.
 * Alright, thanks for letting me know. And thanks for adding codeeditor. :) --SuperSajuuk Talk Page 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.

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


 * I'm not sure what message script you're referring to. Perhaps it would be better to contact the script's author?


 * 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.


 * 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?


 * 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


 * 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.

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! &mdash; 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.
 * Ah, that explains a lot. I'll try that later then. &mdash; 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.
 * 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 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.
 * 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 :)

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)

RE: Profile Tags
Whoops, that shouldn't have happened. Thanks. I'll make sure to prevent that. &mdash; Mainframe98 talk · edits 14:07, February 17, 2016 (UTC)

Script Tracker
Are you aware of any script trackers that allow developers to track who uses their scripts so they can make sure everything is working fine for other wikis? Also, it would be nice to be able to warn wikis when major changes might occur. ~ Curiouscrab (talk) 21:53, February 25, 2016 (UTC)
 * Nothing like that exists to my knowledge.

Overzealous abuse filter?
Hi there! I'm trying to save a script page at MediaWiki:MonobookHighlight.js, but it seems to be hitting the abuse filter 'NS_MEDIAWIKI Protection', which seems odd... I thought it was only to block non-CSS/non-JS pages, as mentioned above? - OneTwoThreeFall (talk) 18:34, February 27, 2016 (UTC)
 * Should be fixed now. Let me know if you have any more issues :)
 * Seems all good now. Thank you!  - OneTwoThreeFall (talk) 18:56, February 27, 2016 (UTC)

Few Wiki Fixes and Helpers
In my common.js I have some scripts under wiki fixes and helpers that do simple tasks such as add the small text that appears on sub articles linking to the parent article that doesn't show up now that the scripts are located in the mediawiki namespace and the parent is in the main namespace and fix the preview button for scripts (right now it just previews the script text, but doesn't run it). ~ Curiouscrab (talk) 00:47, February 28, 2016 (UTC)


 * Your test script snippet is inherently secure via use of eval and doesn't account for the fact that cookies are limited in size or number. It's very likely to cause issues with large scripts, and I don't see a way to clear the cookie or end the test. Perhaps you'd like to look at MediaWiki:DemoScripts.js for demoing scripts instead?

~ Curiouscrab (talk) 15:23, February 28, 2016 (UTC)
 * Yeah, I wouldn't recommend using what I have now but possibly adding more to it. As for the sub links and (recently added) the revid I think those would be helpful. I'll see what other ways one can test a script without copy-pasting or putting it in the common.js. I didn't add the cookie remove option because I figured cookies wouldn't be the way to go, and I thought maybe you might have knowledge of another way to store temporary data (other than the URL).

Category:Candidates for deletion
A few pages need deletion as listed in the above category. ~ Curiouscrab (talk) 20:55, February 29, 2016 (UTC)

Delete
Hi. Can you delete this and this ? Wikia Staff have rejected the script twice over and there is no use of it. DaNASCAT has also given an official statement about the script on the talkpage, so there is no point in the script files being present on the Dev Wiki. Thanks. --Sajuuk 22:08, March 1, 2016 (UTC)


 * DaNASCAT is waiting for Deadcoder to reply to his message before taking any further action, which I'll respect rather than jumping the gun. ToU violations are very firmly within the jurisdiction of staff, so it's not something I'd like to get involved in unless absolutely necessary. I'll give my opinion on such things, as I have in this case, but I'm not going to impose my opinion with regards to admin actions.

CSS Category
Hey! I noticed you were an admin on this Wiki, and I think there is a bit of a problem with the CSS category.

If you take a look at the Category, the pages are out of order. Usually they are listed alphabetically, but for some reason various pages are clumped together under C.

Is this intentional or some weird bug?

Thank you :)


 * Thanks for pointing it out :) It should be fixed now, we'll just have to wait for the page cache to clear over the next 24 hours or so.

Tabber
I don't know much about how CSS works. I was playing with the code I got from TabberDesign, and I don't want the tabs to be any one set color. I want people on my wiki to be able to chose their own tab colors that best suit the page they're using the tab on. Is there any way to put variables into CSS, like a template? Or is CSS rigid? -R. A. B. 16:29, March 6, 2016 (UTC)

Rights question
Hi! I'm just wondering: as a sysop/vol dev, are you allowed the right to remove the codeeditor flag from anyone who is misusing it? Just curious. --Sajuuk 21:05, March 13, 2016 (UTC)


 * As an admin, yes. Generally, I'm the person that handles requests, so it's reasonable to say that I can do the opposite (assuming staff don't have any disagreement with my judgement). However, I'd be unlikely to do so without very good reason.

Desktop Script Policy
Is there currently a policy on scripts that run offline that are Wikia related? I created an offline counterpart for the Status script and have successfully run it offline. It alerts users via desktop notifications when a certain user is on a specified wiki per user input onto a settings document. I might try something similar with the PrivateMessageAlert script. Offline scripts aren't mandatory for the online script to work, but are helpful. I have a safe hosting site where I can drop a zipped folder with the offline parts. <span style="color:#000000; text-decoration:none !important;">~ Curiouscrab (talk) 17:50, March 26, 2016 (UTC)


 * At first glance, this seems exactly like what the new security regime is intended to prevent. Does the offline script in any way get loaded by the wikia? — Spike  Toronto  16:21, March 31, 2016 (UTC)


 * I'm not really sure what you mean by offline, but I assume you mean something you run on your computer as opposed to something that runs within the confines of your browser.
 * There's no policy for it on Dev, although I would encourage you to host such code on github and have the appropriate installation instructions there so users can review the code for their own piece of mind. Downloading a .zip file from a random place on the internet raises concerns about the overall security of the system used, irrespective of any guarantee you, or any other author who may do the same, can provide.


 * You can look at MultiUploader for some clues. It seems similar to what you are saying--<span style="color:#0078ff; text-shadow: 0px 1px 0.4px #0054d3, -1px -1px 1px white, -2px -2px 6px #0093f4;">~Ultimate <span style="color:#f00; text-shadow: 0px 1px 0.4px #f33, 1px 0px 1px white, 2px 2px 6px #f33, -2px -2px 6px #f33;">Supreme  18:11, April 1, 2016 (UTC)

Demo CSS
Hiya Cqm! Would you please consider adding the following to MediaWiki:Common.css? tags */ code { color:black; background-color:#F9F9F9; border:1px solid #DDDDDD; border-radius:5px; padding: 1px 4px; } /* END Set The addition of this CSS would make it easier to demonstrate small snippets of code, etc. Thanks! :) — Spike  Toronto  16:19, March 31, 2016 (UTC)

Is that a “no”, then? :P — Spike  Toronto  12:27, April 21, 2016 (UTC)


 * As tt is deprecated, I'm not going to make any changes there. I'd be more inclined to make it non-functional as it's current styled, but that can be for another day.
 * I've added some styles to mirror the styling of pre tags to both skins, hopefully it'll have the.


 * That’s cool. Thanks! As for the “tt” tags, that was an accident: It seems I may have cut-and-pasted too much. :$ I only meant to ask for the re-styling of the “code” tags. Oops! — Spike  Toronto  02:09, May 13, 2016 (UTC)

Mercury
Hy, Yes an answe Here would be great.

Countdown no-leading-zeros
Currently using Countdown over at Acepedia's Main Page under "Countdown to E3", and the no-leading-zeros option is enabled in that countdown, but leading zeros are still showing up. Could you take a look? « SlyCooperFan1 » [message wall - contributions] 03:32, May 21, 2016 (UTC)
 * It seems to be working correctly based on what I can see. Could you clarify the issue you're seeing, possibly with a picture?
 * For some reason, I didn't get a notification about this reply. :( Anyway, the issue is still persisting. Here's a picture: File:Countdown Leading Zeros Bug.png. « SlyCooperFan1 » [message wall - contributions] 00:12, May 31, 2016 (UTC)
 * There are no leading zeros in your screenshot. A leading zero would be something like "05" instead of "5". "0" would always be "0". --Saftzie (talk) 00:23, May 31, 2016 (UTC)
 * The code's page description disagrees with you. « SlyCooperFan1 » [message wall - contributions] 03:18, May 31, 2016 (UTC)
 * Then by the code's description page, there still aren't any leading zeros. Your screenshot says "14 days, 0 hours, 49 minutes, and 30 seconds." The option is "no-leading-zeros," not "no-zeros-anywhere." When days=0, then days won't be shown. When days=0 and hours=0, then days and hours won't be show, etc. --Saftzie (talk) 05:12, May 31, 2016 (UTC)

Wikimarks AF
It might be a good idea to put in an Abuse Filter to prevent people editing other people's Wikimarks page, as that is currently possible. --Sajuuk 16:46, May 24, 2016 (UTC)

AjaxRC
Can you see the message I've left to Rappy? He told me to send you the list of translations: w:c:quentum:auto-refresh.

What you need to know: 3 languages there don't have own code (Ærisk Friesk, Hessian, Arabic Tatar), some languages use two or more alphabets (like SR TT MN AZ), AR has 2 versions because two users translated it but I'll ask which is better and remove one. ~ [ <font face="times new roman"> Q uəntum ii ð the Wise  ]  11:25, May 27, 2016 (UTC)

Code editor
Is the code editor permission still in use? -- So ph  ie  19:51, May 28, 2016 (UTC)
 * It still exists, but it's no longer required to edit JavaScript. Anyone can edit now. The option remains to use it again if too many people go crazy. --Saftzie (talk) 20:46, May 28, 2016 (UTC)
 * Some scripts (like ChatHacks) are still protected for codeeditor only, probably for being high-traffic pages from being constantly edited (and from putting a lot of wikis importing the script in risk). So I say the premission is still useful. 20:51, May 28, 2016 (UTC)


 * There's very little that's still protected anymore, most of it is stylesheets from before the migration to the MediaWiki namespace. The userright itself is thus largely unused.
 * With the specific example of ChatHacks, it seems to have been a mistake caused by protecting it in the mainspace and moving it to MediaWiki: after the migration and subsequent unprotection of all moved pages (there's a bug/feature where you can't (un)protect MediaWiki: pages). Nonetheless, it's protection has now been removed so thanks for drawing my attention to it :)

Page Move request
Can you move MediaWiki:ThreadIndicator.js/code.js to MediaWiki:ThreadIndicator/code.js? Thanks! --Sajuuk 11:51, June 4, 2016 (UTC)


 * Unfortunately not, moving was prohibited in the MediaWiki namespace over security concerns, but instead of preventing it between namespaces of to a non .js suffix they clamped it all down.
 * If you want to preserve the history, you'll need to write into staff. ALternatively you can copy the code to the new page title and manually redirect the old page to it.
 * Are you able to delete the pages in that namespace? If so, that would be better. Preserving page history is not important, given the script hasn't been approved. --Sajuuk 16:57, June 4, 2016 (UTC)


 * Deleting I can do :) Just let me know when you're ready.
 * I've copy/pasted the code on the former article to the latter article, so the former page (MediaWiki:ThreadIndicator.js/code.js) can be deleted safely. --Sajuuk 17:20, June 4, 2016 (UTC)

?useskin=oasis
Um, hello. Do you think you can help me with this problem. Apparently, whenever I don't enter ?useskin=oasis, wiki pages become the same as my mobile view, even though I'm using a laptop to do my edits. It's interfering with my editing and this hasn't happened before. Do you think you can fix it? <font color="#C0C0C0">Super Kami Guru  (<font color="#D2691E">Swiggity swass, I'm gonna violate 'dat ass! ) 04:02, June 5, 2016 (UTC)


 * Hey, I'm not able to help with that particular issue. I'd suggest writing into staff via Special:Contact/bug who have far more tools at their disposal to help diagnose your issue :)

Linking scripts back to their main page
Are you able to edit arbitrary MediaWiki: messages here? If so, it would be very useful to have a link added to MediaWiki:Clearyourcache pointing from script pages (and CSS pages, where they're in the MW namespace) back to the mainspace documentation page; something like  (though the wording might stand to be improved, and it probably wouldn't hurt to have it in an ambox or similar to visually distinguish it from the other content in that message). 「 ディノ 奴 千？！ 」? · ☎ Dinoguy1000 22:14, June 10, 2016 (UTC)


 * I've had the same thoughts, often times trying to go back to the docs is a pain. But I would suggest a simpler non-expensive version, something like:

For this main page, see [ this].
 * I think Cqm cannot edit the mediawiki namespace, aside from pages that a normal admin can. Although it is easy enough to request staff / helpers to make the change.

Dessamator (talk) 22:36, June 10, 2016 (UTC)


 * I'm not terribly concerned about the use of  here, since it's only a single use and it won't (can't) impact anything further down the page (since the pages are just JS/CSS, they won't be using any parser functions or other wiki markup, and thus don't run the danger of hitting any of the template limits, including the expensive function count). If there are other performance concerns associated with using it in a MediaWiki message, which itself is normally only displayed on other MediaWiki messages, I am unaware and to be frank it's not my concern anyways (that would fall to staff, unless and until they told me otherwise).
 * I wouldn't doubt it, though this wiki is a bit of a special case and so it's possible that admins here have that ability (I've probably been told whether they do or not, but it's been long enough ago that I don't remember, if so). Even if it's not the case, though, one reason I posted this here in the first place was just so I wouldn't forget the request or any of the details, and also in the off-chance that a passing staffer happened to see it before someone actually filed a ticket for it, they could take the initiative and do it themselves if they wished. 「 ディノ 奴 千？！ 」? · ☎ Dinoguy1000 23:21, June 10, 2016 (UTC)


 * It actually does affect performance see (http://dev.wikia.com/wiki/Help:ParserSpeed#How_to_make_improvements). We should preferably not use any parser functions there at all, although it might not matter much here since this isn't a "typical" wiki anyway.
 * There have been several occasions where Cqm has been asked to edit the MediaWiki namespace to change a something and it wasn't done because of that fact. Things might have changed though. Anyway, in the worse case scenario we can always implement it using javascript.Dessamator (talk) 00:05, June 11, 2016 (UTC)


 * Performance is one of the holy wars of programming, but the general advice is don't optimise until you have to. A single expensive parser function is unlikely to make much of a difference in terms of performance, if it does then that's a concern of it's own.
 * I'll have a look at implementing one of these though, as it's obviously a pain point. It probably won't be until week after next though.

MediaWiki:Licenses
I notice that Dev uses the MediaWiki default, but Community has a custom one. In particular, Community has a license statement for screenshots of Wikia, which I think would be pretty useful for documenting scripts. I've sort of copied Wikia-screenshot from Community to Dev. It might be worthwhile making a local MediaWiki:Licenses to add it to the default. --Saftzie (talk) 10:02, June 14, 2016 (UTC)

SCSS
Do you know if there is any way to use .scss on Wikia? I remember you doing the LESS stuff on RSW so was wondering if you knew Ozank Cx (talk) 21:03, July 5, 2016 (UTC)


 * Traditionally, the answer is no. SASS was originally written in Ruby iirc, whereas LESS was written in JavaScript. You might notice that MediaWiki core have support for LESS rather than SASS as the SASS parser did not exist in PHP at the time.
 * Since then, someone has written the SASS parser in C++ which has then been compiled to JS with Emscripten, which is also what Jagex used for their apps and alog viewer. The JS compiler is at https://github.com/medialize/sass.js/ and there's a quick guide in their README.
 * You may have some issues with imports as I did with LESS, see comments marked with  in MediaWiki:Less/less.js. Otherwise, you'll probably be able to make some minor modifications to MediaWiki:Less/code.js to convert the compiler to SASS and you'll have it running in no time.

Renaming and deleting pages
Hello, Cqm. You seem to be the most active administrator; therefore, I’m asking you this:

The page WHAM should be renamed to WHAM!, since the template is called “WHAM!” (with an exclamation mark) and not just “WHAM.”

The page WHAM! already exists, but it’s just a redirect. WHAM should redirect to WHAM! and not vice versa. It seems as though moving pages is disabled to regular users on this wiki, which is strange, but I nor anyone else who is not a sysop are able to move the page because of that.

I was wondering if you could just move the page when you have the time.

Also, when you have the time, you might want to look at the Candidates for deletion category, which includes several pages which should be deleted.

Thank you! ―PapíDimmi (talk) 19:50, July 6, 2016 (UTC)


 * Thanks for pointing me in the direction of the deletion category, obviously I've been lacking in that area of late.
 * As for the request to move the page, I'm not entirely sure what there is to be gained from the move. Excluding it using the 'canonical' name, it potentially requires moving associated script(s) assuming we implement the automatic doc links discussed above which in turn breaks everyone's import of the script. As we have if it was a real issue, I'm strugling to see why this is necessary.


 * Thanks for your quick response and action. About the WHAM article, I just thought that it’d be beneficial to name the page what the template is actually, officially called and not something else (however, it’s definitely not a serious issue). I didn’t realize that it could potentially break people’s import of the script, though. I’ve now added the DISPLAYTITLE magic word to the WHAM article, in order to change its title’s appearance to “WHAM!” ―PapíDimmi (talk) 20:27, July 6, 2016 (UTC)

Could you help me finish the codes?
http://plantsvszombies.wikia.com/wiki/User:Zam-Bot/common.js Supreme Lord of Supremeness II (talk) 19:32, July 7, 2016 (UTC)


 * Seeing as you're attempting to create a chatbot in Python on a page that only supports JavaScript and have what seems to be nothing more than the example code, I'd suggest that you don't have the necessary experience to be able to run or maintain such a script in the first place. Have you considered asking someone who already has a chatbot if they'd be willing to run it on your wiki instead?

Layout of list of Javascript enhancements
Apparently, some users seem to be undecided about whether to use tabbers in the List of JavaScript enhancements. Considering that is a fairly popular page and the only way to make sense of all the scripts hosted it might be a good idea to come up with a definite layout. Perhaps one that is also friendly to most browsers (including mobile).

My suggestion would be to move out all old scripts/ broken or incomplete scripts to a separate sub-page, and perhaps use the design like Global Lua Modules that is easier to understand and maintain.

See also  http://dev.wikia.com/wiki/Thread:7839.

Dessamator (talk) 09:39, July 8, 2016 (UTC)

Script problem
Hi. The script which you provided. $(function { var $input = $('#wpSummary'), summary = $input.val;  if (summary.indexOf('Undo') === 0) { $input.val(summary.replace('Undo', 'Undid')); } }); It does not work with AjaxUndo nor AjaxPatrol. Is it possible to fix this? It seems like such a simple and trivial script, yet it breaks two of my the most important scripts which I use. I would really appreciate some help. <font face="Papyrus"><font color="#0020C2">― <font color="#0000A0">PapíDimmi  <font color="#571B7E">( <font color="#4AA02C">talk | <font color="#4AA02C">contribs <font color="#571B7E">)  00:26 (updated 15:31), July 14, 2016 (UTC)
 * In short, no.
 * AjaxUndo relies on the message as defined on a per wiki basis. It cannot be configured via the script, nor can it be changed to suit personal preference.
 * AjaxPatrol doesn't do anything related to undo, so I'm not sure what you mean.
 * Also, as you evidently have a strong interest in personal customisations, have you considered learning to do them yourself? Many of them are simple enough that you wont need to learn much to get going.


 * I don’t mind if the script doesn’t change the edit summary when using AjaxUndo, but I just want it to change the edit summary when using regular undo. When I used your script, clicking on the “Mark as patrolled” button took me to a different page, instead of staying on the same page (meaning that it makes the AjaxPatrol script not work). It also makes the AjaxUndo button not appear. <font face="Papyrus"><font color="#0020C2">― <font color="#0000A0">PapíDimmi  <font color="#571B7E">( <font color="#4AA02C">talk | <font color="#4AA02C">contribs <font color="#571B7E">)  20:22, July 19, 2016 (UTC)


 * Can you swap  to   and let me know if that fixes the issue? You may have to wait 5-10 mins for the cache to update.


 * That seems to work. Thanks! By the way, why do I have to wait if I can just bypass the cache of my browser? <font face="Papyrus"><font color="#0020C2">― <font color="#0000A0">PapíDimmi  <font color="#571B7E">( <font color="#4AA02C">talk | <font color="#4AA02C">contribs <font color="#571B7E">)  11:28, July 20, 2016 (UTC)


 * Bypassing hasn't always been 100% effective in my experience, so I tend to recommend waiting or getting the uncached version which is never cached.

Wiki navigation fix
Thread:9750 <span class="button" style="background:#03c;color:white;border:none;border-radius:0;padding:0 0.4em;border-right:1px solid white">yhynerson1 talk  15:42, July 30, 2016 (UTC)

Some CSS for your portable infoboxes
/*** tabber customisation ***/ ul.pi-image-collection-tabs li.pi-tab-link { background: #fff; border-style: none; margin: 0; padding: 0; } ul.pi-image-collection-tabs li:first-of-type:after { content: "•"; font-weight: normal; width: 1em; padding-right: 3px; }

Test for tabber.

Some pages have before and after images for demonstration (and not the clickbait kind). This CSS helps bring that into the fold of the infobox. <span style="padding-bottom:2px;font-family:sans-serif; background-color:#000; font-size:14px; border-top-left-radius: 4px; border-bottom-left-radius: 4px; border:#3685FF 1px solid; border-right:#3685FF 1px solid; color:#3685FF; vertical-align:center;"> Speedit  <span style="background-color:#FFF;padding-bottom:3px;border:#3685FF 1px solid;border-bottom:#3685FF 1px solid;padding-top:2px;margin-top:1px;"> ♞  <span style="padding-bottom:2px;font-family:sans-serif; font-size:14px; background-color:#000; border-left:#FFF 0px solid; border:#3685FF 1px solid;color:#3685FF;border-top-right-radius: 4px; border-bottom-right-radius: 4px;">  talk   contribs  01:26, July 31, 2016 (UTC)


 * Which pages is it needed for?

Special:JSPages link on Monobook
Hey cqm, could you add a link to Special:JSPages to MediaWiki:Sidebar? It's really annoying trying to re-find it all the time. Thanks! 「 ディノ 奴 千？！ 」? · ☎ Dinoguy1000 16:38, August 3, 2016 (UTC)


 * Of course, but is there anything else you'd like on there? I notice it's a bit sparse compared to the oasis nav.


 * A link to quickly switch to the Oasis skin on the current page (and maybe one to do so for mobile, too) would be nice, but other than that I'm not sure what links might be needed. There's probably some pages that would be useful when linked from the sidebar, but I've never gone exploring long enough to have a list of such pages in mind. 「 ディノ 奴 千？！ 」? · ☎ Dinoguy1000 16:42, August 3, 2016 (UTC)


 * Both done, let me know if there's any more you think would be useful.

Codeeditor Request
I have been waiting for this wiki to accept my request, but I have been waiting for 9 days. Supreme Lord of Supremeness II 11:26, August 12, 2016 (UTC)
 * I've just spotted your request, sorry for it taking so long. Codeeditor isn't required anymore to edit code, all you actually get out of it is the ability to suppress redirects (which we can probably transfer to Content Moderator if it's really needed). Do you need it for that reason?

LangSwitch
Hey, Cqm! I'm trying to use the Template:LangSwitch here, but for some reason it does not work. Can you help me? I'll be very grateful! TheCreedX (talk) 21:33, August 17, 2016 (UTC)

Translations
Hey Cqm, I've been trying to get my little script to take translations and I've gotten a little stuck. I've taken a look around a few of other people's scripts and tried to get it to work, but can't get the hang of it. I'm also not getting any errors when running in the console, so I'm very confused. Can you tell me where/what I'm doing wrong? Thanks! — 22:48, August 22, 2016 (UTC)


 * This script itself seems to work in terms of adding the link and giving the correct text. What problems are you seeing?
 * It's a little off-topic, but I'd be inclined to not support setting . I've only ever seen it done for AjaxRC, and that was down to legacy reasons. If you do decide to keep it though, don't forget to escape it with   to prevent XSS issues. If you're not familiar with XSS, it's essentially where someone inserts a script tag, any tag with an onclick attribute or an a tag with a   href all of which can contain malicious javascript.


 * The problem I'm seeing is that it will not run inside the browser. When I run the code, I get "cannot read 'ready'", but if I remove the  part and run in the browser, it works fine. My theory is that: when using   the code will not run until the document is ready for example when first visiting a page. So it should work if used through actual import, right?
 * Also, thanks for the heads up, I removed that portion from the code. — 10:54, August 23, 2016 (UTC)

Disable or temporarily delete RailWAM
Unfortunately in its current state, this script ends up being a pseudo "spam bot" because it creates a page without user consent every time a user opens a new wiki. In fact, it created a page here (http://dev.wikia.com/wiki/Dev_Wiki:WAM_Log).

I suggest disabling or temporarily deleting it until those issues are sorted.

Dessamator (talk) 09:30, August 31, 2016 (UTC)

New code
Hi! I've added this code and I would like to know if I did everything correctly. Also I was a bit unsure if the code should be in a subpage or a mediawiki page since it's just CSS, what are you suggesting? 17:14, September 7, 2016 (UTC)

Article rename
Hello, please could you rename DiscussionLink to DiscussionsLink. Thanks in advance! — 12:00, September 18, 2016 (UTC)

0 edits in chat
I was wondering if there was a script that could either ban or warn users when entering a Wikis chat with 0 edits. We currently have a chat bot, and were wondering if there was a script we could install for it? Please let me know ASAP, so that we can finish our discussion on ESB (Encyclopedia SpongeBobia.) Thank you. TheOneFootTallBrickWall (talk) 04:01, September 28, 2016 (UTC)

Wiki navigation
Hey, Cqm.

The "Wikia Code" tab in MediaWiki:Wiki-navigation should probably be renamed to "Fandom Code". Subsequently, the "Wikia API" link should be renamed to "Fandom API". Thanks. —Monochromatic Bunny | ☎ 00:41, October 3, 2016 (UTC)


 * Both done. Thanks for the catch :)

Article rename
Hey there. Could you please rename ChatUserpageLink and its associated MW page to ChatAvatarUserPageLink? Thanks.  Count of Howard  (talk) 01:13, October 3, 2016 (UTC)
 * While you're at it, could you please delete [ these] [ two] MW files? Thanks.  Count of Howard  (talk) 11:02, October 6, 2016 (UTC)


 * I've move the mainspace page and done the two deletions. I can't move the mediawiki page due to permissions being locked down on the namespace still. You'll either have to ask staff to do it via Special:Contact/general or just copy the content over yourself if you're ok with losing the page history.

MiniComplete
Hey, so MiniComplete was marked as "superseded by features in Wikia software". This script stopped working for me some time back, and at least for me, I have seen no example of this being added to Wikia software. Am I missing something?
 * That would depend on what your issue is - what isnt working for you?
 * Autocomplete. When I type nothing ever happens on [[Special:Upload or Special:MultipleUpload. Autocomplete otherwise works for me fine in other places you'd expect it to.


 * I disabled the vast majority of that script over a year ago, having done so after making sure the features already existed. The bug you're seeing now is in the implementation by Wikia - the specific issue is related to z-index as can be seen in github:Wikia/app/pulls/11661. Until that fix gets merged in, I'd just add the fix to your global.css or on any wikis you're an admin of if it's proving to be a wider issue.

Discord Integration
Recently a couple of other users and I got together and we made a Discord (https://discordapp.com) server for people who are interested in making scripts and we were wondering if we could find somewhere on this wiki where we could configure an integration so that others who may be interested could find us.

What do you think?

जसले मह काढ्छ उसले हात चाट्छ 01:22, November 10, 2016 (UTC)


 * Over on w:c:rs we use a custom sidebar module. Would that work for you? Let me know when you've got it coded and I'll add it into MediaWiki:Wikia.js or a subpage of it.

Token
Which of these is more efficient during runtime to get an edit token? You can answer in regards to efficiency and/or conventions. or — Ozank 19:15, November 19, 2016 (UTC)
 * is slower because it has error checking. If you ask for, it checks to see if   exists. If it exists, it returns it, otherwise it returns  , rather than throwing a TypeError. --Saftzie (talk) 04:04, November 20, 2016 (UTC)

Hidden category
My bad about the personal category. I didn't think it'd pose a problem. Sorry about that. <font color="#ffffff">CoH <font color="#cc0b13">☎  17:20, December 20, 2016 (UTC)


 * It doesn't pose a problem per se, it's more that it replicates existing functionality and serves no real purpose in the long run. The other issue is that in the future, it could easily prove pointless as the original author of code moves on from Wikia and someone else takes over maintaining the code.

Flexbox for mainpage modules
Using this CSS will ensure that the mainpage modules do not wrap to a second line at the medium and small Oasis breakpoints. The modules will elegantly grow to the width of the column. :) I've consolidated old styling. I've also tested it (Chrome 55, Windows 8). <font color="#09c">-SPD <font color="#09c">☎  <font color="#09c">✎  18:46, January 8, 2017 (UTC)
 * My apologies for the notification. I have adjusted the CSS above slightly. (I have also closed tags/formatting across this talkpage.) <font color="#09c">-SPD <font color="#09c">☎  <font color="#09c">✎  12:45, January 10, 2017 (UTC)

Abuse filter query
Apparently I triggered the abuse filter trying to run some tests in MediaWiki:Wikia.js and was forbidden from editing its contents. What's up with that? I'm pretty sure I've seen others edit wiki-wide files in the past. <font color="#ffffff">CoH <font color="#cc0b13">☎  03:24, January 10, 2017 (UTC)


 * If you need to import a script for a demo, please use MediaWiki:DemoScripts.js. Common/Wikia/Monobook.js and .css files, and indeed every non .css and .js page in the MediaWiki namespace have been 'protected' by abuse filters to stop people messing with the wiki too much.
 * If you really need to use those files, I'd recommend w:c:communitytest or making your own test wiki.


 * I needed to see if a user could view the wiki-wide effects of a script in test mode without having to provide him temporary sysops on my test wiki to do so. Since I've seen others edit Dev's wiki-wide MW files, I figured it would work.


 * While we're on the subject, could I prevail upon you to take a look at this discussion? It reminds me of a recent CC thread to which you contributed, especially the bit concerning form HTML. The script in question is here. Thanks and sorry for pestering you like this. <font color="#ffffff">CoH <font color="#cc0b13">☎  14:24, January 10, 2017 (UTC)

Discord Integrator
Dear Cqm,

May I know how to add the Discord Integrator into my wiki which I am an admin of? I've read through the article about the DiscordIntegrator but I still do not know how to add that into my wiki. I wish that you can show me steps/ways on how to open that widget(?), I would really appreciate it if you could help.

-- 08:24, March 17, 2017 (UTC)


 * Hi, I'm not too familiar with the script, so you'll likely have more luck posting on the scripts talk page or asking in our discord.

re:JWB Translations
Thanks for letting me know. I've copied over the i18n info from the dev-wiki copy of the script, including  mentionings of the author. Thanks for letting me know about it ^_^

Perhaps you can keep the MediaWiki:JWB/load.js (in case people still have that url imported), but simply change all of its contents to

mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript');

so that it just acts as a "redirect" to my load script on Wikipedia. And maybe JWB can be a soft redirect to wikipedia:User:Joeytje50/JWB, but I'm not sure what the policy is here about doing that. Joeytje50 talk 11:41, March 22, 2017 (UTC)

NoImageLightbox
Hello, I came across a bug with NoImageLightbox that I found years ago but didn't get fixed, and I was wondering if you would be able to fix it since it seems like Mathmagician is absent. The bug is described here. Thanks, ~Bobogoobo (talk) 20:11, April 2, 2017 (UTC)

Wikimarks
Before I ask I wanted to personally thank you for putting this script together; it’s a marvel. However I have to ask, what will come of it if the new Headers Fandom is working on go live for all Wikis? It doesn’t work on Community Central or any other Wiki that has the new headers, & presumably it wasn’t designed to, so what will come of the script? Will it be patched?


 * It will indeed be updated - I'm already missing it on Community Central. I've been playing around with getting it working with the new headers already, although it's a long way short of being complete. The structure of the HTML is the same, by virtue of the navigation being pulled from the same MediaWiki page, so the only real difference is the class names and CSS, both of which need updating.
 * I haven't publicly released anything yet on the basis that the navigation could feasibly change depending on the results of this test, after which the navigation is due to be removed to receive some updates. When the navigation changes are re-released, I will ensure it gets updated within a few days.