Files
danbooru/app/views/static/bookmarklet.html.erb
r888888888 68d3f77589 fixes #2406
2015-06-15 15:10:14 -07:00

20 lines
1.3 KiB
Plaintext

<div id="c-static">
<div id="a-boomkarklet">
<h1>Bookmarklet</h1>
<p><%= link_to "Post to Danbooru", "javascript:location.href='http://#{Danbooru.config.hostname}/uploads/new?url='+encodeURIComponent(location.href)+'&ref='+encodeURIComponent(document.referrer)" %></p>
<p>Bookmark this link. Next time you are directly viewing an image (that is, the JPG/PNG/GIF file is in the URL bar) you can open this bookmarklet and you will be taken to the upload page. Depending on the site you are uploading from you may also see some options for fetching metadata.</p>
<p>The bookmarklet can also intelligently fetch artist/tag data from specific sites like Pixiv, Nico Seiga, Twitter, DeviantArt, and others. If you wish to preserve an HTML link for the source, you can use the bookmarklet on the HTML page containing the image. The bookmarklet will find the image URL and automatically download the largest version.</p>
<p><%= link_to "Batch to Danbooru", "javascript:location.href='http://#{Danbooru.config.hostname}/uploads/batch?url='+encodeURIComponent(location.href)" %></p>
<p>Use this bookmarklet for Twitter and Pixiv galleries. Use it on the HTML page.</p>
</div>
</div>
<% content_for(:page_title) do %>
Bookmarklet - <%= Danbooru.config.app_name %>
<% end %>