Danbooru Image Uploader

danbooruup is a Firefox extension to facilitate uploading of images to danbooru from local files or sites that have some sort of referrer or cookie hooplah.

Release Notes

Latest version is: 0.3.2, released on October 18, 2007 23:34 PST. Download

Firefox 1.5 version is: 0.2.6, released on August 11, 2006 19:22 PDT. Download

danbooruup 0.2.7 and newer require at least Firefox 2.0.0.1. Use version 0.2.6 for Firefox 1.5.

This extension adds a context menu item when right-clicking on an image to upload an image to a danbooru. The default is http://danbooru.donmai.us/, more can be added in the extension options. Also added are an MD5 hash and an SHA-1 hash in the Element Properties window, and tag autocomplete for danbooru sites.

Version 0.3.2 adds several new features to the upload dialog. First, is the inclusion of related tags in the autocomplete popup. Press Insert (or Help on a Mac keyboard) while a autocomplete choice is selected to display the related tags. Second is the ability to right-click on one of the autocomplete results to navigate to open a new tab for that tag in the selected destination danbooru. Third is the artist search button, which will query the selected danbooru for an artist tag based on the source URL currently selected in the upload dialog.

The autocomplete popup is now styled based on tag types as of version 0.3.0. The colors can be changed in the extension options. Note that changing the font size will not change the cell height to fit the text.

Autocomplete for tags functions in much the same way the form and URL autocomplete input boxes work. Note that you must use the right arrow key to complete instead of the enter key, unless you intend to complete and sumbit at the same time. Use a * (asterisk) for wildcard searching. Note: normal searches automatically append a * to the end, but if you specify your own wildcard, this does not happen, allowing you to search for tags with a particular ending.

Autocomplete for danbooru sites uses the script.aculo.us Autocompleter, with modifications to make it work a bit more like the usual autocomplete popup. Currently, the root danbooru page search box, /post/list search box, and the /post/view and /post/add tag boxes will have an Autocompleter attached. Determination of which domains this works for is based on the sites added in the Danbooru Sites tab in the extention's options dialog. The Autocompleter will attempt to hook to any URL that is in one of the domains and matches /post/(list|view|add)(/|$) or has an element with id static-index. Note that the URLs entered into the options dialog still have to be /post/create.xml (or the older /api/add_post) paths in order to upload to the sites.

As the code for the native component is partly swiped from the Mozilla source, the extension is licensed under the MPL version 1.1. Source repository is readable at svn://donmai.us/danbooruup/, browsable at the danbooru trac. Please submit bug reports there as well (if it's up). The extension borrows code from GreaseMonkey for the script insertion, and of course Sam Stephenson's prototype.js, along with effects.js and controls.js from the script.aculo.us library.

The Storage API is now included in Firefox 2 and as such no longer needs to be distributed alongside the extension.

To Do list, various notes, known issues

Release History

0.3.2 (October 18, 2007)
0.3.1.2 (October 5, 2007)
0.3.1.2 (September 23, 2007)
0.3.1.1 (March 9, 2007)
0.3.1 (March 9, 2007)
0.3.0.1 (March 6, 2007)
0.3.0 (March 6, 2007)
0.2.8.1 (January 17, 2007)
0.2.8 (January 16, 2007)
0.2.7 (January 1, 2007)
0.2.6 (August 11, 2006)
0.2.5 (June 21, 2006)
0.2.4 (September 23, 2005)
0.2.3 (September 7, 2005)
0.2.2 (September 2, 2005)
0.2.1 (August 23, 2005)
0.2.0 (August 2, 2005)
0.1.3
0.1.2
0.1.1
0.1