Advertisement
Guest User

Untitled

a guest
Jan 8th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. (function ($) {
  2. 'use strict';
  3.  
  4. $(function () {
  5. $('.post').each(function () {
  6.  
  7. var $this = $(this);
  8. var uColor = $this.find('.postprofile a[href^="/u"] span[style]').css('color');
  9.  
  10. if (uColor === 'rgb(0, 0, 0)') {
  11. return;
  12. }
  13.  
  14. $this.css({
  15. background: 'linear-gradient(90deg, ' + uColor + ' 0%, rgba(255, 255, 255, 0) 25%)'
  16. });
  17.  
  18. });
  19. });
  20. }(jQuery));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement