User:Yahya/scripts/SNA

{{infobox user script

| name = SNA

| desc = An article or draft can be started easily from sidebar

| author = Yahya

| updated = {{start date and age|2021|01|09}}

| released = {{start date and age|2021|01|09}}

| status = Stable

| version =

| source = User:Yahya/scripts/SNA.js

| skins = Vector, timeless, minerva

| browsers = all javascript enabled browser

| styled = yes

}}

SNA (Start New Article {{color|gray|or draft}}) is a user script to start a new article or draft easily from navigation bar. This will add links to create new article and draft in the navigation bar of both desktop and {{color|gray|mobile (where there are links to the main page and random article)}}. Clicking on the link will bring up a prompt box. Enter the name of the article, page or draft you want to create and click the ok button. Then a new window with edit box will open.

=Installation=

To use this script, add the following to your /common.js or to your /global.js-

mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Yahya/scripts/SNA.js&action=raw&ctype=text/javascript');

//backlink: User:Yahya/scripts/SNA.js

=Shows pop-up blocked without opening new window?=

The problem is in your browser settings. The solution is to go to your browser's site settings. Allow or enable Pop-ups & redirect there. Note that the method may vary by browser.

SNA