Page MenuHomePhabricator

My user defined javascript does not more work
Closed, InvalidPublic

Description

Author: arno.raymond.lagrange

Description:
Since Mediawiki has been upgraded to 1.19, my user defined javascript does not more work. I had added some edit buttons that I found very useful. Since Mediawiki has been upgraded to 1.19 they may appear or not and now mostly not. My java console doesn't retrieve any error.

http://eo.wikipedia.org/wiki/Uzanto:ArnoLagrange/vector.js

'#wpTextbox1' ).wikiEditor( 'addToToolbar' ....

Now as before I work in this environment :
Project : eo.wikipedia
Version : 1.19wmf1 (r113176)
OS : Windows XP
Browser: Firefox 10.0.2


Version: 1.19
Severity: major
OS: Windows XP
Platform: PC

Details

Reference
bz35154

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:14 AM
bzimport set Reference to bz35154.
bzimport added a subscriber: Unknown Object (MLST).

Please note bugzilla isn't really for end user technical support like this...

Anyway, do *not* use document.write() to include scripts. Try loading them through mw.loader.load().

Resolving INVALID since this is a support request. Try asking here: https://eo.wikipedia.org/wiki/Village_pump

arno.raymond.lagrange wrote:

(In reply to comment #1)

Please note bugzilla isn't really for end user technical support like this...

Because the bug appeared just after MediaWiki was upgraded, I suppose I'm not the only one user which experiences such things. It's not only an end user problem, but a java script/ mediawiki conflict.

(In reply to comment #2)

Anyway, do *not* use document.write() to include scripts. Try loading them
through mw.loader.load().

I replaced all document.write() by mw.loader.load() and didn't notice any change.

(In reply to comment #3)

Resolving INVALID since this is a support request. Try asking here:
https://eo.wikipedia.org/wiki/Village_pump

As I know, nobody in the Esperanto Wikipedian community is able to resolve such problems.

EN.WP.ST47 wrote:

You can always try the English Wikipedia village pump, you'll definitely get more attention there than here and there are plenty of people there who work with JS.

arno.raymond.lagrange wrote:

I guess : some class has been renamed, but I don't know which.
My script was based on

$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', ...

It worked since february 2011 and did no more since WM upgrading. I didn't make any change to my script. So the problem must be caused by MW. Please, somebody explain what is wrong.

arno.raymond.lagrange wrote:

(In reply to comment #5)

You can always try the English Wikipedia village pump, you'll definitely get
more attention there than here and there are plenty of people there who work
with JS.

OK Thanks. I will try and I hope somebody can help.

arno.raymond.lagrange wrote:

Now the problem is fixed by replacing document.write() by mw.loader.load() with the right syntax. Thanks to all !