Extra Cheevos

Adds more cheevos

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name        Extra Cheevos
// @namespace   pxgamer
// @description Adds more cheevos
// @include     *kat.cr/achievements*
// @include     *kat.cr/user/*/
// @author      pxgamer
// @version     0.6
// @grant       none
// ==/UserScript==

$(function(){
    var cheevoTitles = ["Speechless"];
    var cheevoDescriptions = ["Oh no, you've been muted!"];
    var i = 0;
    var username = $('#navigation li a span.usernameProfile.menuItem').text();
    var rep = "129.82K";
    var acl = "3";
    var loc = window.location.href;

    if (loc.substr(loc.length - 14) == "/achievements/") {
        for (i = 0; i < cheevoTitles.length; i++) {
            $('table.achTable tr td.leftpad20px.width100perc ul:first').append(
                '<li> <span class="achBadge specialAchBack assignedAchievement"><a href="/achievements/'+encodeURIComponent(cheevoTitles[i])+'" title=""><span class="specialAchIcon"></span><span class="achTitle">'+cheevoTitles[i]+'</span></a></span> <strong>x 1</strong>  <span class="achDesc">'+cheevoDescriptions[i]+'</span> </li>'
            );
        }
    }
    if (loc.split("/")[4] == username) {
        for (i = 0; i < cheevoTitles.length; i++) {
            $('table.achTable tbody tr:first td.botpad5px').append(
                '<span class="achBadge specialAchBack"><a href="/achievements/'+encodeURIComponent(cheevoTitles[i])+'/" title="'+cheevoDescriptions[i]+'"><span class="specialAchIcon"></span><span class="achTitle">'+cheevoTitles[i]+'</span></a></span>'
            );
        }
    }
    for (i = 0; i < cheevoTitles.length; i++) {
        if (loc.indexOf(encodeURIComponent(cheevoTitles[i])) > -1) {
            document.title = "Achievements - Kickass Torrents";
            $('.errorpage').html('<h2>Users that received <b>'+cheevoTitles[i]+'</b> achievement</h2>'+
                                 '<a href="/achievements/" class="block clearleft">← Back to all achievements</a>'+
                                 '<div class="botmarg10px center topmarg10px">'+
                                 '<img src="//kastatic.com/images/achMedal_special.jpg" /> '+
                                 '<div class="ach_desc">'+cheevoDescriptions[i]+'</div>'+
                                 '</div>'+
                                 '<div class="bottmarg20px accentbox textcontent inlineblock noBulletsList"> '+
                                 '<ul class="fourcols"> '+
                                 '<li '+
                                 '<span class="badgeInline"><span class="online" title="online"></span><span class="aclColor_'+acl+'"><a class="plain" href="/user/'+username+'"> '+username+'</a></span><span title="Reputation" class="repValue positive">'+rep+'</span></span></li>'
                                );
            $('.errorpage').css("background", "none");
            $('.errorpage').removeClass('errorpage');
        }
    }
});