Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name envato
- // @namespace envato
- // @include http://codecanyon.net/*
- // @include http://themeforest.net/*
- // @include http://videohive.net/*
- // @include http://audiojungle.net/*
- // @include http://photodune.net/*
- // @include http://graphicriver.net/*
- // @include http://activeden.net/*
- // @include http://3docean.net/*
- // @version 1.1
- // @grant none
- // ==/UserScript==
- jQuery(document).ready(function() {
- jQuery('<style />').html(
- '.cj {background-color: #333 !important}' +
- '.cj-2 {background-color: #999 !important;}' +
- '.cj h2 {color: #FFF}' +
- '.cj p {color: #CCC}' +
- '.cj img {border: 1px solid white}' +
- '.marketing-ad {border: 1px solid #DDD}' +
- '.home-section__announcement {margin-bottom: 25px}' +
- '.-color-white:last-child {padding-top: 25px}'
- ).appendTo(jQuery('head'));
- var followed = jQuery('#followed-items').addClass('cj'),
- whites = jQuery('.-color-white'),
- greys = jQuery('.-color-grey');
- if(followed.length) {
- whites.eq(1).addClass('cj').insertAfter(jQuery('#content').children('div').children('div').eq(0)).find('h2').text('New Stuff');
- whites.eq(whites.length - 2).addClass('cj');
- }
- else {
- whites.eq(0).addClass('cj').insertAfter(jQuery('#content').children('div').children('div').eq(0)).find('h2').text('New Stuff');
- whites.eq(whites.length - 1).addClass('cj-2');
- greys.eq(greys.length - 1).addClass('cj');
- }
- // Alternative titles
- greys.eq(0).find('h2').text('Staff Picks');
- greys.eq(1).find('h2').text('Free Stuff');
- followed.find('h2').text('Authors you Follow');
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement