From 67d5ca6aac46b7c5fb2bb1bf55f3f365410a83e1 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Mon, 9 Feb 2015 17:52:29 -0800 Subject: [PATCH] add batch bookmarklet --- app/views/static/bookmarklet.html.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/views/static/bookmarklet.html.erb b/app/views/static/bookmarklet.html.erb index 312a8d7af..5e8f1b726 100644 --- a/app/views/static/bookmarklet.html.erb +++ b/app/views/static/bookmarklet.html.erb @@ -5,6 +5,10 @@

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

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.

+ +

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

+ +

Use this bookmarklet for Twitter galleries.