User:Manishearth/Scripts/Snippets: Difference between revisions

Content deleted Content added
Line 35:
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-- The url of the image to display. If this param is 'info', 'exclamation', or 'stophand', it will show the standard wikipedia notification images (The ones from the vandalism templates.)
*image-- can be info,exclamation,stophand or a whole URL.
*title-- The alt-text to show
The script adds a notification when you have new messages.
<source lang=javascript>