UsernameAvailability allows a user to quickly check the availability of an inputted username. The script inserts a "Find a username" item in the user's "My Tools" menu on the toolbar, which, when clicked, opens a modal with an input textbox.
For security's sake, input is limited to 30 characters and special characters are forbidden.
Effects of this script can be seen in the toolbar of this page.
Note: In this example, pay close attention to the placement of commas and other punctuation. For people who aren't familiar with programming (and even those who are!), a common mistake when writing code is to accidentally delete, forget, or misplace critical symbols like commas or quotation marks. This can cause a syntax error that breaks the code. Carefully follow the convention shown here when using importArticles.