[Commons-l] HotCat JavaScript tool, V0.1

Charli Li chengli1 at verizon.net
Sat Jul 7 15:47:42 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Magnus Manske's mail client expels the following stream of bytes on
7/7/2007 11:37 AM:
> New experimental tool to quickly add new categories. Called "HotCat",
> in reminiscence of "hot dog". Sorry.
>
> 1. Go to [1], or add "includePage('MediaWiki:HotCat.js');" to your
> monobook.js (do the latter to see the full functionality)
> 2. In the list of categories at the bottom of the page, notice the
final "(+)"
> 3. Click on it to add a new category
> 4. An input box opens. It will suggest a category name "as you type".
> 5. Click "OK" to add the category.
>
> NOTES:
> * If you got there via [1], you will only get an open edit window.
> This is due to the "script test mode". If you add the script to your
> monobook.js, you will get the full functionality, that is, it will add
> the category at the bottom of the page and save it.
> * The script actually retrieves several matches to what you type, but
> I was too lazy to add a listbox with options. Maybe someone else will
> implement that :-)
> * This can be adapted to replace/remove categories. Requires some text
> parsing, though. Maybe I will do it later, if noone beats me to it :-)
>
> [1]
http://commons.wikimedia.org/w/index.php?title=Image:Valeriana_officinalis_2007-06-02_%28flower_with_bee%29.jpg&withJS=MediaWiki:HotCat.js
Very cool tool!  However, you might want to expand the text box a bit,
since it goes back to the beginning of the category name when it
suggests something new.  Something that fits the length of "Diagrams
of road signs of the United States" may be feasible.

- --
Charli (vishwin60/zelzany)
(whisper) Go to sleep, you are not hungry! ~anonymous flight attendant
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGj7We/5CaUKx925YRAnEpAKDl5LHG+f7rHMJWGbLnCaH2x9EcjACfZCVq
n5WjNOs2EbY+7oIBVaDudi0=
=czpv
-----END PGP SIGNATURE-----




More information about the Commons-l mailing list