Adding a simple Danbooru>Shimmie bookmarklet.

This commit is contained in:
Daku 2011-12-11 06:13:00 +00:00
parent c6682b9069
commit ac9e1c73cf
1 changed files with 8 additions and 0 deletions

View File

@ -68,6 +68,14 @@ class UploadTheme extends Themelet {
$link . '?url="+location.href+"&tags="+prompt("enter tags")">' .
$title . '</a> (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 .= '<p><a href="javascript:if(document.getElementById(&quot;post_old_tags&quot;).value.search(/\bflash\b/)==-1) { location.href=&quot;' .
$link . '?url=&quot;+document.getElementById(&quot;highres&quot;).href+&quot;&amp;tags=&quot;+document.getElementById(&quot;post_old_tags&quot;).value } else { location.href=&quot;' .
$link . '?url=&quot;+document.getElementsByName(&quot;movie&quot;)[0].value+&quot;&tags=&quot;+document.getElementById(&quot;post_old_tags&quot;).value } ">' .
$title . '</a> (As above, Click on a Danbooru-run image page. (This also grabs the tags!))';
}
$page->set_title("Upload");
$page->set_heading("Upload");