Bookmarklet

<%= link_to "Post to #{Danbooru.config.app_name}", "javascript:location.href='#{request.protocol + request.host_with_port}/uploads/new?url='+encodeURIComponent(location.href)+'&ref='+encodeURIComponent(document.referrer)" %>

Bookmark this link by dragging it to your browser's bookmarks toolbar. Next time you are directly viewing an image (that is, the JPG/PNG/GIF file is in the URL bar) use this bookmarklet to be taken to the upload page.

The upload page will contain an image preview, along with the artist, translated tags, and commentary, and it will also run a dupe check automatically.

The bookmarklet also works on the HTML page for most sites, including Pixiv, Nico Seiga, Twitter, DeviantArt, and others. Use the bookmarklet on the HTML page to have it automatically find and upload the best available image for you.

<%= link_to "Batch to #{Danbooru.config.app_name}", "javascript:location.href='#{request.protocol + request.host_with_port}/uploads/batch?url='+encodeURIComponent(location.href)" %>

Use this bookmarklet on the HTML page of Twitter, Pixiv, or ArtStation galleries. It will open a page containing every image in the gallery, ready for upload.

Bookmarklets are normally disabled on certain sites like Twitter using the Firefox web browser. In order to use any of the above bookmarklets from those sites, install and use the Firefox addon Bookmarklets Context Menu.

<% content_for(:page_title) do %> Bookmarklet - <%= Danbooru.config.app_name %> <% end %>