[Konachan / yande.re] Profile: Show Duplicate Thumbnails

Disables the hiding of duplicate thumbnails on the user pages.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

Bạn sẽ cần cài đặt một tiện ích mở rộng như Tampermonkey hoặc Violentmonkey để cài đặt kịch bản này.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(Tôi đã có Trình quản lý tập lệnh người dùng, hãy cài đặt nó!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name		[Konachan / yande.re] Profile: Show Duplicate Thumbnails
// @namespace	Zolxys
// @description	Disables the hiding of duplicate thumbnails on the user pages.
// @include		/^https?://konachan\.(com|net)/user/show/\d+/?($|\?|#)/
// @include		/^https?://yande\.re/user/show/\d+/?($|\?|#)/
// @version		1.2
// ==/UserScript==
var l = [];
var a = document.getElementsByTagName("li");
for (var i = 0; i < a.length; ++i)
  if (/^p\d+$/.test(a[i].id)) {
	var n = parseInt(a[i].id.substr(1));
	if (l.indexOf(n) == -1) {
		if (!/(^|\s)javascript-hide(\s|$)/.test(a[i].className))
			l.push(n);
	}
	else
		a[i].className = a[i].className.replace(/(^|\s)javascript-hide(\s|$)/g, ' ');
}