Hirdetés

Új hozzászólás Aktív témák

  • huan

    őstag

    Sziasztok!
    Script írásban jártasoktól kérdezném.
    Az 59-es Firefoxxal és Greasemonkey-val működik az ncore-színezés, a népesebb letöltéseknél.

    Át tudná javítani valaki hozzáértő a régit úgy, hogy működjön az újjal?

    Új (színezi a népes letöltéseket)
    // ==UserScript==
    // @name ncore szinezo
    // @namespace akarmi
    // @description kiemeli a nepszeru torrenteket
    // @include http://ncore.cc/torrents.php*
    // @include https://ncore.cc/torrents.php*
    // @exclude http://ncore.cc/torrents.php?action*
    // @exclude https://ncore.cc/torrents.php?action*
    // @grant none
    // ==/UserScript==

    for (i=0;
    i<document.getElementsByClassName("box_torrent").length;
    i++)
    parseInt(document.getElementsByClassName("torrent")[i*2].innerHTML) + parseInt(document.getElementsByClassName("torrent")[i*2+1].innerHTML) > 300? document.getElementsByClassName("box_nagy" + (i%2?"":"2"))[parseInt(i/2)].style.backgroundColor = "#A31E39":"";

    A régi (színezi a kulcsszavakat tartalmazókat, de formailag régi típusú, nem működik)
    // ==UserScript==
    // @name nCore Színező
    // @include http://ncore.cc/torrents.php*
    // @include http://ncore.nu/torrents.php*
    // @include https://ncore.cc/torrents.php*
    // @include https://ncore.nu/torrents.php*
    // @exclude http://ncore.cc/torrents.php?action*
    // @exclude http://ncore.nu/torrents.php?action*
    // @exclude https://ncore.cc/torrents.php?action*
    // @exclude https://ncore.nu/torrents.php?action*
    // ==/UserScript==

    for (
    i=0 ;
    i < document.getElementsByClassName("box_torrent").length ;
    i++
    )

    //Egyéb Torrentek - Kék színű
    document.getElementsByClassName("box_torrent")[i].getElementsByTagName("a")[1].title.match
    (/windows.7|windows.8|windows.xp/i)
    ?
    document.getElementsByClassName("box_nagy" + (i%2?"":"2"))[parseInt(i/2)].style.backgroundColor = (i%2?"#3b6f70":"#3a8081"):

Új hozzászólás Aktív témák