[Mediawiki-l] Script default

Steve VanSlyck s.vanslyck at spamcop.net
Sat May 29 23:06:22 UTC 2010


Is this done on my own js page (vector.js in this case) or in the code 
itself? (If in the code I'll have to copy it to my own userspace.)

----- Original Message -----
From: Platonides <Platonides at gmail.com>
To: mediawiki-l at lists.wikimedia.org
Date: Sun, 30 May 2010 00:35:16 +0200
Subject: Re: [Mediawiki-l] Script default

> >> Steve VanSlyck wrote:
> >>> User:PleaseStand/highlight-comments.js is a script on Wikipedia. One 
> > has to 
> >>> click a link on the page to activate it. Is there some way to make it 
> >>> activate on page load?
> >>
> >> Replace the call to addPortletLink with HighlightCommentsJsHighlight()
> 
> Steve VanSlyck wrote:
> > Where would I find that call?
> 
> 
> Replace
> >         // Create and add the menu item or tab
> >         HighlightCommentsJsSwitch = addPortletLink("p-cactions",
> >             "javascript:HighlightCommentsJsHighlight()", "Highlight",
> >             "ca-highlightcomments",
> >             "Toggle highlighting of your own comments on this page");
> 
> with
> >	HighlightCommentsJsHighlight();
> 
> 
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> 



More information about the MediaWiki-l mailing list