User:Jeeputer/specialRandomPage

Special Random Page (also known as SPRP) is a user script which is a special version of Special:RandomPage.

It finds you a random page in a namespace you choose and opens the edit form of the page (like what Special:EditPage/Special:RandomPage does), show links to the page or open a random redirect (like Special:RandomRedirect).

Installation
Copy the following to your common.js page and click Save.

You may need to clear your browser's cache after saving.

Usage
After installation, open the "More" menu and click "Random Page", select a namespace, choose one (or more) of the three available options and click "Go".

The "All" option in namespaces dropdown menu leads you to a random page in one of the other namespaces listed in that menu, not all the existing namespaces on English Wikipedia.

options

 * (Redirect): Opens a random redirect page.
 * (Edit): Opens the edit form of the page (or the redirect)
 * (What links here): Opens list of links to the random page.

Customizing options
You can choose the default namespace and the default state of other 3 options. To do so, you have to add each of the following lines you want, to your common.js file before the above code you added for installation:


 * – sets the default namespace. Replace   with ,  ,  ,  ,  , or  . note that   is currently the default, so there's no need to manually set it as default.
 * – sets the redirect option activated by default.
 * – leads you to the edit form of the random page by default.
 * – always go the WhatLinksHere page of the random page.