gelbooru-popup-preview

Enables pop-up image previews for Gelbooru searches.

// ==UserScript==
// @name        gelbooru-popup-preview
// @namespace   Gizeta.Debris.GelbooruPopupPreview
// @description Enables pop-up image previews for Gelbooru searches.
// @include     *://gelbooru.com/*
// @include     *://www.gelbooru.com/*
// @version     1.0
// @grant       GM_addStyle
// @grant       GM_getResourceText
// @require     http://cdn.jsdelivr.net/jquery/2.1.4/jquery.min.js
// @require     http://cdn.jsdelivr.net/fancybox/2.1.5/jquery.fancybox.pack.js
// @require     http://cdn.jsdelivr.net/mousewheel/3.1.9/jquery.mousewheel.min.js
// @resource    FancyBoxCss http://cdn.jsdelivr.net/fancybox/2.1.5/jquery.fancybox.min.css
// ==/UserScript==

/**
 * A modified version of https://github.com/Oddegamra/danbooru-userscript
 */

$ = jQuery.noConflict();

// Add fancybox CSS and do some tricking to load correct image resources
var fancyCss = GM_getResourceText("FancyBoxCss");
fancyCss = fancyCss.replace("blank.gif",
	"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==");
fancyCss = fancyCss.replace("fancybox_loading.gif",
	"data:image/gif;base64,R0lGODlhGAAYAKUAAAQCBISChERCRMTCxCQiJKSipGRiZBQSFJSSlFRSVOTi5DQyNLSytHRydAwKDIyKjExKTMzOzCwqLKyqrBwaHJyanFxaXPz+/Dw6PHx6fGxqbOzq7Ly6vAQGBISGhERGRMzKzCQmJKSmpGRmZBQWFJSWlFRWVDQ2NLS2tHR2dAwODIyOjExOTNTS1CwuLKyurBweHJyenFxeXDw+PHx+fOzu7AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJCQA2ACwAAAAAGAAYAAAG/kCbcEg8DCIhonJJyXyEH4XCIAxVnsshLQJKRhUjW6d12XSyQkukVbF9qZrLZYAWAl5rwXekqskXSyEZAgA2MxERDF8yCHIxQh0kKkIrHCgIEgAILRESMS8kERc1FAAHBKiFJ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JkKlM68WoImIeWxJhQbCkEVNa6NCAgnPlACwsCGgmSAAIfkECQkANgAsAAAAABgAGACFBAIEhIKEREJExMLEJCIkZGJkpKKk5OLkFBIUlJKUVFJUNDI01NLUdHJ0tLa0DAoMjIqMTEpMzMrMLCosbGpsHBocnJqcXFpcPDo8/P783NrcfH58vL68BAYEhIaEREZExMbEJCYkZGZkpKak7OrsFBYUlJaUVFZUNDY0dHZ0vLq8DA4MjI6MTE5MzM7MLC4sbG5sHB4cnJ6cXF5cPD483N7cAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABv5Am3BILGlIE6JyWfFEhK1MpiHslB5LouegSSqkKWGMQMgOZ4fayPbNhFfkirnKORw+7RSATOgsX04ANjRpA20NCAQhJVUlK0IWDC4GLwAWaS8qIBVjMQAAJXyCBS4ukgEhJjCCVRUPcIoEMUMLI5IuFGYdZCExj0QACioSAmYAYyWsNgg0AjQ0H2VzACuvDw8AMirbHCoQczZjIbwxI9sO2wngY7yyFS0tCvCzcx0r9/fKNgQbMh9mDzBgYKQEgQgDI0ZQyVLimYAFv2xMsJBwBIQJLTAIEYQARYUJDmlIm5HQggAAF1hAKNGCQowPFxTYW/BMo40KKS5gIcCCxUcGBClSREBx4cICISUWEAQGoycKBA1StHhw4sKJiFlQsEjQgFrQJxOK0gB3QuWsFVGfdGgRU5+SEgVsrvgqhBk9cERa3s0SBAA7");
