add batch bookmarklet

This commit is contained in:
r888888888
2015-02-09 17:52:29 -08:00
parent fc30b9d606
commit 67d5ca6aac

View File

@@ -5,6 +5,10 @@
<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><%= 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 galleries.</p>
</div>
</div>