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

  • dqdb

    Topikgazda

    válasz Penge_4 #9831 üzenetére

    Ez direkt volt így, hogy garantáltan meg tudjál nézni egy hivatkozott hozzászólást :D

    // ==UserScript==
    // @name prohardver.hu : forum : redirect to fresh content
    // @namespace http://www.prohardver.hu/
    // @include http://www.prohardver.hu/tema/*
    // @include http://prohardver.hu/tema/*
    // @include http://www.mobilarena.hu/tema/*
    // @include http://mobilarena.hu/tema/*
    // @include http://www.itcafe.hu/tema/*
    // @include http://itcafe.hu/tema/*
    // @include http://www.logout.hu/tema/*
    // @include http://logout.hu/tema/*
    // @include http://www.gamepod.hu/tema/*
    // @include http://gamepod.hu/tema/*
    // ==/UserScript==
    var re = /(www\.)?(prohardver|mobilarena|gamepod|itcafe|logout)\.hu\/tema\/(\w+)\/hsz_(\d+)\-(\d+)\.html/;
    var result = window.location.href.match(re);
    if (result)
    window.location.replace("http://" + result[2] + ".hu/tema/" + result[3] + "/friss.html#msg" + result[4]);

    Az egész @include-os részt törölni lehetne ennek a scriptnek elejéről, mert a fórumlinkek felismeréséhez elég önmagában a reguláris kifejezés, de így más oldalon nem fut le feleslegesen.

    [ Szerkesztve ]

    tAm6DAHNIbRMzSEARWxtZW50ZW0gdmFka5RydIJ6bmkuDQoNClOBc4Ek

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