Sleazy Fork is available in English.

E-H GIF Filter

Find which pages of a gallery are animated.

Stan na 25-01-2019. Zobacz najnowsza wersja.

// ==UserScript==
// @name           E-H GIF Filter
// @description    Find which pages of a gallery are animated.
// @author         Hen-Tie
// @homepage       https://hen-tie.tumblr.com/
// @namespace      https://greasyfork.org/en/users/8336
// @include        /https?:\/\/(e-|ex)hentai\.org\/g\/.*/
// @require        https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js
// @icon           https://i.imgur.com/pMMVGRx.png
// @version        1.0
// ==/UserScript==

/*───────────────┬────────────────┐
│     Action     │     Value      │
├────────────────┼────────────────┤
│ Highlight GIFs │ filterMode = 0 │
│ Only show GIFs │ filterMode = 1 │
└────────────────┴───────────────*/
var filterMode = 0;

if ($('.gdtl img[title$=".gif"]').length) {
	var notGif = $('.gdtl img:not([title$=".gif"])');
	$('#gdt').prepend('<em id="gif-filter" style="display:block; padding:3px; width:100%; text-align:center;">E-H GIF Filter is active</em>');
	if (filterMode) {
		notGif.closest('.gdtl').hide();
		$('#gif-filter').append('—' + notGif.length + ' hidden');
	} else {
		notGif.css('opacity','.33');
	}
}