[Konachan / yande.re / LB] Thumbnails: Show Large Thumbnails (Most Pages)

Shows larger thumbnails on all pages except comments and pool pages.

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name		[Konachan / yande.re / LB] Thumbnails: Show Large Thumbnails (Most Pages)
// @namespace	Zolxys
// @description	Shows larger thumbnails on all pages except comments and pool pages.
// @include		/^https?://konachan\.com/(post(/(similar|delete)(/\d+)?)?|user/show/\d+|wiki/show|note)/?($|\?|#)/
// @include		/^https?://konachan\.net/(post(/(similar|delete)(/\d+)?)?|user/show/\d+|wiki/show|note)/?($|\?|#)/
// @include		/^https?://yande\.re/(post(/(similar|delete)(/\d+)?)?|user/show/\d+|wiki/show|note)/?($|\?|#)/
// @include		/^https?://lolibooru\.moe/(post(/(similar|delete)(/\d+)?)?|user/show/\d+|wiki/show|note)/?($|\?|#)/
// @version		1.3
// ==/UserScript==
if (document.getElementById('post-list-posts') != null) {
	var a = document.getElementsByTagName('img'); // Searches from document instead of id 'post-list-posts' because that id occurs multiple times on the profile page.
	for (var i = 0; i < a.length; i++) {
		var c = 0;
		var d = a[i];
		while (d.id != 'post-list-posts') {
			d = d.parentNode;
			++c;
			if (d == null)
				break;
			if (c == 2 && d.nodeName != 'DIV')
				break;
			if (c == 4) {
				if (d.id != 'post-list-posts')
					break;
				a[i].parentNode.parentNode.style.height=((/konachan/.test(location.host))? '270px' : '300px'); // div
				if (a[i].title != '') {
					a[i].parentNode.parentNode.parentNode.style.width='310px'; // li
					a[i].parentNode.parentNode.style.width='310px'; // div
					a[i].removeAttribute('width');
					a[i].removeAttribute('height');
				}
			}
		}
	}
}
document.getElementById('index-hover-overlay').firstElementChild.style.display = 'none';