User RSS on Profile

Adds user uploads RSS button to their profile.

04.06.2016 itibariyledir. En son verisyonu görün.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==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>');
    }
})();