Direct Image Link Booru.org

Показывает прямые ссылки под эскизами

14.04.2020 itibariyledir. En son verisyonu görün.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name		Direct Image Link Booru.org
// @version		2020.04.14
// @description		Показывает прямые ссылки под эскизами
// @include		http*://*booru.org*
// @author		Rainbow-Spike
// @namespace		https://greasyfork.org/users/7568
// @homepage		https://greasyfork.org/ru/users/7568-dr-yukon
// @icon		https://www.google.com/s2/favicons?domain=booru.org
// @grant		none
// @run-at		document-end
// ==/UserScript==

var spans = document.querySelectorAll ( "span.thumb" ), dlink, dir;

for ( var x in spans ) {
	dir = spans[ x ].querySelector ( "img" )
		.getAttribute ( 'src' )
		.split ( '?' )[ 0 ]
		.replace ( "thumbs2", "img" )
		.replace ( "/furry/" , "/furry/images/" )
		.replace ( "thumbnail_", "" );
	dlink = document.createElement ( 'a' );
	dlink.setAttribute ( 'href', dir );
	dlink.innerHTML = 'Link';

	spans[ x ].appendChild ( document.createElement ( 'br' ) );
	spans[ x ].appendChild ( dlink );
}