post #9000000 GET!
Donmai

Danbooru 2 Issues Topic

Posted under General

This topic has been locked.

Serlo said:

Awesome, though it still needs a "open search in a new tab/window" button.

Okay. Stick this somewhere:

Middle click
setTimeout( function(){
	document.getElementById("search-box").getElementsByTagName("form")[0].addEventListener("mousedown", function(e)
	{
		if(e.button == 1)
		{
			var value = encodeURIComponent( document.getElementById("tags").value.replace( /(^ +| +$)/g, '') );
			if( value.length )
				GM_openInTab(location.protocol+"//"+location.host+"/posts?tags="+value);
			else
				GM_openInTab(location.protocol+"//"+location.host+"/posts");
		}
	}, true);
},0 );

I still get the "scroll" thing that happens when you middle click on a page, but oh well.

EDIT: I prefer the "hold CTRL while left clicking" approach:

Left click
setTimeout( function(){
	document.getElementById("search-box").getElementsByTagName("form")[0].addEventListener("click", function(e)
	{
		if( e.button == 0 && e.ctrlKey )
		{
			e.preventDefault();
			var value = encodeURIComponent( document.getElementById("tags").value.replace( /(^ +| +$)/g, '') );
			if( value.length )
				GM_openInTab(location.protocol+"//"+location.host+"/posts?tags="+value);
			else
				GM_openInTab(location.protocol+"//"+location.host+"/posts");
		}
	}, true);
},0 );

Updated

Despite having view images set as original, over the last few days, I've had one or two rare instances where the sample/resized sizes were displayed instead of the full image.

Jigsy said:

Despite having view images set as original, over the last few days, I've had one or two rare instances where the sample/resized sizes were displayed instead of the full image.

Which posts?

BTW is there no way to view the sample of an image (Default image width: original)?
Some 10MB images just refuse to load, so I have to change to a server where I'm not logged in to view them. (or change the image url)
There should be an option under "Resize to window" or somewhere else to do that.

Jigsy said:

Despite having view images set as original, over the last few days, I've had one or two rare instances where the sample/resized sizes were displayed instead of the full image.

It's happening to me now, too. Only it's not "one or two rare instances" so much as "almost every image". I think it may have something to do with size, but after hitting random a few times, post #671111 gives a sample and post #1316880 doesn't, so I'm not sure what the exact criteria are.

DschingisKhan said:

It's happening to me now, too. Only it's not "one or two rare instances" so much as "almost every image". I think it may have something to do with size, but after hitting random a few times, post #671111 gives a sample and post #1316880 doesn't, so I'm not sure what the exact criteria are.

That's just because post #671111 has a sample while post #1316880 doesn't have a sample at all, since it's less than 850px wide.

For posts that do have samples, this bug is now occurring 100% of the time from what I can see.

Toks said:

For posts that do have samples, this bug is now occurring 100% of the time from what I can see.

Posts that are pending approval don't have this problem. Dunno if that's bc you fixed it.

game2009 said:

I suddenly can't remove pictures from pools...

The -pool: metatag not working is a bug I fixed for the next update. Until then you'll need to do it manually: Go to the pool's edit page and Ctrl+F for the ID of the post, then remove the ID from the list and save the pool.

1 38 39 40 41 42 43 44 45 46 315