User talk:The Transhumanist/ViewAsOutline-AllPagesWithPrefix.js


 * This script is functional

This script adds  to links on the "All pages with prefix" page for easy copying and pasting into lists and outlines. It also hides the bullets that are normally there. Once installed, it operates automatically – it does not have an on/off switch.

= Script's workshop =
 * This is the work area for developing the script and its documentation. The talk page portion of this page starts at, below.

Description / instruction manual

 * This script is functional

This script adds  to links on the "All pages with prefix" page for easy copying and pasting into lists and outlines. It also hides the bullets that are normally there. Once installed, it operates automatically – it does not have an on/off switch.

To make use of it, click on the edit tab on a Wikipedia page (such as a list or outline). Then, open Wikipedia in another window, and click on "Special pages" (or press ), and then click "All pages with prefix".

Enter the topic name desired, and press.

The output will include wikiformatting for easy cutting and pasting into lists and outlines.

Copy and paste one or more links into your other window, as desired.

General approach
First, the script turns off list item bullets, then it uses regex to wrap list items in link wikicodes preceded by an asterisk (*). For the latter, it applies regex using the outerHTML and replace methods.

More specifically, starting from the beginning...

Change log

 * 2018-01-04
 * Start script from template, using
 * Change activation filter, so script only works on "All pages with prefix" page
 * Disappear bullets from page
 * Add  to links on page for easy copying and pasting into lists and outlines

Desired/completed features

 * Completed features are marked with ✅


 * Make this work with "All pages" too
 * On "All pages", hide the redirects (class="allpagesredirect")

Development notes
None needed (so far).

Rough rough talk-through
The script was simple enough to write, that I skipped this step.

Script dependencies
None.

= Discussions =