fancyCss = fancyCss.replace("fancybox_loading@2x.gif",
	"data:image/gif;base64,R0lGODlhMAAwAKUAAAQCBISChERCRMTCxCQiJGRiZKSipOTi5BQSFFRSVDQyNHRydLSytJSWlNTS1PTy9AwKDIyKjExKTMzKzCwqLGxqbKyqrBwaHFxaXDw6PHx6fLy6vPz6/Ozu7JyenNze3AQGBISGhERGRMTGxCQmJGRmZKSmpOTm5BQWFFRWVDQ2NHR2dLS2tJyanNTW1PT29AwODIyOjExOTMzOzCwuLGxubKyurBweHFxeXDw+PHx+fLy+vPz+/AAAAAAAAAAAACH/C05F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AAcAA4ABwADgAHgAPAAeAAcAA4ABwADgAHgAPAAeAAcAA4ABwADgAHgAPAAeAAcAA4ABwADgAHgAPAAeAAcAA4ABwADgAHgAPAAeADP/KHGuAdet1fUjA44zVd2Tj8UBiLgGH46JDR0y13UJ+F3CEBtx28h/ps7Dvo4b7l3h62Ffei/aAFuw7Xit1c/g+ycH0EjAxZBgAAAABJRU5ErkJggg==");
GM_addStyle(fancyCss);

/**
 * Builds the title text that is shown on bottom of the image.
 */
function onFancyboxShow() {
	var imageElem = $(this.element);
	
	// Create list of tags
	var tagString = imageElem.prev().find('img').attr('title');
	var tagsSplit = tagString.split(' ');
	var titleString = new Array();
	titleString.push('<span class="gelbooru-preview-tags">');
	for (var i = 0; i < tagsSplit.length; ++i) {
		titleString.push('<a class="search-tag" href="/index.php?page=post&s=list&tags=' 
			+ encodeURIComponent(tagsSplit[i])
			+ '" style="font-size: smaller">' + tagsSplit[i] + '</a>');
	}
	titleString.push('</span><br />');
	
	// Create various links for voting, favoriting and downloading
	var imageId = imageElem.prev().attr('id').substring(1);
	titleString.push('<span style="font-size: smaller">Vote:');
	titleString.push('<a onclick="post_vote(\'' +
		imageId + '\', \'up\'); return false;">[ + ]</a>');
	titleString.push('<a onclick="post_vote(\'' +
		imageId + '\', \'down\'); return false;">[ - ]</a>');
	titleString.push('Favorite:');
	titleString.push('<a onclick="addFav(\'' +
		imageId + '\'); return false;">[ + ]</a>');
	titleString.push('</span>');

	this.title = titleString.join(' ');
	$('img.fancybox-image').wrap('<a href="/index.php?page=post&s=view&id=' +
		imageId + '">');
}

/**
 * Inserts preview boxes into the DOM tree within each article tag.
 */
function eachPreview(idx, elem) {
	var span = $(elem);
	
  // Set up the button that will show the image preview
	var expandButton = $('<a class="gelbooru-preview">+</div>');
	expandButton
		.css({
			'position': 'absolute',
			'right': 0,
			'top': 0,
			'width': '20px',
			'height': '20px',
			'padding': 0,
			'text-align': 'center',
			'background-color': 'white',
			'font-weight': 'bold'
			})
		.attr({
			'id': span.attr('id') + '_preview',
			'data-fancybox-href': span.find('a img').attr('src').replace(/thumbnail/g, 'sample'),
			'data-fancybox-group': 'gelbooru-preview'
			})
		.hide();
	
	// Insert it into the image container and show/hide on mouseover
	span
		.css('position', 'relative')
		.append(expandButton)
		.hover(
			function(inEvent) {
				$('#' + $(this).attr('id') + '_preview').show();
			},
			function(outEvent) {
				$('#' + $(this).attr('id') + '_preview').hide();
			}
		);
}

// Build preview click boxes
$('span.thumb').each(eachPreview);

// Create fancybox for all image links
$("a.gelbooru-preview").fancybox({
	beforeLoad: function() {
		var url = this.href;
		$.ajax({
			url: url,
			async: false,
			error: function() {
				url = url.replace('samples', 'images').replace('sample_', '');
				$.ajax({
					url: url,
					async: false,
					error: function() {
						url = url.replace('.jpg', '.png');
						$.ajax({
					    url: url,
					    async: false,
					    error: function() {
						    url = url.replace('.png', '.gif');
					    }
				    });
					}
				});
			}
		});
		this.href = url;
	},
	beforeShow: onFancyboxShow,
	helpers: {
		title: {
			type: 'inside'
		}
	}
});