Kickass 24h

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

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.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

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