Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function ($) {
- 'use strict';
- $(function () {
- $('.post').each(function () {
- var $this = $(this);
- var uColor = $this.find('.postprofile a[href^="/u"] span[style]').css('color');
- if (uColor === 'rgb(0, 0, 0)') {
- return;
- }
- $this.css({
- background: 'linear-gradient(90deg, ' + uColor + ' 0%, rgba(255, 255, 255, 0) 25%)'
- });
- });
- });
- }(jQuery));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement