From ac9e1c73cf5b4dc858c2d4660f04ab350127dc6b Mon Sep 17 00:00:00 2001 From: Daku Date: Sun, 11 Dec 2011 06:13:00 +0000 Subject: [PATCH] Adding a simple Danbooru>Shimmie bookmarklet. --- ext/upload/theme.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ext/upload/theme.php b/ext/upload/theme.php index f26905c0..adecaaa1 100644 --- a/ext/upload/theme.php +++ b/ext/upload/theme.php @@ -68,6 +68,14 @@ class UploadTheme extends Themelet { $link . '?url="+location.href+"&tags="+prompt("enter tags")">' . $title . ' (Drag & drop onto your bookmarks toolbar, then click when looking at an image)'; } + if($tl_enabled) { + $link = make_http(make_link("upload")); + $title = "Danbooru to " . $config->get_string('title'); + $html .= '

' . + $title . ' (As above, Click on a Danbooru-run image page. (This also grabs the tags!))'; + } $page->set_title("Upload"); $page->set_heading("Upload");