SmugMug Bulk Gallery Reorganizer
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
SmugMug Bulk Gallery Reorganizer is a photo management tool that streamlines the process of moving multiple SmugMug photos between galleries or folders. Instead of manually opening each photo, clicking the move button, selecting a destination gallery, and confirming—a process that can be tedious when reorganizing a large collection—this script automates the entire workflow. It scans the current SmugMug gallery or folder page, identifies visible photos with their titles and order/position, and presents them as a scrollable checklist. You can select individual photos, use Select All/Deselect All toggles, choose a target gallery or folder from a dynamically populated dropdown, and move all selected photos to that destination in configurable batches. The tool handles the complete interaction sequence: clicking the Move button, selecting the target gallery from the dropdown, and confirming the move. Real-time progress updates show how many photos have been moved, and the list automatically refreshes after completion. This is ideal for photographers, archivists, and anyone who wants to reorganize their SmugMug galleries efficiently.
WHERE IT RUNS
This script operates exclusively on SmugMug (*.smugmug.com/*) as a userscript injected through the BotGentz extension. It runs within the context of your current browser tab and cannot access other tabs, bookmarks, history, or downloads. The script reads the page DOM to identify photo items using SmugMug's selectors (.photo-item, .gallery-image, .image-item), extracts photo titles and positions, and interacts with SmugMug's native UI controls—Move buttons, gallery dropdowns, and confirm buttons—to perform gallery moves. All operations occur locally in your browser; no data is sent to external servers.
HOW TO USE
1. Navigate to any SmugMug gallery or folder page containing photos you want to reorganize.
2. Click the BotGentz extension icon and select "SmugMug Bulk Gallery Reorganizer" from the script list.
3. The panel opens on the right side of the page. It automatically scans the current page for photos.
4. Review the displayed photos, showing titles and order positions.
5. Click "Refresh Galleries" to load your available galleries and folders into the dropdown.
6. Select your target gallery or folder from the dropdown.
7. Adjust the "Batch size" number (default 3) to control how many photos are moved per batch.
8. Toggle "Confirm before each batch" if you want a confirmation popup before each batch executes.
9. Check the boxes next to photos you wish to move.
10. Click "Move to Gallery" to begin. The script processes photos in batches, shows progress, and handles errors.
11. After completion, the photo list automatically refreshes showing your updated gallery organization.
WHY IT WORKS WHERE OTHERS FAIL
Many SmugMug automation tools fail because they attempt to call SmugMug's internal API endpoints or rely on brittle DOM selectors that change with every SmugMug UI update. This script takes a resilient approach: it locates the actual interactive DOM elements SmugMug renders—the Move button, the gallery dropdown selector, and the confirm/save button—and triggers native click events and value changes on them, exactly as a human would. When the Move button is clicked, the script waits for the move dialog to appear, then locates the gallery dropdown using flexible selectors. It sets the target gallery using both the native value setter and dispatches "input" and "change" events, ensuring SmugMug's JavaScript UI registers the update. It then finds and clicks the confirm button. Between operations, the script introduces controlled delays (300ms between actions and 500ms between batches) to mimic human interaction speed and avoid triggering SmugMug's rate limiting. By interacting at the UI layer rather than the framework layer, it remains functional across SmugMug's frequent code updates.
THE PANEL
The script uses BotGentz's BGPanel system, which provides a floating, draggable panel on the right side of your screen. Drag the panel by its header to reposition it anywhere on the page—the panel remembers its position per site and snaps to the nearest edge when released. Click the minimize button to collapse the panel to a small floating bubble; click the bubble to expand it back. Resize the panel vertically by dragging its bottom edge. Press the Escape key to close the panel entirely. All panel state (position, collapsed/expanded) is persisted locally using GM_setValue, so your preferences survive page reloads.
PLEASE NOTE
This userscript requires the free BotGentz browser extension—it is not a standalone application. SmugMug periodically updates its website layout and UI components; if the script stops working, an updated version may be released. The script moves photos to the selected gallery; ensure you have selected the correct destination before applying. This script does not store, transmit, or process any of your SmugMug data outside your local browser. It does not access your password, hidden inputs, or file inputs. All gallery moves are performed through SmugMug's own authenticated session using the official user interface. Use responsibly and verify the destination gallery before moving multiple photos.