User RSS on Profile

Adds user uploads RSS button to their profile.

Från och med 2016-06-04. Se den senaste versionen.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey 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 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.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

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         User RSS on Profile
// @namespace    PXgamer
// @version      0.1
// @description  Adds user uploads RSS button to their profile.
// @author       PXgamer
// @include      *kat.cr/user/*/
// @grant        none
// ==/UserScript==
/*jshint multistr: true */

(function() {
    'use strict';

    var nick = $('h1.nickname').html().split('<span ')[0].trim();
    if (nick == $('span.usernameProfile.menuItem').text()) {
        $('div.profileBody').before('<div class="botmarg10px" style="margin-left: 5px"><a href="http://kat.cr/usearch/user%3A'+nick+'/?rss=1" target="_blank" class="kaButton smallButton normalText ka-red"><i class="ka ka-icon16 ka-rss"></i> My Upload RSS</a></div>');
    }
    else {
        $('div.userPic.floatleft.userPicSize100px').next('div.botmarg10px').append('<a href="http://kat.cr/usearch/user%3A'+nick+'/?rss=1" target="_blank" class="ka-red kaButton smallButton normalText"><i class="ka ka-icon16 ka-rss"></i> User Upload RSS</a>');
    }
})();