Direct Image Link Booru.org

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

Stan na 14-04-2020. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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 );
}