Kickass 24h

Adds top 24h buttons to kickass like the top48h in tpb.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         Kickass 24h
// @description  Adds top 24h buttons to kickass like the top48h in tpb.
// @namespace    greasyfork.org/users/3926-jguer
// @version      1.0 build 36
// @author       Jguer
// @license      MIT
// @match        *://kickass.to/*
// @match        *://katproxy.com/*
// @match        *://kickasstorrents.im/*
// @match        *://kat.cr/*
// @contributionURL https://www.paypal.com/cgi-bin/webscr?cmd=_donations&[email protected]&item_name=Kickass+24+donation
// @icon         https://raw.githubusercontent.com/Jguer/Kickass-24h/master/resources/large.png
// @require      //ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js
// @grant        none
// ==/UserScript==

function main()
{
    console.log("Loaded script");
    $('<li>').prependTo('#navigation').append( $('<a>', {href: '/usearch/age:24h/'})).children().append( $('<i class="ka ">g</i>')).append($('<span class="menuItem">top 24h</span>'));
    if(window.location.pathname === '/')
    {
        for(var i = 0; i <= 7; i++)
        {
            var usearch = ["movies","tv","music","games","applications","anime","books","lossless"];

            $('h2').eq(i).children(":first").after('<a class="plain topdaybtn">(24h)</a>');
            $('.topdaybtn').eq(i).attr('href','/usearch/category:'+usearch[i]+'%20age:24h/');

        }
    }
}

$(document).ready(main);