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
					
				| @ -71,12 +71,13 @@ class UploadTheme extends Themelet { | |||||||
| 		if($tl_enabled) { | 		if($tl_enabled) { | ||||||
| 			$link = make_http(make_link("upload")); | 			$link = make_http(make_link("upload")); | ||||||
| 			$title = "Danbooru to " . $config->get_string('title'); | 			$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="' . | 			$html .= '<p><a href="javascript:var img=document.getElementById("highres").href;var ste="' . | ||||||
| 				$link . '?url="+document.getElementById("highres").href+"&tags="+document.getElementById("post_old_tags").value } else { location.href="' . | 				$link . '?url=";var tag=document.getElementById("post_old_tags").value;if (confirm("OK = Use Current tags.\nCancel = Use new tags.")==true)' . | ||||||
| 				$link . '?url="+document.getElementsByName("movie")[0].value+"&tags="+document.getElementById("post_old_tags").value } ">' . | 				'{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!))'; | 				$title . '</a> (As above, Click on a Danbooru-run image page. (This also grabs the tags!))'; | ||||||
| 		} | 		} | ||||||
| 
 |  | ||||||
| 		$page->set_title("Upload"); | 		$page->set_title("Upload"); | ||||||
| 		$page->set_heading("Upload"); | 		$page->set_heading("Upload"); | ||||||
| 		$page->add_block(new NavBlock()); | 		$page->add_block(new NavBlock()); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user