Latest comment: 7 years ago by Ricordisamoa in topic Not deleted, actually


[moved from subject page]   Question: though I have also common.js pages with more content (see for example c:User:Trijnstel/common.js) - will there be a log created about which pages are deleted and which were skipped? (that way I can check if no mistakes were made...)

@Trijnstel: yes, I will make a log available after the script runs. It won't be immediate though since I'll have to manually upload them somewhere. Legoktm (talk) 14:07, 20 August 2014 (UTC)Reply[reply]


GlobalCssJs have a problem with Wikidata. --Kolega2357 (talk) 21:55, 27 August 2014 (UTC)Reply[reply]

What issue are you having? Legoktm (talk) 01:02, 28 August 2014 (UTC)Reply[reply]

I cant add new interwiki to Wikidata. --Kolega2357 (talk) 07:29, 28 August 2014 (UTC)Reply[reply]

It is not because of GlobalCssJs extension but due to some scripts in your global.js which are not compatible with Wikidata. Namely, morebits.js and twinkle.js. You can exclude these two scripts for Wikidata by using the following code.
if ( mw.config.get('wgDBname') !== "wikidatawiki" ) {

--Glaisher (talk) 08:42, 28 August 2014 (UTC)Reply[reply]

Thank you Glaisher. --Kolega2357 (talk) 12:47, 28 August 2014 (UTC)Reply[reply]

User:Juetho/global.js doesn't workEdit

The following discussion is marked as answered (the solution works not at all, but mainly). If you have a new comment, add it below.

My home wiki is de-WB. User:Juetho/global.css seems to work globally (I tested de-WP, en-WP, en-WB, meta, commons) but User:Juetho/global.js doesn't. This page seems to work only locally at de-WB but nowhere else. (en-WB seems to use an own rule.) As far as I remember there is no local common.js. Very few local common.css sites are deleted. Is there any bug in my site? My preferences show that "global user defined JavaScript" is activated anywhere. What can I do? -- Thanks! Juetho (talk) 10:15, 23 November 2014 (UTC)Reply[reply]

Uh, #specialchars is a local custom id at deWB so you can't select #specialchars which is not at other wikis. --Glaisher (talk) 15:01, 23 November 2014 (UTC)Reply[reply]
@Juetho: Using "mw-editTools" class which is supported by MW core is a possible solution:$("#editform").before($(".mw-editTools")); But this won't work if some of the edit tools/special characters are outside the div class. (Here at Meta, some of the clickable characters are outside the div so they are below the edit form while others are at the top). --Glaisher (talk) 15:22, 23 November 2014 (UTC)Reply[reply]
@Glaisher: Oops, I thought MW is installed on all wikis in mostly the same way (not at all, but mostly). First I found out that I must replace the dot by sharp in $("#editform").before($("#mw-editTools"));. As you wrote: this works in some wiki, in others not, especially not in my home wiki. Apparently I need a switch (without JS knowledge): if #specialchars is known, move this; otherwise move #mw-editTools, and on some wiki move another tool. You showed a way for my problem.
By the way, can you tell me where in MW help is a list of all these forms or tools? Some kind of tools I find in the MediaWiki namespace and by uselang=qqx. How can I ask the local installation for details in addition to b:de:Special:Version? As sysop I am able to change something but only if I know where to change and what. -- Thank you for your help! Juetho (talk) 16:49, 23 November 2014 (UTC)Reply[reply]
As "first aid" I move both tools. This seems to work except meta and en-WP. I'll look ... -- Juetho (talk) 17:16, 23 November 2014 (UTC)Reply[reply]
No, mw-editTools is a class (not an id) so you should use . not #. I don't know whether there is a list of mw-* selectors. Usually, I just view the source of the page with the browser and find the relevant ids. --Glaisher (talk) 08:34, 24 November 2014 (UTC)Reply[reply]

Alright, I rechanged and tried something more. My last trial works not at all, but nearly:

  • de-WB, and de-WP: OK, the standard special chars are shown before the editform.
  • Meta, Commons, and en-WB: Nearly OK, these wikis use their own special chars before the editform.
  • en-WP uses nearly standard special chars within div id="editpage-specialchars" at the bottom of the editform. I'm not able to move this part to the top of the editform and give up.

The main wikis (for me) work except en-WP. That's it. I thank you very much for your hints. -- Juetho (talk) 14:16, 29 November 2014 (UTC)Reply[reply]

Not deleted, actuallyEdit

@Legoktm: According to the script log, da:Bruger:Ricordisamoa/common.js was deleted, but it looks like it has always existed since its creation. What may the cause be? --Ricordisamoa 03:00, 30 December 2014 (UTC)Reply[reply]

Probably something like AbuseFilter that blocked the action, which initial versions of the script didn't check for. Legoktm (talk) 18:24, 17 February 2015 (UTC)Reply[reply]
  Deleted by Pathoschild. --Ricordisamoa 22:14, 25 July 2015 (UTC)Reply[reply]

Request for script reactivationEdit

Hi @Legoktm: can you reactivate this script? Best regards. -- M\A 14:49, 30 December 2014 (UTC)Reply[reply]

@MarcoAurelio: Synchbot can delete pages. — Revi 15:00, 30 December 2014 (UTC)Reply[reply]
-revi, yeah; but it looks that Pathoschild is on hollydays too. My request both on this page and there are a month old. :-( -- M\A 15:02, 30 December 2014 (UTC)Reply[reply]
Sorry for the away time; the Synchbot request is done. :) —Pathoschild 15:13, 11 January 2015 (UTC)
Return to "GlobalCssJs" page.