From 836ec0226501a04836b5606dbc57f43f1c4b6d93 Mon Sep 17 00:00:00 2001 From: evazion Date: Fri, 30 Aug 2019 22:04:07 -0500 Subject: [PATCH] Fix #4147: Remove non-relevant bookmarklet info. --- app/views/static/bookmarklet.html.erb | 32 ++++++--------------------- 1 file changed, 7 insertions(+), 25 deletions(-) diff --git a/app/views/static/bookmarklet.html.erb b/app/views/static/bookmarklet.html.erb index 77387dd1b..676be1ad1 100644 --- a/app/views/static/bookmarklet.html.erb +++ b/app/views/static/bookmarklet.html.erb @@ -2,32 +2,14 @@

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.

- -

Note: If you use Firefox, the bookmarklet may not work - on certain sites, including Twitter. You must install the - Bookmarklets Context Menu (version 1.1.3) - addon in order to use the bookmarklet. Install version 1.1.3; version 1.1.4.1 does not work. +

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

+ +
+ <%= format_text(WikiPage.find_by_title("help:bookmarklet_notice")&.body) %> +