Greasy Fork is available in English.

Comicslate ImageNice

Вставка красоты под картинками

// ==UserScript==
// @name			Comicslate ImageNice
// @version			2020.01.03
// @description		Вставка красоты под картинками
// @include			http*://*comicslate.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=comicslate.org
// @grant			GM_addStyle
// @run-at			document-end
// ==/UserScript==

GM_addStyle ('.shadow_left{left:-20px;background-position:0 0;}.shadow_right{right:-20px;background-position: 100% 0;}.shadow{position:absolute;bottom:-17px;width:165px;height:26px;background-image:url(https://static.parastorage.com/services/skins/2.1229.80/images/wysiwyg/core/themes/base/liftedshadow_medium.png);background-repeat: no-repeat;}');

var i_n_container = document.querySelectorAll ( ".ct-container, .fn-container" ),
	i_n_left_div,
	i_n_right_div;

for ( var i = 0; i < i_n_container.length; i++ ) {
	i_n_left_div = document.createElement ( 'div' );
	i_n_left_div.setAttribute ( 'class', 'shadow shadow_left' );
	i_n_container[i].appendChild ( i_n_left_div );

	i_n_right_div = document.createElement ( 'div' );
	i_n_right_div.setAttribute ( 'class', 'shadow shadow_right' );
	i_n_container[i].appendChild ( i_n_right_div );
}