[Konachan] Thumbnails: Multicolored Image Borders

Shows multicolored borders on thumbnails when more than one color is applicable.

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

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

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.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

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] Thumbnails: Multicolored Image Borders
// @namespace	Zolxys
// @description	Shows multicolored borders on thumbnails when more than one color is applicable.
// @include		/^https?://konachan\.com/(post(/(similar|delete)(/\d+)?)?|(user|pool)/show/\d+|wiki/show)/?($|\?|#)/
// @include		/^https?://konachan\.net/(post(/(similar|delete)(/\d+)?)?|(user|pool)/show/\d+|wiki/show)/?($|\?|#)/
// @version		1.4
// ==/UserScript==
var ss = document.createElement('style');
ss.type = 'text/css';
ss.textContent = 'img.has-children {border-top: 3px solid #00FF00;}\n'+
'img.has-parent {border-top: 3px solid #CCCC00; border-right: 3px solid #CCCC00; border-left: 3px solid #CCCC00;}\n'+
'img.has-children {border-left: 3px solid #00FF00; border-bottom: 3px solid #00FF00;}\n'+
'img.flagged {border-right: 3px solid #FF0000; border-bottom: 3px solid #FF0000;}\n'+
'img.pending {border-right: 3px solid #0000FF; border-bottom: 3px solid #0000FF;}';
document.head.appendChild(ss);