All pastes #1442549 Raw Edit

YouTraceX

public javascript v1 · immutable
#1442549 ·published 2009-05-31 18:10 UTC
rendered paste body
function () {    function YouTraceX(UA, LH, LS, LR, VL, ST, YT) {        if (0 <= UA.indexOf("Opera")) {            YT = ON;        }        if (YT) {            if (0 > LH.indexOf("://www.youtube.com/watch?")) {                return;            }        }        if (0 < LH.indexOf(".nicovideo.jp/watch/")) {            return;        }        function OP(wk) {            if (0 <= UA.indexOf("Opera")) {                wk = wk.toUpperCase();            }            return wk;        }        if (0 > LH.indexOf("googleads") && (0 > LH.indexOf("&ref="))) {            VT = Math.floor(500 / VL);            if (10 > VT) {                VT = 0;            }            VH = 12;            DG = "//i.ytimg.com/vi/zKgSjleiJ1Q/default.jpg";            BR = "<br>";            if (ON) {                VS = "w=970&h=686";            } else {                VS = "w=640&h=450";            }            if (10 > VL) {                VL = 10;            }            if (100 < VL) {                VL = 100;            }            VE = VL;            TE = " \u2026";            TE = "";            SF = 0;            if (0 <= UA.indexOf("Safari")) {                SF = 1;            }            FF = 0;            if (0 <= UA.indexOf("Firefox")) {                FF = 1;            }            if (0 < LH.indexOf("fooooo.com/")) {                FO = LH.split("/");                FO = FO[2];            } else {                FO = "fooooo.com";            }            FO = "//" + FO;            if (0 < LH.indexOf("://www.youtube.com/watch?")) {                DD = document.getElementsByTagName("body");                DC = DD[0].innerHTML;                X = OP("<div ") + "id=\"watch-other-vids\">";                if (0 < DC.indexOf(X)) {                    DB = DC.substr(0, DC.indexOf(X));                    X = OP("</script>");                    DB = DB.substr(0, DB.lastIndexOf(X) + X.length);                    DC = DC.substr(DB.length);                    IT = document.title.substr(10, VT);                    SQ = IT;                    X = "@";                    XX = X + X;                    IX = LS.substr((LS + "v=").indexOf("v=") + 2, 11);                    if ("" == IT) {                        IT = " ";                    }                    IT = IX + X + IT.split(X).join("\uFF20");                    GC = GetCookie("index");                    if ("" == GC) {                        IT = XX + IT;                    } else {                        GX = XX + IX + X;                        if (0 <= GC.indexOf(GX)) {                            GE = GC.substr(GC.indexOf(GX) + GX.length);                            GE = GE.substr((GE + XX).indexOf(XX));                            GC = GC.substr(0, GC.indexOf(GX)) + GE;                        }                        IT = XX + IT + GC;                    }                    XC = IT.split(XX);                    if ((110) < XC.length - 1) {                        IT = IT.substr(0, IT.lastIndexOf(XX));                    }                    for (i = 0; (110) > i; i++) {                        if (2500 > SetCookie("index", IT)) {                            break;                        } else {                            IT = IT.substr(0, IT.lastIndexOf(XX));                        }                    }                    IT = GetCookie("index");                    IT = IT.split(XX);                    H = Math.max(30, 48);                    SN = "<table width=100% height=" + H + " cellspacing=0 cellpadding=0 border=0 bgcolor=black><tr>";                    N = Math.min(VL, IT.length - 1) + 9;                    N = N - N % 10;                    for (i = 1; N >= i; i++) {                        if (1 == i % 10 && (10 < i)) {                            SN += "</tr><tr>";                        }                        if (IT.length > i) {                            IX = IT[i].split(X);                            if (" " != IX[1]) {                                IX[1] = "\u3000" + IX[1] + TE;                            }                            if (SF) {                                SN += "<td><a target=_top href=//www.youtube.com/watch?v=" + IX[0] + "&fmt=18><img height=" + H + " width=100% border=0 title=\"v=" + IX[0] + IX[1] + "\" src=" + DG + " onload=\"this.src='//i.ytimg.com/vi/" + IX[0] + "/default.jpg';\"></a></td>";                            } else {                                SN += "<td><a target=_top href=//www.youtube.com/watch?v=" + IX[0] + "&fmt=18><img height=" + H + " width=100% border=0 title=\"v=" + IX[0] + IX[1] + "\" src=//i.ytimg.com/vi/" + IX[0] + "/default.jpg></a></td>";                            }                        } else {                            SN += "<td><img height=" + H + " width=100% src=" + DG + "></td>";                        }                    }                    SN += "</tr></table>";                    DX = TG(SQ, "100%", 9, "?v=", ON);                    DX += SN + BR;                    DX = DB + DX + DC.replace(/(as MP4)(<\/[Aa]>)/g, "as MP4HQ$2").replace(/(as 720p HD MP4)(<\/[Aa]>)/g, "as MP4HD$2");                    DD[0].innerHTML = DX;                    if (ST) {                        window.scroll(0, 0);                    }                }            } else if (0 < LH.indexOf(FO)) {                DD = document.getElementsByTagName("body");                DC = DD[0].innerHTML;                if (ON) {                    DC = DC.replace(/(<img .+\.smilevideo\.jp\/smile\?i=)(\d+)(".+>)/g, "</a><a target=_top href=//blog81.fc2.com/t/tokkablog/file/zoom.html?" + VS + "&id=sm$2>$1$2$3</a>");                }                DC = DC.split("\"><img ").join("\" target=_top><img ");                DD[0].innerHTML = DC;                if (LH.match(/:\/\/\w*\.?fooooo\.com\/(list\.php|search\.php)/)) {                    SetCookie("search", LH);                }            }            if (0 < LH.indexOf(FO + "/watch.php?id=")) {                DD = document.getElementsByTagName("body");                DC = DD[0].innerHTML;                X = OP("<div ") + "id=\"footer\"";                if (0 < DC.indexOf(X)) {                    DB = DC.substr(0, DC.indexOf(X));                    DC = DC.substr(DB.length);                    IT = document.title;                    IT = IT.substr(0, IT.lastIndexOf(" | ")).split("Fooooo | ").join("");                    SQ = IT;                    X = "@";                    XX = X + X;                    IX = LS.substr((LS + "id=").indexOf("id=") + 3, 35);                    IX = IX.substr(0, (IX + "&").indexOf("&"));                    if ("" == IT) {                        IT = " ";                    }                    IT = IX + X + IT.split(X).join("\uFF20");                    GC = GetCookie("index");                    if ("" == GC) {                        IT = XX + IT;                    } else {                        GX = XX + IX + X;                        if (0 <= GC.indexOf(GX)) {                            GE = GC.substr(GC.indexOf(GX) + GX.length);                            GE = GE.substr((GE + XX).indexOf(XX));                            GC = GC.substr(0, GC.indexOf(GX)) + GE;                        }                        IT = XX + IT + GC;                    }                    XC = IT.split(XX);                    if ((110) < XC.length - 1) {                        IT = IT.substr(0, IT.lastIndexOf(XX));                    }                    for (i = 0; (110) > i; i++) {                        if (2500 > SetCookie("index", IT)) {                            break;                        } else {                            IT = IT.substr(0, IT.lastIndexOf(XX));                        }                    }                    IT = GetCookie("index");                    IT = IT.split(XX);                    H = Math.max(30, 76.8);                    SN = "<table width=960 cellspacing=0 cellpadding=0 border=0 bgcolor=black>";                    N = Math.min(VL, IT.length - 1) + 9;                    N = N - N % 10;                    for (i = 1; N >= i; i++) {                        if (IT.length > i) {                            IX = IT[i].split(X);                            if (" " != IX[1]) {                                IX[1] += TE;                            }                            SN += "<tr><td width=10></td><td><b><font color=white><a target=_top style=color:white href=/watch.php?id=" + IX[0] + ">id=" + IX[0] + "</a></td><td><b><a target=_top href=/watch.php?id=" + IX[0] + " style=color:white>" + IX[1] + "</a></td></tr>";                        }                    }                    SN += "</table>";                    DX = TG(SQ, 960, 9, "?id=", ON);                    DX += SN + BR;                    GC = GetCookie("search");                    if ("" == GC) {                        GC = "/search.php?ranking=0&q=PV";                    }                    X = "<table width=100% height=100 cellspacing=0 cellpadding=0 border=0><tr><td valign=middle align=center><input type=button onFocus=this.blur() value=\"\u3000\u3000\u3000TOP\u3000\u3000\u3000\" onClick=javascript:window.scroll(0,0)></td></tr></table>";                    X += "<iframe height=1500 width=1000  marginwidth=0 marginheight=0 frameborder=0 allowtransparency=true scrolling=no src=" + GC + "></iframe><style>a{line-height:100%;font-size:10pt;}</style>";                    DD[0].innerHTML = DB + "<center>" + DX + X + "<noembed>";                    if (ST) {                        window.scroll(0, 0);                    }                }            } else if (0 < LH.indexOf("://www.sprasia.com/")) {                if (0 < LH.indexOf("://www.sprasia.com/channel/?")) {                    DD = document.getElementsByTagName("body");                    DC = DD[0].innerHTML;                    DC = DC.split("<a ").join("<a target=_top ");                    DD[0].innerHTML = DC;                } else if (0 < LH.indexOf("://www.sprasia.com/")) {                    DD = document.getElementsByTagName("body");                    DC = DD[0].innerHTML;                    X = "<!-- market -->";                    if (0 < DC.indexOf(X)) {                        DB = DC.substr(0, DC.indexOf(X));                        DC = DC.substr(DB.length);                        IT = document.title;                        IT = IT.substr(0, IT.indexOf(" | "));                        SQ = IT;                        X = "@";                        XX = X + X;                        IX = LH.substr((LH + ".com/").indexOf(".com/") + 5).replace(".html", "");                        if ("" == IT) {                            IT = " ";                        }                        IT = IX + X + IT.split(X).join("\uFF20");                        GC = GetCookie("index");                        if ("" == GC) {                            IT = XX + IT;                        } else {                            GX = XX + IX + X;                            if (0 <= GC.indexOf(GX)) {                                GE = GC.substr(GC.indexOf(GX) + GX.length);                                GE = GE.substr((GE + XX).indexOf(XX));                                GC = GC.substr(0, GC.indexOf(GX)) + GE;                            }                            IT = XX + IT + GC;                        }                        XC = IT.split(XX);                        if ((110) < XC.length - 1) {                            IT = IT.substr(0, IT.lastIndexOf(XX));                        }                        if (OFF) {                            for (i = 0; (110) > i; i++) {                                if (2500 > SetCookie("index", IT)) {                                    break;                                } else {                                    IT = IT.substr(0, IT.lastIndexOf(XX));                                }                            }                            IT = GetCookie("index");                        }                        IT = IT.split(XX);                        H = Math.max(30, 76.8);                        SN = "<table width=640 cellspacing=0 cellpadding=0 border=0 bgcolor=black>";                        N = Math.min(VL, IT.length - 1) + 9;                        N = N - N % 10;                        for (i = 1; N >= i; i++) {                            if (IT.length > i) {                                IX = IT[i].split(X);                                if (" " != IX[1]) {                                    IX[1] += TE;                                }                                SN += "<tr><td width=10></td><td><b><font color=white><a target=_top style=color:white href=//www.sprasia.com/" + IX[0] + ".html>" + IX[0] + "</a></td><td><b><a target=_top href=//www.sprasia.com/" + IX[0] + ".html style=color:white>" + IX[1] + "</a></td></tr>";                            }                        }                        SN += "</table>";                        DX = TG(SQ, 640, 9, "//www.sprasia.com/", OFF);                        DX += SN + BR;                        if (OFF) {                            GC = GetCookie("search");                            if ("" == GC) {                                GC = "//say-move.net/comesearch.php?sort=view&genre=&sitei=&mode=&p=1&q=%20";                            }                        }                        GC = "//www.sprasia.com/channel/?";                        X = "<center><iframe height=2000 width=1000  marginwidth=0 marginheight=0 frameborder=0 allowtransparency=true scrolling=no src=" + GC + "></iframe><style>a{line-height:120%;font-size:10pt;}</style>";                        DD[0].innerHTML = DB + BR + DX + DC + BR + BR + X;                        if (ST) {                            window.scroll(0, 0);                        }                    }                }            } else if (0 < LH.indexOf("://say-move.net/")) {                if (0 < LH.indexOf("://say-move.net/comesearch.php")) {                    DD = document.getElementsByTagName("body");                    DC = DD[0].innerHTML;                    DC = DC.replace(/(<img .+>)(<p .+>)(\s*)(<a .+>)(.*)(<\/a>)/g, "$4$1$6$2$3$4<font color=black>$5</font>$6").replace(/(<a .+>)(.*)(<\/a>)/g, "$1<font color=black>$2</font>$3");                    DC = DC.replace(/(<td><a )(.+><img .+>)/g, "$1target=_top $2");                    DD[0].innerHTML = DC;                    SetCookie("search", LH);                } else if ("://say-move.net/" == LH.substr(4)) {                    DD = document.getElementsByTagName("body");                    DC = DD[0].innerHTML;                    X = OP("<div ") + "id=\"disp\"";                    if (0 < DC.indexOf(X)) {                        DB = DC.substr(0, DC.indexOf(X));                        DC = DC.substr(DB.length);                        DC = DC.replace(/(<img .+>)(<p .+>)(\s*)(<a .+>)(.*)(<\/a>)/g, "$4$1$6$2$3$4<font color=black>$5</font>$6").replace(/(<a .+>)(.*)(<\/a>)/g, "$1<font color=black>$2</font>$3");                        DC = DB + BR + "\u3000" + DC;                        DC = DC.replace(/(<a )(.+><img .+>)/g, "$1target=_top $2");                        DD[0].innerHTML = DC;                    }                } else if (0 < LH.indexOf("://say-move.net/comeplay.php?comeid=")) {                    DD = document.getElementsByTagName("body");                    DC = DD[0].innerHTML;                    X = OP("<br>\n<br>");                    if (0 < DC.lastIndexOf(X)) {                        DB = DC.substr(0, DC.lastIndexOf(X) + X.length);                        DC = DC.substr(DB.length);                        IT = document.title;                        IT = IT.substr(0, IT.lastIndexOf(" Say"));                        SQ = IT;                        X = "@";                        XX = X + X;                        IX = LS.substr((LS + "id=").indexOf("id=") + 3, 11);                        if ("" == IT) {                            IT = " ";                        }                        IT = IX + X + IT.split(X).join("\uFF20");                        GC = GetCookie("index");                        if ("" == GC) {                            IT = XX + IT;                        } else {                            GX = XX + IX + X;                            if (0 <= GC.indexOf(GX)) {                                GE = GC.substr(GC.indexOf(GX) + GX.length);                                GE = GE.substr((GE + XX).indexOf(XX));                                GC = GC.substr(0, GC.indexOf(GX)) + GE;                            }                            IT = XX + IT + GC;                        }                        XC = IT.split(XX);                        if ((110) < XC.length - 1) {                            IT = IT.substr(0, IT.lastIndexOf(XX));                        }                        for (i = 0; (110) > i; i++) {                            if (2500 > SetCookie("index", IT)) {                                break;                            } else {                                IT = IT.substr(0, IT.lastIndexOf(XX));                            }                        }                        IT = GetCookie("index");                        IT = IT.split(XX);                        H = Math.max(30, 76.8);                        SN = "<table width=950 cellspacing=0 cellpadding=0 border=0 bgcolor=black>";                        N = Math.min(VL, IT.length - 1) + 9;                        N = N - N % 10;                        for (i = 1; N >= i; i++) {                            if (IT.length > i) {                                IX = IT[i].split(X);                                if (" " != IX[1]) {                                    IX[1] += TE;                                }                                SN += "<tr><td width=10></td><td><b><font color=white><a target=_top style=text-decoration:none;color:white href=//say-move.net/comeplay.php?comeid=" + IX[0] + ">id=" + IX[0] + "</a></td><td><b><a target=_top href=//say-move.net/comeplay.php?comeid=" + IX[0] + " style=text-decoration:none;color:white>" + IX[1] + "</a></td></tr>";                            }                        }                        SN += "</table>";                        DX = TG(SQ, 960, 12, "comeplay.php?comeid=", ON);                        DX += SN + BR;                        GC = GetCookie("search");                        if ("" == GC) {                            GC = "//say-move.net/comesearch.php?sort=view&genre=&sitei=&mode=&p=1&q=%20";                        }                        X = "<iframe height=2000 width=1000  marginwidth=0 marginheight=0 frameborder=0 allowtransparency=true scrolling=no src=" + GC + "></iframe><style>a{line-height:120%;font-size:10pt;}</style>";                        DD[0].innerHTML = DB + DX + X + "<noembed>";                        if (ST) {                            window.scroll(0, 0);                        }                    }                }            } else if (0 < LH.indexOf(".nicovideo.jp/")) {                if (ON) {                    DD = document.getElementsByTagName("body");                    DC = DD[0].innerHTML;                    if (ON) {                        DC = DC.replace(/(<img alt="" src=".+\.smilevideo\.jp\/smile\?i=)(\d+)(".+>)/g, "</a><a target=_top href=//blog81.fc2.com/t/tokkablog/file/zoom.html?" + VS + "&id=sm$2>$1$2$3</a>");                        DC = DC.replace(/(<img .+\.smilevideo\.jp\/smile\?i=)(\d+)(".+>)/g, "</a><a target=_top href=//blog81.fc2.com/t/tokkablog/file/zoom.html?" + VS + "&id=sm$2>$1$2$3</a>");                    }                    DC = DC.split("\"><img ").join("\" target=_top><img ");                    DD[0].innerHTML = DC;                    if (ON) {                        if (LH.match(/:\/\/\w*\.?fooooo\.com\/(list\.php|search\.php)/)) {                            SetCookie("search", LH);                        }                    } else {                        if (LH.match(/(.nicovideo\.jp\/ranking|.nicovideo.jp\/newarrival|uad\.nicovideo\.jp\/main)/)) {                            SetCookie("search", LH);                        }                    }                }            } else if (0 < LH.indexOf("://blog81.fc2.com/t/tokkablog/file/zoom.html?")) {                if (ON) {                    if (LR.match(/:\/\/\w*\.?fooooo\.com\/(list\.php|search\.php)/)) {                        SetCookie("search", LR);                    }                } else {                    if (LR.match(/(.nicovideo\.jp\/ranking|.nicovideo.jp\/newarrival|uad\.nicovideo\.jp\/main)/)) {                        SetCookie("search", LR);                    }                }                DD = document.getElementsByTagName("body");                DC = DD[0].innerHTML;                X = OP("<div ") + "id=\"container\">";                DC = DC.substr((DC + X).indexOf(X));                X = OP("</script>");                if (0 < DC.lastIndexOf(X)) {                    DB = DC.substr(0, DC.lastIndexOf(X) + X.length);                    DC = DC.substr(DB.length);                    IT = document.title.substr(0, 5);                    SQ = IT;                    X = "@";                    XX = X + X;                    IX = LS.substr((LS + "id=").indexOf("id=") + 3, 11);                    IX = IX.substr(0, (IX + "&").indexOf("&"));                    if ("" == IT) {                        IT = " ";                    }                    IT = IX + X + IT.split(X).join("\uFF20");                    GC = GetCookie("index");                    if ("" == GC) {                        IT = XX + IT;                    } else {                        GX = XX + IX + X;                        if (0 <= GC.indexOf(GX)) {                            GE = GC.substr(GC.indexOf(GX) + GX.length);                            GE = GE.substr((GE + XX).indexOf(XX));                            GC = GC.substr(0, GC.indexOf(GX)) + GE;                        }                        IT = XX + IT + GC;                    }                    XC = IT.split(XX);                    if ((110) < XC.length - 1) {                        IT = IT.substr(0, IT.lastIndexOf(XX));                    }                    for (i = 0; (110) > i; i++) {                        if (2500 > SetCookie("index", IT)) {                            break;                        } else {                            IT = IT.substr(0, IT.lastIndexOf(XX));                        }                    }                    IT = GetCookie("index");                    IT = IT.split(XX);                    H = Math.max(30, 76.8);                    SN = "<table width=970 cellspacing=0 cellpadding=0 border=0 bgcolor=black>";                    N = Math.min(VL, IT.length - 1) + 9;                    N = N - N % 10;                    for (i = 1; N >= i; i++) {                        if (1 == i % 10 && (10 < i)) {                            SN += "</tr><tr>";                        }                        if (IT.length > i) {                            IX = IT[i].split(X);                            if (" " != IX[1]) {                                IX[1] = "\u3000" + IX[1] + TE;                            }                            if (SF) {                                SN += "<td><a target=_top href=//blog81.fc2.com/t/tokkablog/file/zoom.html?" + VS + "&id=" + IX[0] + "><img height=" + H + " width=100% border=0 title=\"id=" + IX[0] + IX[1] + "\" src=" + DG + " onload=\"this.src='//tn-skr.smilevideo.jp/smile?i=" + IX[0].substr(2) + "';\"></a></td>";                            } else {                                SN += "<td><a target=_top href=//blog81.fc2.com/t/tokkablog/file/zoom.html?" + VS + "&id=" + IX[0] + "><img height=" + H + " width=100% border=0 title=\"id=" + IX[0] + IX[1] + "\" src=//tn-skr.smilevideo.jp/smile?i=" + IX[0].substr(2) + "></a></td>";                            }                        } else {                            SN += "<td><img height=" + H + " width=100% src=" + DG + "></td>";                        }                    }                    SN += "</tr></table>";                    DX = TG(SQ, 960, 12, "//blog81.fc2.com/t/tokkablog/file/zoom.html?" + VS + "&id=", ON);                    DX += SN + BR;                    GC = GetCookie("search");                    if ("" == GC) {                        if (ON) {                            GC = "www.fooooo.com/list.php?site=nicovideo";                        } else {                            GC = "//www.nicovideo.jp/newarrival";                        }                    }                    X = "<iframe height=2000 width=970  marginwidth=0 marginheight=0 frameborder=0 allowtransparency=true scrolling=no src=" + GC + "></iframe>";                    X = "<table width=100% height=100 cellspacing=0 cellpadding=0 border=0 bgcolor=white><tr><td valign=middle align=center><input type=button onFocus=this.blur() value=\"\u3000\u3000\u3000TOP\u3000\u3000\u3000\" onClick=javascript:window.scroll(0,0)></td></tr></table>" + X;                    DX = "<center><table width=1018 height=100% cellspacing=0 cellpadding=0 border=0><tr><td valign=top align=center><font color=d0d0d0><b>Holiday 02:00\uFF5E12:00 Weekday 02:00\uFF5E18:00 HQ</b></font><br>" + DB + "</td></tr><tr><td valign=top align=center>" + DX + X + DC + "</td></tr></table>";                    DD[0].innerHTML = DX;                    if (ST) {                        window.scroll(0, 0);                    }                }            } else if ((0 < LH.indexOf("://www.veoh.com/browse/videos/") ||                0 < LH.indexOf("://www.veoh.com/collection/") ||                0 < LH.indexOf("://www.veoh.com/Xsearch/videos/")) &&                (0 > LR.indexOf(FO))) {                if (0 < LH.indexOf("://www.veoh.com/collection/")) {                    X = LH.split("/");                    if (5 == X.length && (0 > LH.indexOf("watch"))) {                        return;                    }                }                if (0 > LH.indexOf("://www.veoh.com/browse/videos/watch/v") ||                    (0 < LH.indexOf("?"))) {                    LH = LH.substr(0, (LH + "?").indexOf("?"));                    if (0 < LH.indexOf("watch%3D")) {                        U = LH.substr((LH + "watch%3D").indexOf("watch%3D") + 8, 18);                    } else {                        U = LH.substr(LH.lastIndexOf("/") + 1, 18);                    }                    location.replace("//www.veoh.com/browse/videos/watch/" + U);                } else {                    DD = document.getElementsByTagName("body");                    DC = DD[0].innerHTML;                    if (OFF && (20 >= VE)) {                        ST = VE;                        X = OP("<div ") + "id=\"browseNav\">";                    } else {                        X = OP("<div ") + "id=\"footer\">";                    }                    if (0 < DC.indexOf(X)) {                        DB = DC.substr(0, DC.indexOf(X));                        DC = DC.substr(DB.length);                        IT = document.title;                        IT = IT.substr(0, IT.lastIndexOf(" | Free "));                        SQ = IT;                        X = "@";                        XX = X + X;                        IX = LH.substr(LH.lastIndexOf("/") + 1, 18);                        if ("" == IT) {                            IT = " ";                        }                        IT = IX + X + IT.split(X).join("\uFF20");                        GC = GetCookie("index");                        if ("" == GC) {                            IT = XX + IT;                        } else {                            GX = XX + IX + X;                            if (0 <= GC.indexOf(GX)) {                                GE = GC.substr(GC.indexOf(GX) + GX.length);                                GE = GE.substr((GE + XX).indexOf(XX));                                GC = GC.substr(0, GC.indexOf(GX)) + GE;                            }                            IT = XX + IT + GC;                        }                        XC = IT.split(XX);                        if ((110) < XC.length - 1) {                            IT = IT.substr(0, IT.lastIndexOf(XX));                        }                        for (i = 0; (110) > i; i++) {                            if (2500 > SetCookie("index", IT)) {                                break;                            } else {                                IT = IT.substr(0, IT.lastIndexOf(XX));                            }                        }                        IT = GetCookie("index");                        IT = IT.split(XX);                        H = Math.max(30, 76.8);                        SN = "<table width=970 cellspacing=0 cellpadding=0 border=0 bgcolor=black>";                        N = Math.min(VL, IT.length - 1) + 9;                        N = N - N % 10;                        for (i = 1; N >= i; i++) {                            if (IT.length > i) {                                IX = IT[i].split(X);                                if (" " != IX[1]) {                                    IX[1] += TE;                                }                                SN += "<tr><td width=10></td><td nowrap align=left><b><a target=_top style=color:white href=//www.veoh.com/browse/videos/watch/" + IX[0] + ">" + IX[0] + "</a></td><td nowrap align=left><b><a target=_top href=//www.veoh.com/browse/videos/watch/" + IX[0] + " style=color:white>" + IX[1] + "</a></td></tr>";                            }                        }                        SN += "</table>";                        DX = TG(SQ, 970, 9, "//www.veoh.com/browse/videos/watch/", ON);                        DX += SN + BR;                        X = "<style>a{line-height:120%;font-size:10pt;}</style><center>";                        DD[0].innerHTML = DB + X + DX + DC.replace(/(")( href="\/browse\/videos\/)/g, "$1 target=_top $2");                        if (ST) {                            window.scroll(0, 0);                        }                    }                }            }            if (0 < LH.indexOf("://tv.rayrac.co.jp/")) {                DD = document.getElementsByTagName("body");                DC = DD[0].innerHTML;                DD[0].innerHTML = DC.replace(/(<a )(href="watch\?v=[\w\-]+)(")/g, "$1 target=_top $2$3");                if (LH.match(/:\/\/tv\.rayrac\.co\.jp\/(search|browse)/)) {                    SetCookie("search", LH);                }                if (LH.match(/:\/\/tv\.rayrac\.co\.jp\/watch\?v=[\w\-]+/)) {                    DD = document.getElementsByTagName("body");                    DC = DD[0].innerHTML;                    X = OP("<div ") + "id=\"footer\">";                    if (0 < DC.indexOf(X)) {                        DB = DC.substr(0, DC.indexOf(X));                        DC = DC.substr(DB.length);                        IT = document.title;                        IT = IT.substr(0, IT.lastIndexOf(" - "));                        SQ = IT;                        X = "@";                        XX = X + X;                        IX = LS.substr((LS + "v=").indexOf("v=") + 2, 11);                        if ("" == IT) {                            IT = " ";                        }                        IT = IX + X + IT.split(X).join("\uFF20");                        GC = GetCookie("index");                        if ("" == GC) {                            IT = XX + IT;                        } else {                            GX = XX + IX + X;                            if (0 <= GC.indexOf(GX)) {                                GE = GC.substr(GC.indexOf(GX) + GX.length);                                GE = GE.substr((GE + XX).indexOf(XX));                                GC = GC.substr(0, GC.indexOf(GX)) + GE;                            }                            IT = XX + IT + GC;                        }                        XC = IT.split(XX);                        if ((110) < XC.length - 1) {                            IT = IT.substr(0, IT.lastIndexOf(XX));                        }                        for (i = 0; (110) > i; i++) {                            if (2500 > SetCookie("index", IT)) {                                break;                            } else {                                IT = IT.substr(0, IT.lastIndexOf(XX));                            }                        }                        IT = GetCookie("index");                        IT = IT.split(XX);                        H = Math.max(30, 76.8);                        SN = "<table width=960 cellspacing=0 cellpadding=0 border=0 bgcolor=black>";                        N = Math.min(VL, IT.length - 1) + 9;                        N = N - N % 10;                        for (i = 1; N >= i; i++) {                            if (IT.length > i) {                                IX = IT[i].split(X);                                if (" " != IX[1]) {                                    IX[1] += TE;                                }                                SN += "<tr><td><b><font color=white><a target=_top style=color:white href=//tv.rayrac.co.jp/watch?v=" + IX[0] + ">v=" + IX[0] + "</a></td><td><b><a target=_top href=//tv.rayrac.co.jp/watch?v=" + IX[0] + " style=color:white>" + IX[1] + "</a></td></tr>";                            }                        }                        SN += "</table>";                        DX = TG(SQ, 960, 9, "?v=", ON);                        DX += SN + BR;                        GC = GetCookie("search");                        if ("" == GC) {                            GC = "//tv.rayrac.co.jp/search?q=Veoh+PV&x=28&y=5&s=COM_CNT+DESC&d=&t=";                        }                        X = "<table width=100% height=100 cellspacing=0 cellpadding=0 border=0><tr><td valign=middle align=center><input type=button onFocus=this.blur() value=\"\u3000\u3000\u3000TOP\u3000\u3000\u3000\" onClick=javascript:window.scroll(0," + (500 + SF * 20) + ")></td></tr></table>";                        X += "<iframe height=3300 width=1000  marginwidth=0 marginheight=0 frameborder=0 allowtransparency=true scrolling=no src=" + GC + "></iframe><style>a{line-height:50%;font-size:10pt;}</style>";                        DD[0].innerHTML = DB + DX + X + "<noembed>";                        if (ST) {                            window.scroll(0, 500 + SF * 20);                        }                    }                }            }        }    }    function TG(SQ, WI, CS, XQ, XS) {        x = "+";        SQ = SQ.replace(/(\w)(\W)/g, "$1 $2").replace(/(\W)(\w)/g, "$1 $2").replace(/([!-:A-Z-?])/g, function ($0) {return String.fromCharCode($0.charCodeAt(0) - 65248);}).replace(/([^A-Za-z0-9üž‘-OA-öý- ])/g, x);        SQ = (x + SQ + x).replace(/([\+].[\+])/g, x).replace(/([\+]+)/g, x);        SQ = (SQ + "+++++").split(x);        SQ = (x + SQ[0] + x + SQ[1] + x + SQ[2] + x + SQ[3] + x).replace(/([\+]+)/g, x);        if (x == SQ[0]) {            SQ = SQ.substr(1);        }        if (x == SQ[SQ.length - 1]) {            SQ = SQ.substr(0, SQ.length - 1);        }        SQ = SQ.split(x);        for (i = 1; SQ.length > i; i++) {            if (SQ[0].length < SQ[i].length) {                SQ[0] = SQ[i];            }        }        SQ = encodeURIComponent(SQ[0]).split("%2B").join(x);        DX = "<table width=" + WI + " height=" + VH + " cellspacing=0 cellpadding=0 border=0><tr><td width=35 align=right><a href=javascript:; onClick=\"";        DX += "if(" + XS + "){myCookie='YouTraceX_index=';myValue='';myStr=document.cookie+';';myOfst=myStr.indexOf(myCookie);myStart=myOfst+myCookie.length;myEnd=myStr.indexOf(';',myStart);IT=unescape(myStr.substring(myStart,myEnd));IX=IT.split('@@');if(2<IX.length){IT=IT.substr(IT.indexOf('@@',1))}";        DX += "myDay=Math.floor(100*365.25+1);myExp=new Date();myExp.setTime(myExp.getTime()+(myDay*24*60*60*1000));myItem='YouTraceX_index='+escape(IT)+';';myExpires='expires='+myExp.toGMTString();myItem+=myExpires;document.cookie=myItem;IT=IT.split('@');location.replace('" + XQ + "'+IT[2])}else{location.replace(location.href)}";        DX += "\" title=\"This VideoHistory Delete\" style=text-decoration:none;><b>x</b></a></td><td width=35></td>";        tb = " target=_blank ";        st = " style=font-weight:500;font-size:" + CS + "px;text-decoration:none; ";        DX += "<td align=right><a onFocus=this.blur()" + tb + st + "href=//www.veoh.com/search/videos/#/search/videos/q/" + SQ + ">Veoh</a></td><td align=right><a onFocus=this.blur()" + tb + st + "href=//www.youtube.com/results?search_query=" + SQ + ">YouTube</a></td>";        DX += "<td align=center><a onFocus=this.blur()" + tb + st + "href=//video.google.co.jp/videosearch?&aq=f&q=" + SQ + ">GoogleVideo</a></td><td align=right><a onFocus=this.blur()" + tb + st + "href=" + FO + "/search.php?ranking=0&q=" + SQ + ">fooooo</a></td>";        DX += "<td align=right><a onFocus=this.blur()" + st + " href=//userscripts.org/scripts/source/38008.user.js>Update VideoAsMP4</a></td><td align=right><a onFocus=this.blur()" + st + "href=//userscripts.org/scripts/source/28832.user.js>Update Loopy</a></td>";        DX += "<td align=right><a onFocus=this.blur()" + st + " href=//userscripts.org/scripts/source/45578.user.js>Update AutoBGM</a></td><td align=right><a onFocus=this.blur()" + st + "href=//userscripts.org/scripts/source/46433.user.js>Update YouTraceX</a></td><td width=30></td></tr></table>";        return DX;    }    function GetCookie(myCookie) {        myCookie = "YouTraceX_" + myCookie + "=";        myValue = "";        myStr = document.cookie + ";";        myOfst = myStr.indexOf(myCookie);        if (myOfst != -1) {            myStart = myOfst + myCookie.length;            myEnd = myStr.indexOf(";", myStart);            myValue = unescape(myStr.substring(myStart, myEnd));        }        return myValue;    }    function SetCookie(myCookie, myValue) {        myDay = Math.floor(36526);        myExp = new Date;        myExp.setTime(myExp.getTime() + myDay * 24 * 60 * 60 * 1000);        myItem = "YouTraceX_" + myCookie + "=" + escape(myValue) + ";";        myExpires = "expires=" + myExp.toGMTString();        myItem += myExpires;        if (2500 >= myItem.length) {            document.cookie = myItem;        }        return myItem.length;    }    window.addEventListener("load", function (e) {YouTraceX(navigator.userAgent, location.href, location.search, document.referrer, VideoHistoryLists, WindowScrollTop, YouTubeOnlySW);}, false);}