Updated the bookmarklet to give you an option to use either the your own or the current tags.
This commit is contained in:
parent
0e4f93a42f
commit
2b717063eb
1 changed files with 5 additions and 4 deletions
|
@ -71,12 +71,13 @@ class UploadTheme extends Themelet {
|
|||
if($tl_enabled) {
|
||||
$link = make_http(make_link("upload"));
|
||||
$title = "Danbooru to " . $config->get_string('title');
|
||||
$html .= '<p><a href="javascript:if(document.getElementById("post_old_tags").value.search(/\bflash\b/)==-1) { location.href="' .
|
||||
$link . '?url="+document.getElementById("highres").href+"&tags="+document.getElementById("post_old_tags").value } else { location.href="' .
|
||||
$link . '?url="+document.getElementsByName("movie")[0].value+"&tags="+document.getElementById("post_old_tags").value } ">' .
|
||||
$html .= '<p><a href="javascript:var img=document.getElementById("highres").href;var ste="' .
|
||||
$link . '?url=";var tag=document.getElementById("post_old_tags").value;if (confirm("OK = Use Current tags.\nCancel = Use new tags.")==true)' .
|
||||
'{if(tag.search(/\bflash\b/)==-1){location.href=ste+img+"&tags="+tag;}else{location.href=ste+document.getElementsByName("movie")[0].value' .
|
||||
'+"&tags="+tag;}}else{var p=prompt("Enter Tags","");if(tag.search(/\bflash\b/)==-1){location.href=ste+img+"&tags="+p;}' .
|
||||
'else{location.href=ste+document.getElementsByName("movie")[0].value+"&tags="+p;}}">' .
|
||||
$title . '</a> (As above, Click on a Danbooru-run image page. (This also grabs the tags!))';
|
||||
}
|
||||
|
||||
$page->set_title("Upload");
|
||||
$page->set_heading("Upload");
|
||||
$page->add_block(new NavBlock());
|
||||
|
|
Reference in a new issue