View text source at Wikipedia


User:Anomie/unsignedhelper

unsignedhelper
Author(s)Anomie
First releasedDecember 12, 2011; 13 years ago (2011-12-12)
UpdatedApril 16, 2024
    (9 months ago)
SourceUser:Anomie/unsignedhelper.js

This script adds an entry to the Insert and Wikitext sections of the Edit tools box (at the bottom of the edit page) for adding {{subst:unsigned}} or {{subst:unsignedIP}}.

Usage

[edit]

To use the script, add the following to your skin-specific Javascript file.

importScript('User:Anomie/unsignedhelper.js'); // Linkback: [[User:Anomie/unsignedhelper.js]]

Note that this script has only been extensively tested on Monobook with Firefox.

Then, when editing a page, highlight the unsigned comment (or the last part of it) or position the cursor just after it and use the {{unsigned}} in the Edit tools box. This will use the API to find the user who added that comment and add the appropriate {{subst:unsigned}} or {{subst:unsignedIP}} at the cursor position.

Caveats

[edit]