Content deleted Content added
Manishearth (talk | contribs) |
Manishearth (talk | contribs) |
||
Line 34:
One bug (minor) If you have already scrolled down, the first letter typed into the box will cause the suggestion menu to pop up elsewhere, but this is fixed by typing another letter.
Here is an add-on, to be put directly under above script. It allows you to add little notifications with an addNotification() method. Its argiments are:
*link-- What to link to (whole url, please)
*image-- can be info,exclamation,stophand or a whole URL.
*title-- alt-text
Line 60:
if(document.getElementById('mw-youhavenewmessages')){
addNotification("http://en.wikipedia.org/wiki/User_talk:"+wgUserName,"exclamation","You have new messages");
}
</source>
|