Browse files

cleanup for release as separate project

  • Loading branch information...
1 parent cf91cc5 commit cc7669be0609f1d474ae6776e575e388599a4311 @jacobwgillespie committed Apr 21, 2012
Showing with 91 additions and 0 deletions.
  1. +17 −0 README.md
  2. 0 application.js → hulu-filter.js
  3. +74 −0 hulu-filter.min.js
View
17 README.md
@@ -0,0 +1,17 @@
+# HuluFilter.js
+
+This script mutes and unmutes Hulu videos to filter out profanity. This script is the core of [jacobwg/tmfdb.org](https://github.com/jacobwg/tmfdb.org) and [jacobwg/clean-hulu](https://github.com/jacobwg/clean-hulu).
+
+## Compiling
+
+To compile from Coffeescript to Javascript:
+
+```
+$ coffee -j hulu-filter.js -c src/*.coffee
+```
+
+To minify, use [shrink](https://github.com/jacobwg/shrink) or your favorite minification service:
+
+```
+$ shrink hulu-filter.js
+```
View
0 application.js → hulu-filter.js
File renamed without changes.
View
74 hulu-filter.min.js
@@ -0,0 +1,74 @@
+(function(){var r,e,t,u,x,y,p,d,z,v,q,w,A,B=Array.prototype.indexOf||function(b){for(var a=0,c=this.length;a<c;a++)if(a in this&&this[a]===b)return a;return-1},C=Array.prototype.slice;z=function(b){var a,c,g,j,k,i,f;j=Array(q+1);k=b.length;g=Array(v);f=Array(v);for(a=i=0;a<q+1;)j[a]=Array(4),a++;for(c=a=0;c<k;)g[c]=b.charCodeAt(a)|b.charCodeAt(a+1)<<8|b.charCodeAt(a+2)<<16|b.charCodeAt(a+3)<<24,c++,a+=4;for(c=7;0<=c;)f[c]=g[c],c--;for(c=a=b=0;8>c&&15>b;){for(;8>c&&4>a;)j[b][a]=f[c],c++,a++;4===a&&
+(b++,a=0)}for(;15>b;){c=f[7];f[0]^=e.S[d.B1(c)]|e.S[d.B2(c)]<<8|e.S[d.B3(c)]<<16|e.S[d.B0(c)]<<24;f[0]^=e.Rcon[i++];for(c=1;4>c;)f[c]^=f[c-1],c++;c=f[3];f[4]^=e.S[d.B0(c)]|e.S[d.B1(c)]<<8|e.S[d.B2(c)]<<16|e.S[d.B3(c)]<<24;for(c=5;8>c;)f[c]^=f[c-1],c++;for(c=0;8>c&&15>b;){for(;8>c&&4>a;)j[b][a]=f[c],c++,a++;4===a&&(b++,a=0)}}this.rounds=14;this.rk=j;return this};v=8;q=14;A=function(b){var a,c,g;c=Array(q+1);a=new z(b);g=a.rounds;for(b=0;b<q+1;)c[b]=Array(4),c[b][0]=a.rk[b][0],c[b][1]=a.rk[b][1],c[b][2]=
+a.rk[b][2],c[b][3]=a.rk[b][3],b++;for(b=1;b<g;)a=c[b][0],c[b][0]=e.U1[d.B0(a)]^e.U2[d.B1(a)]^e.U3[d.B2(a)]^e.U4[d.B3(a)],a=c[b][1],c[b][1]=e.U1[d.B0(a)]^e.U2[d.B1(a)]^e.U3[d.B2(a)]^e.U4[d.B3(a)],a=c[b][2],c[b][2]=e.U1[d.B0(a)]^e.U2[d.B1(a)]^e.U3[d.B2(a)]^e.U4[d.B3(a)],a=c[b][3],c[b][3]=e.U1[d.B0(a)]^e.U2[d.B1(a)]^e.U3[d.B2(a)]^e.U4[d.B3(a)],b++;this.rk=c;this.rounds=g;return this};t=function(b,a){var c,g,j,k,i,f;g=a.rounds;for(c=d.packBytes(b);1<g;)j=c[0]^a.rk[g][0],k=c[1]^a.rk[g][1],i=c[2]^a.rk[g][2],
+f=c[3]^a.rk[g][3],c[0]=e.T5[d.B0(j)]^e.T6[d.B1(f)]^e.T7[d.B2(i)]^e.T8[d.B3(k)],c[1]=e.T5[d.B0(k)]^e.T6[d.B1(j)]^e.T7[d.B2(f)]^e.T8[d.B3(i)],c[2]=e.T5[d.B0(i)]^e.T6[d.B1(k)]^e.T7[d.B2(j)]^e.T8[d.B3(f)],c[3]=e.T5[d.B0(f)]^e.T6[d.B1(i)]^e.T7[d.B2(k)]^e.T8[d.B3(j)],g--;j=c[0]^a.rk[1][0];k=c[1]^a.rk[1][1];i=c[2]^a.rk[1][2];f=c[3]^a.rk[1][3];c[0]=e.S5[d.B0(j)]|e.S5[d.B1(f)]<<8|e.S5[d.B2(i)]<<16|e.S5[d.B3(k)]<<24;c[1]=e.S5[d.B0(k)]|e.S5[d.B1(j)]<<8|e.S5[d.B2(f)]<<16|e.S5[d.B3(i)]<<24;c[2]=e.S5[d.B0(i)]|
+e.S5[d.B1(k)]<<8|e.S5[d.B2(j)]<<16|e.S5[d.B3(f)]<<24;c[3]=e.S5[d.B0(f)]|e.S5[d.B1(i)]<<8|e.S5[d.B2(k)]<<16|e.S5[d.B3(j)]<<24;c[0]^=a.rk[0][0];c[1]^=a.rk[0][1];c[2]^=a.rk[0][2];c[3]^=a.rk[0][3];return d.unpackBytes(c)};r=function(){function b(a){this.key=a;this.expandedKey=new A(a)}b.prototype.decrypt=function(a){var c,g,b;b=[];if("string"===typeof a){a=a.split("");for(c=0;c<a.length;)a[c]=a[c].charCodeAt(0)&255,c++}for(g=a.length/16-1;0<g;)c=t(a.slice(16*g,16*(g+1)),this.expandedKey),b=c.concat(b),
+g--;return b=t(a.slice(0,16),this.expandedKey).concat(b)};return b}();window.AES=r;e=function(){function b(){}b.Rcon=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145];b.S=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,
+227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,
+185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22];b.S5=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,
+0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,
+23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125];b.T5=[1353184337,1399144830,3282310938,2522752826,3412831035,4047871263,2874735276,2466505547,1442459680,4134368941,2440481928,625738485,4242007375,3620416197,2151953702,2409849525,1230680542,1729870373,2551114309,3787521629,41234371,317738113,2744600205,3338261355,3881799427,2510066197,3950669247,3663286933,763608788,3542185048,694804553,1154009486,1787413109,2021232372,1799248025,3715217703,3058688446,397248752,1722556617,3023752829,407560035,
+2184256229,1613975959,1165972322,3765920945,2226023355,480281086,2485848313,1483229296,436028815,2272059028,3086515026,601060267,3791801202,1468997603,715871590,120122290,63092015,2591802758,2768779219,4068943920,2997206819,3127509762,1552029421,723308426,2461301159,4042393587,2715969870,3455375973,3586000134,526529745,2331944644,2639474228,2689987490,853641733,1978398372,971801355,2867814464,111112542,1360031421,4186579262,1023860118,2919579357,1186850381,3045938321,90031217,1876166148,4279586912,
+620468249,2548678102,3426959497,2006899047,3175278768,2290845959,945494503,3689859193,1191869601,3910091388,3374220536,0,2206629897,1223502642,2893025566,1316117100,4227796733,1446544655,517320253,658058550,1691946762,564550760,3511966619,976107044,2976320012,266819475,3533106868,2660342555,1338359936,2720062561,1766553434,370807324,179999714,3844776128,1138762300,488053522,185403662,2915535858,3114841645,3366526484,2233069911,1275557295,3151862254,4250959779,2670068215,3170202204,3309004356,880737115,
+1982415755,3703972811,1761406390,1676797112,3403428311,277177154,1076008723,538035844,2099530373,4164795346,288553390,1839278535,1261411869,4080055004,3964831245,3504587127,1813426987,2579067049,4199060497,577038663,3297574056,440397984,3626794326,4019204898,3343796615,3251714265,4272081548,906744984,3481400742,685669029,646887386,2764025151,3835509292,227702864,2613862250,1648787028,3256061430,3904428176,1593260334,4121936770,3196083615,2090061929,2838353263,3004310991,999926984,2809993232,1852021992,
+2075868123,158869197,4095236462,28809964,2828685187,1701746150,2129067946,147831841,3873969647,3650873274,3459673930,3557400554,3598495785,2947720241,824393514,815048134,3227951669,935087732,2798289660,2966458592,366520115,1251476721,4158319681,240176511,804688151,2379631990,1303441219,1414376140,3741619940,3820343710,461924940,3089050817,2136040774,82468509,1563790337,1937016826,776014843,1511876531,1389550482,861278441,323475053,2355222426,2047648055,2383738969,2302415851,3995576782,902390199,3991215329,
+1018251130,1507840668,1064563285,2043548696,3208103795,3939366739,1537932639,342834655,2262516856,2180231114,1053059257,741614648,1598071746,1925389590,203809468,2336832552,1100287487,1895934009,3736275976,2632234200,2428589668,1636092795,1890988757,1952214088,1113045200];b.T6=[2817806672,1698790995,2752977603,1579629206,1806384075,1167925233,1492823211,65227667,4197458005,1836494326,1993115793,1275262245,3622129660,3408578007,1144333952,2741155215,1521606217,465184103,250234264,3237895649,1966064386,
+4031545618,2537983395,4191382470,1603208167,2626819477,2054012907,1498584538,2210321453,561273043,1776306473,3368652356,2311222634,2039411832,1045993835,1907959773,1340194486,2911432727,2887829862,986611124,1256153880,823846274,860985184,2136171077,2003087840,2926295940,2692873756,722008468,1749577816,4249194265,1826526343,4168831671,3547573027,38499042,2401231703,2874500650,686535175,3266653955,2076542618,137876389,2267558130,2780767154,1778582202,2182540636,483363371,3027871634,4060607472,3798552225,
+4107953613,3188000469,1647628575,4272342154,1395537053,1442030240,3783918898,3958809717,3968011065,4016062634,2675006982,275692881,2317434617,115185213,88006062,3185986886,2371129781,1573155077,3557164143,357589247,4221049124,3921532567,1128303052,2665047927,1122545853,2341013384,1528424248,4006115803,175939911,256015593,512030921,0,2256537987,3979031112,1880170156,1918528590,4279172603,948244310,3584965918,959264295,3641641572,2791073825,1415289809,775300154,1728711857,3881276175,2532226258,2442861470,
+3317727311,551313826,1266113129,437394454,3130253834,715178213,3760340035,387650077,218697227,3347837613,2830511545,2837320904,435246981,125153100,3717852859,1618977789,637663135,4117912764,996558021,2130402100,692292470,3324234716,4243437160,4058298467,3694254026,2237874704,580326208,298222624,608863613,1035719416,855223825,2703869805,798891339,817028339,1384517100,3821107152,380840812,3111168409,1217663482,1693009698,2365368516,1072734234,746411736,2419270383,1313441735,3510163905,2731183358,198481974,
+2180359887,3732579624,2394413606,3215802276,2637835492,2457358349,3428805275,1182684258,328070850,3101200616,4147719774,2948825845,2153619390,2479909244,768962473,304467891,2578237499,2098729127,1671227502,3141262203,2015808777,408514292,3080383489,2588902312,1855317605,3875515006,3485212936,3893751782,2615655129,913263310,161475284,2091919830,2997105071,591342129,2493892144,1721906624,3159258167,3397581990,3499155632,3634836245,2550460746,3672916471,1355644686,4136703791,3595400845,2968470349,1303039060,
+76997855,3050413795,2288667675,523026872,1365591679,3932069124,898367837,1955068531,1091304238,493335386,3537605202,1443948851,1205234963,1641519756,211892090,351820174,1007938441,665439982,3378624309,3843875309,2974251580,3755121753,1945261375,3457423481,935818175,3455538154,2868731739,1866325780,3678697606,4088384129,3295197502,874788908,1084473951,3273463410,635616268,1228679307,2500722497,27801969,3003910366,3837057180,3243664528,2227927905,3056784752,1550600308,1471729730];b.T7=[4098969767,1098797925,
+387629988,658151006,2872822635,2636116293,4205620056,3813380867,807425530,1991112301,3431502198,49620300,3847224535,717608907,891715652,1656065955,2984135002,3123013403,3930429454,4267565504,801309301,1283527408,1183687575,3547055865,2399397727,2450888092,1841294202,1385552473,3201576323,1951978273,3762891113,3381544136,3262474889,2398386297,1486449470,3106397553,3787372111,2297436077,550069932,3464344634,3747813450,451248689,1368875059,1398949247,1689378935,1807451310,2180914336,150574123,1215322216,
+1167006205,3734275948,2069018616,1940595667,1265820162,534992783,1432758955,3954313E3,3039757250,3313932923,936617224,674296455,3206787749,50510442,384654466,3481938716,2041025204,133427442,1766760930,3664104948,84334014,886120290,2797898494,775200083,4087521365,2315596513,4137973227,2198551020,1614850799,1901987487,1857900816,557775242,3717610758,1054715397,3863824061,1418835341,3295741277,100954068,1348534037,2551784699,3184957417,1082772547,3647436702,3903896898,2298972299,434583643,3363429358,
+2090944266,1115482383,2230896926,0,2148107142,724715757,287222896,1517047410,251526143,2232374840,2923241173,758523705,252339417,1550328230,1536938324,908343854,168604007,1469255655,4004827798,2602278545,3229634501,3697386016,2002413899,303830554,2481064634,2696996138,574374880,454171927,151915277,2347937223,3056449960,504678569,4049044761,1974422535,2582559709,2141453664,33005350,1918680309,1715782971,4217058430,1133213225,600562886,3988154620,3837289457,836225756,1665273989,2534621218,3330547729,
+1250262308,3151165501,4188934450,700935585,2652719919,3000824624,2249059410,3245854947,3005967382,1890163129,2484206152,3913753188,4238918796,4037024319,2102843436,857927568,1233635150,953795025,3398237858,3566745099,4121350017,2057644254,3084527246,2906629311,976020637,2018512274,1600822220,2119459398,2381758995,3633375416,959340279,3280139695,1570750080,3496574099,3580864813,634368786,2898803609,403744637,2632478307,1004239803,650971512,1500443672,2599158199,1334028442,2514904430,4289363686,3156281551,
+368043752,3887782299,1867173430,2682967049,2955531900,2754719666,1059729699,2781229204,2721431654,1316239292,2197595850,2430644432,2805143E3,82922136,3963746266,3447656016,2434215926,1299615190,4014165424,2865517645,2531581700,3516851125,1783372680,750893087,1699118929,1587348714,2348899637,2281337716,201010753,1739807261,3683799762,283718486,3597472583,3617229921,2704767500,4166618644,334203196,2848910887,1639396809,484568549,1199193265,3533461983,4065673075,337148366,3346251575,4149471949,4250885034,
+1038029935,1148749531,2949284339,1756970692,607661108,2747424576,488010435,3803974693,1009290057,234832277,2822336769,201907891,3034094820,1449431233,3413860740,852848822,1816687708,3100656215];b.T8=[1364240372,2119394625,449029143,982933031,1003187115,535905693,2896910586,1267925987,542505520,2918608246,2291234508,4112862210,1341970405,3319253802,645940277,3046089570,3729349297,627514298,1167593194,1575076094,3271718191,2165502028,2376308550,1808202195,65494927,362126482,3219880557,2514114898,3559752638,
+1490231668,1227450848,2386872521,1969916354,4101536142,2573942360,668823993,3199619041,4028083592,3378949152,2108963534,1662536415,3850514714,2539664209,1648721747,2984277860,3146034795,4263288961,4187237128,1884842056,2400845125,2491903198,1387788411,2871251827,1927414347,3814166303,1714072405,2986813675,788775605,2258271173,3550808119,821200680,598910399,45771267,3982262806,2318081231,2811409529,4092654087,1319232105,1707996378,114671109,3508494900,3297443494,882725678,2728416755,87220618,2759191542,
+188345475,1084944224,1577492337,3176206446,1056541217,2520581853,3719169342,1296481766,2444594516,1896177092,74437638,1627329872,421854104,3600279997,2311865152,1735892697,2965193448,126389129,3879230233,2044456648,2705787516,2095648578,4173930116,0,159614592,843640107,514617361,1817080410,4261150478,257308805,1025430958,908540205,174381327,1747035740,2614187099,607792694,212952842,2467293015,3033700078,463376795,2152711616,1638015196,1516850039,471210514,3792353939,3236244128,1011081250,303896347,
+235605257,4071475083,767142070,348694814,1468340721,2940995445,4005289369,2751291519,4154402305,1555887474,1153776486,1530167035,2339776835,3420243491,3060333805,3093557732,3620396081,1108378979,322970263,2216694214,2239571018,3539484091,2920362745,3345850665,491466654,3706925234,233591430,2010178497,728503987,2845423984,301615252,1193436393,2831453436,2686074864,1457007741,586125363,2277985865,3653357880,2365498058,2553678804,2798617077,2770919034,3659959991,1067761581,753179962,1343066744,1788595295,
+1415726718,4139914125,2431170776,777975609,2197139395,2680062045,1769771984,1873358293,3484619301,3359349164,279411992,3899548572,3682319163,3439949862,1861490777,3959535514,2208864847,3865407125,2860443391,554225596,4024887317,3134823399,1255028335,3939764639,701922480,833598116,707863359,3325072549,901801634,1949809742,4238789250,3769684112,857069735,4048197636,1106762476,2131644621,389019281,1989006925,1129165039,3428076970,3839820950,2665723345,1276872810,3250069292,1182749029,2634345054,22885772,
+4201870471,4214112523,3009027431,2454901467,3912455696,1829980118,2592891351,930745505,1502483704,3951639571,3471714217,3073755489,3790464284,2050797895,2623135698,1430221810,410635796,1941911495,1407897079,1599843069,3742658365,2022103876,3397514159,3107898472,942421028,3261022371,376619805,3154912738,680216892,4282488077,963707304,148812556,3634160820,1687208278,2069988555,3580933682,1215585388,3494008760];b.U1=[0,185403662,370807324,488053522,741614648,658058550,976107044,824393514,1483229296,
+1399144830,1316117100,1165972322,1952214088,2136040774,1648787028,1766553434,2966458592,3151862254,2798289660,2915535858,2632234200,2548678102,2331944644,2180231114,3904428176,3820343710,4272081548,4121936770,3297574056,3481400742,3533106868,3650873274,2075868123,1890988757,1839278535,1722556617,1468997603,1552029421,1100287487,1251476721,601060267,685669029,902390199,1053059257,266819475,82468509,436028815,317738113,3412831035,3227951669,3715217703,3598495785,3881799427,3964831245,4047871263,4199060497,
+2466505547,2551114309,2233069911,2383738969,3208103795,3023752829,2838353263,2720062561,4134368941,4250959779,3765920945,3950669247,3663286933,3511966619,3426959497,3343796615,2919579357,2768779219,3089050817,3004310991,2184256229,2302415851,2485848313,2670068215,1186850381,1303441219,1353184337,1537932639,1787413109,1636092795,2090061929,2006899047,517320253,366520115,147831841,63092015,853641733,971801355,620468249,804688151,2379631990,2262516856,2613862250,2428589668,2715969870,2867814464,3086515026,
+3170202204,3586000134,3736275976,3282310938,3366526484,4186579262,4068943920,4019204898,3835509292,1023860118,906744984,723308426,538035844,288553390,440397984,120122290,203809468,1701746150,1852021992,1937016826,2021232372,1230680542,1113045200,1598071746,1414376140,4158319681,4242007375,3787521629,3939366739,3689859193,3504587127,3455375973,3338261355,2947720241,2764025151,3114841645,2997206819,2206629897,2290845959,2510066197,2660342555,1191869601,1275557295,1360031421,1511876531,1799248025,1613975959,
+2099530373,1982415755,526529745,342834655,158869197,41234371,861278441,945494503,625738485,776014843,2355222426,2272059028,2591802758,2440481928,2689987490,2874735276,3058688446,3175278768,3557400554,3741619940,3256061430,3374220536,4164795346,4080055004,3995576782,3844776128,1018251130,935087732,715871590,564550760,277177154,461924940,111112542,227702864,1691946762,1876166148,1925389590,2043548696,1223502642,1138762300,1593260334,1442459680,28809964,179999714,397248752,480281086,763608788,646887386,
+999926984,815048134,1507840668,1389550482,1338359936,1154009486,1978398372,2129067946,1676797112,1761406390,2976320012,3127509762,2809993232,2893025566,2639474228,2522752826,2336832552,2151953702,3910091388,3791801202,4279586912,4095236462,3309004356,3459673930,3542185048,3626794326,2047648055,1895934009,1813426987,1729870373,1446544655,1563790337,1076008723,1261411869,577038663,694804553,880737115,1064563285,240176511,90031217,407560035,323475053,3403428311,3251714265,3703972811,3620416197,3873969647,
+3991215329,4042393587,4227796733,2461301159,2579067049,2226023355,2409849525,3196083615,3045938321,2828685187,2744600205];b.U2=[0,218697227,437394454,387650077,874788908,959264295,775300154,591342129,1749577816,1698790995,1918528590,2136171077,1550600308,1365591679,1182684258,1266113129,3499155632,3717852859,3397581990,3347837613,3837057180,3921532567,4272342154,4088384129,3101200616,3050413795,2731183358,2948825845,2365368516,2180359887,2532226258,2615655129,3141262203,3056784752,2703869805,2887829862,
+2401231703,2182540636,2500722497,2550460746,3547573027,3732579624,3378624309,3295197502,3881276175,3932069124,4249194265,4031545618,1806384075,1721906624,1907959773,2091919830,1603208167,1384517100,1167925233,1217663482,65227667,250234264,435246981,351820174,935818175,986611124,768962473,551313826,1836494326,1618977789,2003087840,2054012907,1498584538,1415289809,1128303052,1313441735,88006062,137876389,523026872,304467891,823846274,1007938441,722008468,637663135,3185986886,2968470349,2817806672,2868731739,
+2311222634,2227927905,2479909244,2665047927,3584965918,3634836245,3485212936,3266653955,3783918898,3968011065,4221049124,4136703791,3595400845,3678697606,3428805275,3243664528,3798552225,4016062634,4168831671,4117912764,3188000469,3003910366,2752977603,2837320904,2317434617,2267558130,2419270383,2637835492,115185213,198481974,483363371,298222624,855223825,1072734234,686535175,635616268,1855317605,1671227502,1955068531,2039411832,1521606217,1471729730,1084473951,1303039060,3672916471,3622129660,3237895649,
+3455538154,4006115803,3821107152,4107953613,4191382470,2997105071,3215802276,2830511545,2780767154,2256537987,2341013384,2626819477,2442861470,175939911,125153100,275692881,493335386,1045993835,860985184,608863613,692292470,1647628575,1866325780,2015808777,1966064386,1443948851,1528424248,1275262245,1091304238,1641519756,1826526343,2076542618,1993115793,1442030240,1492823211,1340194486,1122545853,161475284,76997855,328070850,512030921,1035719416,817028339,665439982,715178213,2974251580,3159258167,
+2874500650,2791073825,2237874704,2288667675,2675006982,2457358349,3641641572,3557164143,3273463410,3457423481,3979031112,3760340035,4147719774,4197458005,3080383489,3130253834,2911432727,2692873756,2210321453,2394413606,2578237499,2493892144,3755121753,3537605202,3317727311,3368652356,3958809717,3875515006,4058298467,4243437160,1728711857,1778582202,2098729127,1880170156,1395537053,1579629206,1228679307,1144333952,256015593,38499042,357589247,408514292,996558021,913263310,561273043,746411736,211892090,
+27801969,380840812,465184103,948244310,898367837,580326208,798891339,1693009698,1776306473,2130402100,1945261375,1355644686,1573155077,1256153880,1205234963,3694254026,3510163905,3324234716,3408578007,3893751782,3843875309,4060607472,4279172603,3027871634,3111168409,2926295940,2741155215,2153619390,2371129781,2588902312,2537983395];b.U3=[0,151915277,303830554,454171927,607661108,758523705,908343854,1059729699,1215322216,1098797925,1517047410,1398949247,1816687708,1699118929,2119459398,2002413899,
+2430644432,2582559709,2197595850,2347937223,3034094820,3184957417,2797898494,2949284339,3633375416,3516851125,3398237858,3280139695,4238918796,4121350017,4004827798,3887782299,1004239803,852848822,700935585,550069932,534992783,384654466,234832277,82922136,1940595667,2057644254,1639396809,1756970692,1469255655,1587348714,1167006205,1283527408,2872822635,2721431654,3106397553,2955531900,2399397727,2249059410,2636116293,2484206152,3813380867,3930429454,4049044761,4166618644,3346251575,3464344634,3580864813,
+3697386016,1991112301,2141453664,1689378935,1841294202,1385552473,1536938324,1082772547,1233635150,1054715397,936617224,750893087,634368786,451248689,334203196,150574123,33005350,3863824061,4014165424,4098969767,4250885034,3262474889,3413860740,3496574099,3647436702,2923241173,2805143E3,3156281551,3039757250,2315596513,2198551020,2551784699,2434215926,1299615190,1148749531,1600822220,1449431233,1766760930,1614850799,2069018616,1918680309,84334014,201907891,387629988,504678569,557775242,674296455,
+857927568,976020637,3717610758,3566745099,3481938716,3330547729,4188934450,4037024319,3954313E3,3803974693,2514904430,2632478307,2281337716,2398386297,2984135002,3100656215,2747424576,2865517645,3963746266,3847224535,4267565504,4149471949,3363429358,3245854947,3664104948,3547055865,2754719666,2906629311,3056449960,3206787749,2148107142,2298972299,2450888092,2602278545,2090944266,1974422535,1857900816,1739807261,1486449470,1368875059,1250262308,1133213225,886120290,1038029935,650971512,801309301,283718486,
+434583643,49620300,201010753,3617229921,3734275948,3313932923,3431502198,4087521365,4205620056,3787372111,3903896898,2682967049,2531581700,2381758995,2230896926,3151165501,3000824624,2848910887,2696996138,1199193265,1316239292,1432758955,1550328230,1665273989,1783372680,1901987487,2018512274,252339417,100954068,488010435,337148366,724715757,574374880,959340279,807425530,2599158199,2481064634,2297436077,2180914336,3201576323,3084527246,2898803609,2781229204,3533461983,3683799762,3229634501,3381544136,
+4137973227,4289363686,3837289457,3988154620,168604007,50510442,403744637,287222896,775200083,658151006,1009290057,891715652,1115482383,1265820162,1348534037,1500443672,1715782971,1867173430,1951978273,2102843436,2704767500,2822336769,3005967382,3123013403,2232374840,2348899637,2534621218,2652719919,3913753188,3762891113,4217058430,4065673075,3447656016,3295741277,3747813450,3597472583,836225756,953795025,600562886,717608907,368043752,484568549,133427442,251526143,2041025204,1890163129,1807451310,
+1656065955,1570750080,1418835341,1334028442,1183687575];b.U4=[0,235605257,471210514,303896347,942421028,908540205,607792694,707863359,1884842056,2119394625,1817080410,1648721747,1215585388,1182749029,1415726718,1516850039,3769684112,4005289369,4238789250,4071475083,3634160820,3600279997,3297443494,3397514159,2431170776,2665723345,2365498058,2197139395,2831453436,2798617077,3033700078,3134823399,3682319163,3580933682,3345850665,3378949152,3814166303,3982262806,4282488077,4048197636,2871251827,2770919034,
+3073755489,3107898472,2467293015,2634345054,2400845125,2165502028,1003187115,901801634,668823993,701922480,65494927,233591430,535905693,301615252,1267925987,1167593194,1468340721,1502483704,1941911495,2108963534,1873358293,1638015196,2918608246,2751291519,2984277860,3219880557,2514114898,2614187099,2311865152,2277985865,3719169342,3550808119,3250069292,3484619301,3850514714,3951639571,4187237128,4154402305,1296481766,1129165039,1364240372,1599843069,1969916354,2069988555,1769771984,1735892697,1025430958,
+857069735,554225596,788775605,87220618,188345475,421854104,389019281,1989006925,2022103876,1788595295,1687208278,1319232105,1084944224,1387788411,1555887474,114671109,148812556,449029143,348694814,1056541217,821200680,586125363,753179962,2520581853,2553678804,2318081231,2216694214,2920362745,2686074864,2986813675,3154912738,3865407125,3899548572,4201870471,4101536142,3729349297,3494008760,3261022371,3428076970,1106762476,1341970405,1575076094,1407897079,2044456648,2010178497,1707996378,1808202195,
+833598116,1067761581,767142070,598910399,159614592,126389129,362126482,463376795,2705787516,2940995445,3176206446,3009027431,2573942360,2539664209,2239571018,2339776835,3508494900,3742658365,3439949862,3271718191,3912455696,3879230233,4112862210,4214112523,2592891351,2491903198,2258271173,2291234508,2728416755,2896910586,3199619041,2965193448,3939764639,3839820950,4139914125,4173930116,3539484091,3706925234,3471714217,3236244128,2050797895,1949809742,1714072405,1747035740,1108378979,1276872810,1577492337,
+1343066744,174381327,74437638,376619805,410635796,843640107,1011081250,777975609,542505520,3959535514,3792353939,4028083592,4263288961,3559752638,3659959991,3359349164,3325072549,2623135698,2454901467,2152711616,2386872521,2759191542,2860443391,3093557732,3060333805,212952842,45771267,279411992,514617361,882725678,982933031,680216892,645940277,2095648578,1927414347,1627329872,1861490777,1153776486,1255028335,1490231668,1457007741,930745505,963707304,728503987,627514298,257308805,22885772,322970263,
+491466654,1193436393,1227450848,1530167035,1430221810,2131644621,1896177092,1662536415,1829980118,3620396081,3653357880,3420243491,3319253802,4024887317,3790464284,4092654087,4261150478,2811409529,2845423984,3146034795,3046089570,2680062045,2444594516,2208864847,2376308550];return b}();window.AESData=e;w=function(){var b,a,c;a=function(a){return p.info(a)};b=function(a){return p.error(a)};c=function(a){return p.success(a)};a("Filter loading...");window.h=new x;if(!h.is_video||!h.has_cid)return b("Oops - this is not a valid Hulu video page...");
+h.bind("change:subtitles",function(){return a("Subtitles loaded successfully - parsing for profanity...")});h.bind("no:subtitles",function(){return b("This video does not have subtitles - we cannot filter...")});h.bind("change:blocklist",function(){var a;c("Success! Your video is filtered...");a=new y(h.blocklist);a.rebuild();a.startRebuildTesting();return window.muter=a});return h.load_subtitles()};window.HuluFilterLoaded?info("The filter is already running..."):"complete"===document.readyState?
+window.setTimeout(w,1E3):window.addEventListener&&window.addEventListener("load",w,!1);window.HuluFilterLoaded=!0;u=function(){function b(){var a;a="anus,arse,arsehole,ass,ass-hat,ass-pirate,assbag,assbandit,assbanger,assbite,assclown,asscock,asscracker,assface,assfuck,assfucker,assgoblin,asshat,asshead,asshole,asshopper,assjacker,asslick,asslicker,assmonkey,assmunch,assmuncher,assnigger,asspirate,assshit,assshole,asssucker,asswad,asswipe,bampot,bastard,beaner,beastial,beastiality,beastility,bestial,bestiality,bitch,bitchass,bitcher,bitchin,bitching,bitchtit,bitchy,blow job,blowjob,bollocks,bollox,boner,brotherfucker,bullshit,bullshit,bumblefuck,butt plug,butt-pirate,buttfucka,buttfucker,camel toe,carpetmuncher,chinc,chink,choad,chode,christ,clit,clitface,clitfuck,clusterfuck,cock,cockass,cockbite,cockburger,cockface,cockfucker,cockhead,cockjockey,cockknoker,cockmaster,cockmongler,cockmongruel,cockmonkey,cockmuncher,cocknose,cocknugget,cockshit,cocksmith,cocksmoker,cocksuck,cocksucked,cocksucker,cocksucking,cocksucks,coochie,coochy,coon,cooter,cracker,cum,cumbubble,cumdumpster,cumguzzler,cumjockey,cummer,cumming,cumshot,cumslut,cumtart,cunillingus,cunnie,cunnilingus,cunt,cuntface,cunthole,cuntlick,cuntlicker,cuntlicking,cuntrag,cuntslut,cyberfuc,cyberfuck,cyberfucked,cyberfucker,cyberfucking,dago,damn,deggo,dick,dickbag,dickbeaters,dickface,dickfuck,dickfucker,dickhead,dickhole,dickjuice,dickmilk,dickmonger,dickslap,dicksucker,dickwad,dickweasel,dickweed,dickwod,dike,dildo,dink,dipshit,doochbag,dookie,douche,douche-fag,douchebag,douchewaffle,dumass,dumb ass,dumbass,dumbfuck,dumbshit,dumshit,dyke,ejaculate,ejaculated,ejaculates,ejaculating,ejaculation,fag,fagbag,fagfucker,fagging,faggit,faggot,faggot,faggotcock,faggs,fagot,fags,fagtard,fart,farted,farting,farty,fatass,felatio,fellatio,fellatio,feltch,fingerfuck,fingerfucked,fingerfucker,fingerfucking,fingerfucks,fistfuck,fistfucked,fistfucker,fistfucking,flamer,fuck,fuckass,fuckbag,fuckboy,fuckbrain,fuckbutt,fucked,fucker,fuckersucker,fuckface,fuckhead,fuckhole,fuckin,fucking,fuckme,fucknut,fucknutt,fuckoff,fuckstick,fucktard,fuckup,fuckwad,fuckwit,fuckwitt,fudgepacker,fuk,gangbang,gangbanged,gay,gayass,gaybob,gaydo,gayfuck,gayfuckist,gaylord,gaysex,gaytard,gaywad,god,goddamn,goddamn,goddamnit,gooch,gook,gringo,guido,handjob,hardcoresex,heeb,hell,hell,homo,homodumbshit,honkey,horniest,horny,hotsex,humping,jackass,jap,jesus,jigaboo,jism,jiz,jizm,jizz,jungle bunny,junglebunny,kike,kock,kondum,kooch,kootch,kum,kumer,kummer,kumming,kums,kunilingus,kunt,kyke,lesbian,lesbo,lezzie,lust,lusting,mcfagget,mick,minge,mothafuck,mothafucka,mothafuckaz,mothafucked,mothafucker,mothafuckin,mothafucking,mothafucks,motherfuck,motherfucked,motherfucker,motherfuckin,motherfucking,muff,muffdiver,munging,negro,nigga,nigger,niglet,nut sack,nutsack,orgasim,orgasm,paki,panooch,pecker,peckerhead,penis,penisfucker,penispuffer,phonesex,phuk,phuked,phuking,phukked,phukking,phuks,phuq,pis,pises,pisin,pising,pisof,piss,pissed,pisser,pisses,pissflaps,pissin,pissing,pissoff,polesmoker,pollock,poon,poonani,poonany,poontang,porch monkey,porchmonkey,porn,porno,pornography,pornos,prick,punanny,punta,pusies,pussies,pussy,pussylicking,pusy,puto,queef,queer,queerbait,queerhole,renob,rimjob,ruski,sandnigger,schlong,scrote,shit,shitass,shitbag,shitbagger,shitbrain,shitbreath,shitcunt,shitdick,shited,shitface,shitfaced,shitfull,shithead,shithole,shithouse,shiting,shitspitter,shitstain,shitted,shitter,shittiest,shitting,shitty,shity,shiz,shiznit,skank,skeet,skullfuck,slut,slut,slutbag,sluts,smeg,smut,snatch,spic,spick,splooge,spunk,tard,testicle,thundercunt,tit,titfuck,tittyfuck,twat,twatlips,twatwaffle,unclefucker,va-j-j,vag,vagina,vjayjay,wank,wetback,whore,whorebag,whoreface,wop".split(",");
+a=a.map(function(a){return RegExp("\\b"+a+"\\b","gi")});this.rules=a.concat([/\bhard ons?/gi,/\bjerk off\b/gi,/\bpissed off\b/gi,/\bdamn/gi,/fuck/gi])}b.prototype.profane=function(a){var c,g,b,d;d=this.rules;g=0;for(b=d.length;g<b;g++)if(c=d[g],c.exec(a))return!0;return!1};return b}();window.Filter=u;x=function(){function b(){var a,c,b;this.subs_loaded=this.has_subtitles=this.has_cid=this.is_video=!1;this.subtitles=[];this.blocklist=[];this.events={};this.filter=new u;this.xml_decrypt_keys=[["4878B22E76379B55C962B18DDBC188D82299F8F52E3E698D0FAF29A40ED64B21",
+"WA7hap7AGUkevuth"],["246DB3463FC56FDBAD60148057CB9055A647C13C02C64A5ED4A68F81AE991BF5","vyf8PvpfXZPjc7B1"],["8CE8829F908C2DFAB8B3407A551CB58EBC19B07F535651A37EBC30DEC33F76A2","O3r9EAcyEeWlm5yV"],["852AEA267B737642F4AE37F5ADDF7BD93921B65FE0209E47217987468602F337","qZRiIfTjIGi3MuJA"],["76A9FDA209D4C9DCDFDDD909623D1937F665D0270F4D3F5CA81AD2731996792F","d9af949851afde8c"],["1F0FF021B7A04B96B4AB84CCFD7480DFA7A972C120554A25970F49B6BADD2F4F","tqo8cxuvpqc7irjw"],["3484509D6B0B4816A6CFACB117A7F3C842268DF89FCC414F821B291B84B0CA71",
+"SUxSFjNUavzKIWSh"],["B7F67F4B985240FAB70FF1911FCBB48170F2C86645C0491F9B45DACFC188113F","uBFEvpZ00HobdcEo"],["40A757F83B2348A7B5F7F41790FDFFA02F72FC8FFD844BA6B28FD5DFD8CFC82F","NnemTiVU0UA5jVl0"]];this.decrypt_keys=[];if(document.player){this.is_video=!0;a=document.player.attributes.flashvars.value;b=a.split("&");for(a=0;a<b.length;)c=b[a].split("="),"content_id"===c[0]&&(this.cid=unescape(c[1]),this.has_cid=!0,this.load_subtitles()),a++}}b.prototype.bind=function(a,c){var b;(b=this.events)[a]||(b[a]=
+[]);this.events[a].push(c);return this};b.prototype.unbind=function(a,c){if(!(0>B.call(this.events,a)))return this.events[a].splice(this.events[a].indexOf(c),1),this};b.prototype.trigger=function(){var a,c,b,j,d;c=arguments[0];a=2<=arguments.length?C.call(arguments,1):[];if(this.events[c]){d=this.events[c];b=0;for(j=d.length;b<j;b++)c=d[b],c.apply(this,a);return this}};b.prototype.load_subtitles=function(){var a;if(this.has_cid)return a=this,d.getXML("http://www.hulu.com/captions?content_id="+this.cid,
+function(c){return c&&c.transcripts&&c.transcripts.en?(this.has_subtitles=!0,this.subs_url=c.transcripts.en,d.getXML(this.subs_url,function(c){var b,d;if(c&&c.SAMI&&c.SAMI.BODY&&c.SAMI.BODY.SYNC){c=c.SAMI.BODY.SYNC;a.get_keys(c[0].content);for(b=0;b<c.length-1;)c[b].end=c[b+1].start,c[b].content=a.decode_subtitle(c[b].content),(d=c[b]).content||(d.content=""),c[b].content=c[b].content.trim(),a.subtitles.push(c[b]),b++;a.trigger("change:subtitles",a);a.subs_loaded=!0;return a.build_blocklist()}return a.trigger("no:subtitles")})):
+a.trigger("no:subtitles")})};b.prototype.build_blocklist=function(){var a,c,b,d;if(this.subs_loaded){this.blocklist=[];d=this.subtitles;c=0;for(b=d.length;c<b;c++)a=d[c],this.filter.profane(a.content)&&this.blocklist.push({start:parseInt(a.start),end:parseInt(a.end)});return this.trigger("change:blocklist",this.blocklist)}};b.prototype.get_keys=function(a){var c,b,j,e,i,f,n,o,l,m,s;b=d.packHStar(a);m=this.xml_decrypt_keys;s=[];o=0;for(l=m.length;o<l;o++){e=m[o];c=new r(d.packHStar(e[0]));f=c.decrypt(b);
+f=d.byteArrayToString(f);n=e[1]+"\x00";n=n.substr(0,16);c="";for(j=0;j<Math.ceil(a.length/32);)i=d.stringXor(n,f.substr(16*j,16)),n=b.substr(16*j,16),c=""+c+i,j++;j=/^<.+>.*<\/.+>/i;j.exec(c)?(this.decrypt_keys=[e[0],e[1]],s.push(this.aes=new r(d.packHStar(e[0])))):s.push(void 0)}return s};b.prototype.decode_subtitle=function(a){var c,b,j,e,i,f;if(this.aes){c=d.packHStar(a);e="";i=this.aes.decrypt(c);i=d.byteArrayToString(i);f=this.decrypt_keys[1]+"\x00";f=f.substr(0,16);for(b=0;b<Math.ceil(a.length/
+32);)j=d.stringXor(f,i.substr(16*b,16)),f=c.substr(16*b,16),e=""+e+j,b++;return e||""}};return b}();(function(b){var a,c,g;a=b.setTimeout;g=b.document;c=0;return b.jXHR=function(){var d,e,i,f,n,o,l,m;n=function(){try{return l.parentNode.removeChild(l)}catch(a){}};o=function(){n();return e(0)};d=function(a){try{return f.onerror.call(f,a,m)}catch(c){throw Error(a);}};i=function(){if(!this.readyState||!("complete"!==this.readyState&&"loaded"!==this.readyState))return this.onload=this.onreadystatechange=
+null,4!==f.readyState&&d("Script failed to load ["+m+"]."),n()};e=function(a,c){c=c||[];f.readyState=a;if("function"===typeof f.onreadystatechange)return f.onreadystatechange.apply(f,c)};l=m=void 0;f=null;f={onerror:null,onreadystatechange:null,readyState:0,open:function(a,g){var i;o();i="cb"+c++;(function(a){return b.jXHR[a]=function(){try{e.call(f,4,arguments)}catch(c){f.readyState=-1,d("Script failed to run ["+m+"].")}return b.jXHR[a]=null}})(i);m=g.replace(/=\?/,"=jXHR."+i);return e(1)},send:function(){a(function(){l=
+g.createElement("script");l.setAttribute("type","text/javascript");l.onload=l.onreadystatechange=function(){return i.call(l)};l.setAttribute("src",m);return g.getElementsByTagName("head")[0].appendChild(l)},0);return e(2)},setRequestHeader:function(){},getResponseHeader:function(){return""},getAllResponseHeaders:function(){return[]}};o();return f}})(window);y=function(){function b(a){this.blocklist=a;this.player=document.player;this.rebuildTimeout=null;this.lastTime=0}b.prototype.playerStateChanged=
+function(a){if(a)return console.log("Player state changed to playing"),this.rebuild(),this.startRebuildTesting();console.log("Player state changed to paused");this.stopRebuildTesting();return this.clear()};b.prototype.getCurrentTime=function(){return this.player.getCurrentTime()};b.prototype.rebuild=function(){var a,c,b,d,e,i,f;this.clear();b=0;i=this.blocklist;f=[];d=0;for(e=i.length;d<e;d++)a=i[d],c=this.getCurrentTime(),a=a.start-c,0<a&&5E3>=a?this.buildInterval(b):5E3<a&&this.buildTimeout(b,a-
+5E3),f.push(b++);return f};b.prototype.rebuildIfNeeded=function(a){var c;c=this.getCurrentTime();2E3<Math.abs(a-c)&&c===!this.lastTime&&this.rebuild();this.lastTime=c;return this.rebuildTimeout=setTimeout("window.muter.rebuildIfNeeded("+(c+5E3)+")",5E3)};b.prototype.clear=function(){var a,c,b,d,e;d=this.blocklist;e=[];c=0;for(b=d.length;c<b;c++)a=d[c],a.timeout&&clearTimeout(a.timeout),a.interval?e.push(clearInterval(a.interval)):e.push(void 0);return e};b.prototype.startRebuildTesting=function(){var a;
+a=this.getCurrentTime();return this.rebuildTimeout=setTimeout("window.muter.rebuildIfNeeded("+(a+5E3)+")",5E3)};b.prototype.stopRebuildTesting=function(){return clearTimeout(this.rebuildTimeout)};b.prototype.handleBlock=function(a){var c;c=this.getCurrentTime();if(c>=this.blocklist[a].start-100&&c<=this.blocklist[a].end)return this.mute();if(c>this.blocklist[a].end)return this.unmute(),clearInterval(this.blocklist[a].interval)};b.prototype.buildTimeout=function(a,c){return this.blocklist[a].timeout=
+setTimeout("window.muter.buildInterval("+a+");",c)};b.prototype.buildInterval=function(a){return this.blocklist[a].interval=setInterval("window.muter.handleBlock("+a+");",100)};b.prototype.mute=function(){return this.player.setVolume(0)};b.prototype.unmute=function(){return this.player.setVolume(1)};return b}();p=function(){function b(){}b.div=function(){var a;return document.getElementById("notification")||(a=document.createElement("div"),a.id="notification",document.body.appendChild(a),a)};b.buildCSS=
+function(a,c){var b;b=this.div();b.style.position="fixed";b.style.top="10px";b.style.left="10px";b.style.padding="10px";b.style["z-index"]="1000000";b.style.background=a+" none";b.style.border="4px solid "+c;return b.style["font-weight"]="bold"};b.msg=function(a){this.div().innerHTML=a;this.show();return this.timeout=setTimeout(this.hide,1E4)};b.info=function(a){this.buildCSS("#ddd","#000");return this.msg(a)};b.error=function(a){this.buildCSS("#fdd","#900");return this.msg(a)};b.success=function(a){this.buildCSS("#dfd",
+"#090");return this.msg(a)};b.hide=function(){return b.div().style.display="none"};b.show=function(){return b.div().style.display="block"};b.clear=function(){if(this.timeout)return clearTimeout(this.timeout)};return b}();window.Notification=p;d=function(){function b(){}b.byteArrayToString=function(a){var c,b;b="";for(c=0;c<a.length;)b+=String.fromCharCode(a[c]),c++;return b};b.stringXor=function(a,c){var b,d;d="";for(b=0;b<a.length;)d+=String.fromCharCode(a.charCodeAt(b)^c.charCodeAt(b)),b++;return d};
+b.B0=function(a){return a&255};b.B1=function(a){return a>>8&255};b.B2=function(a){return a>>16&255};b.B3=function(a){return a>>24&255};b.packBytes=function(a){var c,b,d,e;e=a.length;c=Array(e/4);if(a&&!(e%4)){for(d=b=0;d<e;)c[b++]=a[d]|a[d+1]<<8|a[d+2]<<16|a[d+3]<<24,d+=4;return c}};b.unpackBytes=function(a){var c,b,d,e;c=0;d=a.length;e=Array(4*d);for(b=0;b<d;)e[c++]=this.B0(a[b]),e[c++]=this.B1(a[b]),e[c++]=this.B2(a[b]),e[c++]=this.B3(a[b]),b++;return e};b.packHStar=function(a){var c,b,d;b="";for(c=
+0;c<a.length;)d=a[c],d=c+1>=a.length||"undefined"===typeof a[c+1]?d+"0":d+a[c+1],b+=String.fromCharCode(parseInt(d,16)),c+=2;return b};b.getXML=function(a,c){return this.ajax("http://query.yahooapis.com/v1/public/yql?q="+encodeURIComponent('select * from xml where url="'+a+'"')+"&format=json&callback=?",function(a){if(a.query)return c(a.query.results)})};b.getJSON=function(a,c){return this.ajax("http://query.yahooapis.com/v1/public/yql?q="+encodeURIComponent('select * from json where url="'+a+'"')+
+"&format=json&callback=?",function(a){if(a.query)return c(a.query.results)})};b.ajax=function(a,c){var b;b=new jXHR;b.onreadystatechange=function(a){if(4===b.readyState)return c(a)};b.open("GET",a);return b.send()};return b}();window.Util=d}).call(this);

0 comments on commit cc7669b

Please sign in to comment.