使用Javascript获取m3u8

本页将提供一些JS代码,在您的浏览器运行这些代码有助于更快的获取到m3u8链接用以下载。
为了方便使用,最好将下面的JS代码存为书签。

注意

  • 所有代码仅供学习,请勿用于任何违法途径
  • 所有代码通过360极速浏览器测试成功
  • 本页Javascript代码有的已经年久失修,均不保证正常使用
  • 欢迎到本页底部进行赞赏

腾讯视频

可直接将这个超链接拖入你的书签栏:腾讯视频

javascript:var a=prompt(PLAYER._DownloadMonitor.context.dataset.title,PLAYER._DownloadMonitor.context.dataset.ckc?PLAYER._DownloadMonitor.context.dataset.currentVideoUrl:PLAYER._DownloadMonitor.context.dataset.currentVideoUrl.replace(/:.*qq.com/g,"://defaultts.tc.qq.com/defaultts.tc.qq.com"));

腾讯视频(DRM内容)

可直接将这个超链接拖入你的书签栏:腾讯视频(DRM内容)

javascript:var m3u8Content=PLAYER._DownloadMonitor.context.dataset.playList[0].m3u8;var blob=new Blob([m3u8Content],{type:"text/plain"});var url=URL.createObjectURL(blob);var title=PLAYER._DownloadMonitor.context.dataset.title+"[v+a].m3u8";var aLink=document.createElement("a");aLink.href=url;aLink.download=title;aLink.style.display="none";var event;if(window.MouseEvent){event=new MouseEvent("click")}else{event=document.createEvent("MouseEvents");event.initMouseEvent("click",true,false,window,0,0,0,0,0,false,false,false,false,0,null)}aLink.dispatchEvent(event);

爱奇艺/愛奇藝视频

可直接将这个超链接拖入你的书签栏:爱奇艺视频

javascript:eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('3 C=D.E.F.8.G.8.H.I.1b.z.1c.J;C.K(7(j,k){9(j.1d){3 l="";9(j.A==1e){L{9(1f(1g(M))=="7"){}}N(e){3 m=v O();m.P("Q","R://1h.S.T/U/1i/1j.U",6);m.V=7(){3 a=5.W("1k");a.Y=m.Z;5.1l("1m")[0].1n(a)};m.11(B)}3 n=j.1o;3 o="#1p\\n";n.K(7(b,c){3 e=b.l;3 f="R://z.J.S.T/1q";3 h=f+e;L{3 t=D.E.F.8.G.8.H.I.1r.z.t;h=f+e+"%1s%1t%1u=1&t="+t+"&1v="+/1w=(\\d+)/g.12(e)[1]+"&1x=4&1y=0&1z="+M(t+/\\/(\\w{10,})/g.12(e)[1])}N(13){1A.1B(13)}3 i=v O();i.1C("1D/1E");i.P("Q",h,6);i.V=7(){3 a=1F.1G(i.Z);o+="#1H:0\\n"+a["l"]+"\\n"};i.11(B)});o+="#1I-X-1J";l=o}14{l=j.A}3 p=v 1K([l],{1L:"Y/1M"});3 q=1N.1O(p);3 r=(5.x.15("-")!=-1?5.x.1P(0,5.x.15("-")):5.x.16(/\\s/,""))+"y"+j.1Q+"y"+(j.1R==2?"1S":"1T")+"y"+5.1U("1V-1W-1X")[0].1Y.16(/:/,".")+"y"+(j.1Z/17/17).20(2)+"21.A";3 s=5.W("a");s.22=q;s.23=r;s.24.25="26";3 u;9(18.19){u=v 19("1a")}14{u=5.27("28");u.29("1a",2a,6,18,0,0,0,0,0,6,6,6,6,0,B)}s.2b(u)}})',62,136,'|||var||document|false|function|engine|if||||||||||||||||||||||new||title|_|data|m3u8|null|info|playerObject|_player|package|adproxy|movieinfo|current|video|forEach|try|cmd5x|catch|XMLHttpRequest|open|GET|https|iqiyi|com|js|onload|createElement||text|responseText||send|exec|err|else|indexOf|replace|1024|window|MouseEvent|click|originalData|program|_selected|undefined|typeof|eval|static|common|f6a3054843de4645b34d205a9f377d25|script|getElementsByTagName|head|appendChild|fs|EXTM3U|videos|boss|E2|9C|97domain|QY00001|qd_uid|ib|ptime|ibt|console|error|overrideMimeType|application|json|JSON|parse|EXTINF|EXT|ENDLIST|Blob|type|plain|URL|createObjectURL|substring|scrsz|code|H264|H265|getElementsByClassName|iqp|time|dur|innerText|vsize|toFixed|MB|href|download|style|display|none|createEvent|MouseEvents|initMouseEvent|true|dispatchEvent'.split('|'),0,{}))

爱奇艺/愛奇藝 杜比音轨

可直接将这个超链接拖入你的书签栏:爱奇艺杜比音轨

javascript:eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('3 B=A 1k();B.1j("1h","R://2I.M.C/1c/1Q/2b.1c",9);B.1b=7(){3 a=6.Q("19");a.1m=B.Z;6.V("U")[0].S(a)};B.18(z);7 G(a){3 b=6.2S.14("; ");1K(3 i=0;i<b.1Y;i++){3 c=b[i].14("=");J(a==c[0])K 1d(c[1])}K z}7 N(a,b){3 c=A 1U(\'(^|&)\'+a+\'=([^&]*)(&|$)\',\'i\');3 r=b.22(c);J(r!=z){K 1d(r[2])}K z}3 L=8.2T.15.O("1L.M.C")!=-1?"1M":"1O";3 F=1R.1S.1T.1a.1X.1a.F;3 P="/1Z/20?1e="+F.1e+"&24=26&27=28&D="+F.D+"&L="+L+"&2d=0&2e=1&2h="+G("2i")+"&2x=2y&2E=0&T="+G("2M")+"&2R=0&d=0&s=&1n=&1o=&1p=&1q=1&1r=0&1s=0&1t="+G("1u")+"&1v=1w&1x=0&1y=2&1z="+(A 2Z()).1B()+"&1C=a&1D=0&1E=1F&1G=1H&1I=1&1J=W&Y=1&Y=5";8.I="R://1N.11.M.C"+P+"&1P="+12(P);13(8.I);7 13(a){3 b=6.V("U")[0];3 c=6.Q("19");c.L=a;b.S(c)}7 W(e){3 x=e.H.1V.1W;3 y=0;x.17(7(m,n){J(m.21){3 o=m.23;3 p="#25\\n";o.17(7(b,c){3 f=b.l;y+=b.b;3 h="R://H.11.M.C/29";3 i=h+f;2a{3 t=e.H.2c.H.t;3 j=N("D",8.I);3 k=N("T",8.I);i=h+f+"&t="+t+"&D="+j+"&2f="+/2g=(\\d+)/g.1f(f)[1]+"&2j="+k+"&2k=4&2l="+12(t+/\\/(\\w{10,})/g.1f(f)[1])+"&2m=0"}2n(2o){}3 l=A 1k();l.2p("2q/2r");l.1j("1h",i,9);l.1b=7(){3 a=2s.2t(l.Z);p+="#2u:0\\n"+a["l"]+"\\n"};l.18(z)});p+="#2v-X-2w";1g=p;3 q=A 2z([1g],{2A:"1m/2B"});3 r=2C.2D(q);3 s=(6.E.O("-")!=-1?6.E.2F(0,6.E.O("-")):6.E.2G(/\\s/,""))+"2H"+(y/1i/1i).2J(2)+"2K.2L";3 u=6.Q("a");u.15=r;u.2N=s;u.2O.2P="2Q";3 v;J(8.1l){v=A 1l("16")}2U{v=6.2V("2W");v.2X("16",2Y,9,8,0,0,0,0,0,9,9,9,9,0,z)}u.1A(v)}})}',62,186,'|||var|||document|function|window|false||||||||||||||||||||||||||null|new|req1|com|vid|title|movieinfo|getCookie|data|dashUrl|if|return|src|iqiyi|getQueryString|indexOf|params|createElement|https|appendChild|k_uid|head|getElementsByTagName|NILAODA||ut|responseText||video|cmd5x|loadScript|split|href|click|forEach|send|script|engine|onload|js|unescape|tvid|exec|m3u8Content|GET|1024|open|XMLHttpRequest|MouseEvent|text|lid|cf|ct|k_tag|ost|ppt|dfp|__dfp|locale|zh_cn|k_err_retries|qd_v|tm|dispatchEvent|getTime|qdy|qds|k_ft1|1354994433|k_ft4|8196|k_ft5|callback|for|tw|01010031010010000000|cache|01010031010000000000|vf|common|playerObject|_player|package|RegExp|program|audio|adproxy|length|jp|dash|_selected|match|fs|bid|EXTM3U|300|abid|500|videos|try|f6a3054843de4645b34d205a9f377d25|boss_ts|vt|rs|QY00001|qd_uid|uid|P00003|su|ib|ibt|ptime|catch|err|overrideMimeType|application|json|JSON|parse|EXTINF|EXT|ENDLIST|ori|pcw|Blob|type|plain|URL|createObjectURL|ps|substring|replace|_dolby_|static|toFixed|MB|m3u8|QC005|download|style|display|none|pt|cookie|location|else|createEvent|MouseEvents|initMouseEvent|true|Date'.split('|'),0,{}))

爱奇艺/愛奇藝 交互式选择音轨

可直接将这个超链接拖入你的书签栏:爱奇艺音轨下载

javascript:eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('3 O=C 1e();O.1f("1g","R://2e.S.H/1h/2f/2g.1h",D);O.1i=6(){3 a=7.15("1j");a.1k=O.1l;7.1m("1n")[0].1o(a)};O.1p(I);6 J(a){3 b=7.2h.1q("; ");2i(3 i=0;i<b.2j;i++){3 c=b[i].1q("=");8(a==c[0])K 1r(c[1])}K I}6 16(a,b){3 c=C 2k(\'(^|&)\'+a+\'=([^&]*)(&|$)\',\'i\');3 r=b.2l(c);8(r!=I){K 1r(r[2])}K I}3 9="2m";3 17="R://1s.18.S.H";8(A.1t.19.T("2n.S.H")!=-1){9="2o"}1u 8(A.1t.19.T("1v.H")!=-1){17="R://1s-18.1v.H";9="1w"}3 L=2p.2q.2r.1x.2s.1x.L;6 1a(b,c,e,f){3 g="/1y/1z?U="+L.U+"&E=1A&M="+L.M+"&9="+9+"&1B=0&1C=1&1D="+J("2t")+"&1E=1F&1G=0&1b="+J("1H")+"&1I=0&d=0&s=&V="+b+"&W="+c+"&N="+(e=="1J"?"2":"1")+"&1K=1&1L=0&1M=0&1N="+J("1O")+"&2u=2v&1P=0&1Q=2&1R="+(C 1S()).1T()+"&1U=a&1V=0&1W=2w&1X=2x&1Y=1&2y="+f+"&1c=1&1c=5";8(9=="1w"){g=`/1y/1z?U=${L.U}&E=1A&M=${L.M}`+`&9=${9}&1B=0&1C=1&1D=0&1E=1F&1G=0&1b=${J("1H")}`+`&1I=0&d=0&s=&b=${b}&2z=2&e=${(e=="1J"?"2":"1")}&c=${c}`+`&1K=1&1L=0&1M=0&1N=${J("1O")}&1P=0&2A=&1Z=1`+`&2B=2C&2D=2&1Q=2&1R=${(C 1S()).1T()}&1U=a&1V=0&1W=2E&1X=2F&1Y=1&1c=0`}A.Y=17+g+"&2G="+20(g);21(A.Y)}6 21(a){3 b=7.1m("1n")[0];3 c=7.15("1j");c.9=a;b.1o(c)}8(z)z=2H;3 z=[];1a("","","","22");6 22(e){3 c=e.P.23.24;c.Z(6(a,b){F G={};G.E=a.E;G.B=a.B;G.N=a.N;G.W=a.W;G.V=a.V;z.2I(G)});z.2J((11,12)=>{K(12.B<11.B?1:(12.B==11.B?0:-1))+(12.E-11.E)});F p="";z.Z(6(a,b){p+=`\\r\\n[${b}]:{${a.B||""}Q${a.E}Q${a.N}}`});F 1d=2K("请选择音轨"+p);8(!1d)K;F 13=2L(1d);F 25=z[13].V;F 26=z[13].W;F 27=z[13].N;1a(25,26,27,"28")}6 28(e){3 x=e.P.23.24;3 y=0;x.Z(6(m,n){8(m.2M){3 o=m.2N;3 p="#2O\\n";o.Z(6(b,c){3 f=b.l;y+=b.b;3 h="R://P.18.S.H/2P";3 i=h+f;2Q{3 t=e.P.2R.P.t;3 j=16("M",A.Y);3 k=16("1b",A.Y);i=h+f+"&t="+t+"&M="+j+"&2S="+/2T=(\\d+)/g.29(f)[1]+"&1Z="+k+"&2U=4&2V="+20(t+/\\/(\\w{10,})/g.29(f)[1])+"&2W=0"}2X(2Y){}3 l=C 1e();l.2Z("30/31");l.1f("1g",i,D);l.1i=6(){3 a=32.33(l.1l);p+="#34:0\\n"+a["l"]+"\\n"};l.1p(I)});p+="#35-X-36";2a=p;3 q=C 37([2a],{38:"1k/39"});3 r=3a.3b(q);3 s=(7.14.T("-")!=-1?7.14.3c(0,7.14.T("-")):7.14.3d(/\\s/,""))+`Q${(m.B||"")}Q${m.N}Q`+(y/2b/2b).3e(2)+"3f.3g";3 u=7.15("a");u.19=r;u.3h=s;u.3i.3j="3k";3 v;8(A.2c){v=C 2c("2d")}1u{v=7.3l("3m");v.3n("2d",3o,D,A,0,0,0,0,0,D,D,D,D,0,I)}u.3p(v)}})}',62,212,'|||var|||function|document|if|src||||||||||||||||||||||||||audioTracks|window|name|new|false|bid|let|_track|com|null|getCookie|return|movieinfo|vid|cf|req1|data|_|https|iqiyi|indexOf|tvid|lid|ct||dashUrl|forEach||a1|a2|_select|title|createElement|getQueryString|host|video|href|doRequest|k_uid|ut|_input|XMLHttpRequest|open|GET|js|onload|script|text|responseText|getElementsByTagName|head|appendChild|send|split|unescape|cache|location|else|iq|01010031010014000000|engine|jp|dash|300|vt|rs|uid|ori|pcw|ps|QC005|pt|aac|k_tag|ost|ppt|dfp|__dfp|k_err_retries|qd_v|tm|Date|getTime|qdy|qds|k_ft1|k_ft4|k_ft5|su|cmd5x|loadScript|getAllTracks|program|audio|_lid|_ct|_cf|NILAODA|exec|m3u8Content|1024|MouseEvent|click|static|common|f6a3054843de4645b34d205a9f377d25|cookie|for|length|RegExp|match|01010031010000000000|tw|01010031010010000000|playerObject|_player|package|adproxy|P00003|locale|zh_cn|740531601218477|1162183859249156|callback|slid|up|applang|en_us|sver|141287244169348|34359746564|vf|undefined|push|sort|prompt|Number|_selected|fs|EXTM3U|videos|try|boss_ts|QY00001|qd_uid|ib|ibt|ptime|catch|err|overrideMimeType|application|json|JSON|parse|EXTINF|EXT|ENDLIST|Blob|type|plain|URL|createObjectURL|substring|replace|toFixed|MB|m3u8|download|style|display|none|createEvent|MouseEvents|initMouseEvent|true|dispatchEvent'.split('|'),0,{}))

爱奇艺/愛奇藝 4K H264

可直接将这个超链接拖入你的书签栏:爱奇艺4K_H264

javascript:eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('3 j=k 1e();j.1E("1J","S://14.y.x/N/1K/1W.N",7);j.11=6(){3 a=5.w("E");a.z=j.2i;5.L("F")[0].B(a)};j.1f(9);6 m(a){3 b=5.1P.G("; ");1Y(3 i=0;i<b.W;i++){3 c=b[i].G("=");q(a==c[0])t R(c[1])}t 9}6 1g(a,b){3 c=k 1C(\'(^|&)\'+a+\'=([^&]*)(&|$)\',\'i\');3 r=b.1G(c);q(r!=9){t R(r[2])}t 9}3 p=8.1V.P.u("1Z.y.x")!=-1?"2a":"2d";3 n=2j.2k.V.A.X.A.n;3 v="/Z/10?C="+n.C+"&12=13&D="+n.D+"&p="+p+"&15=0&16=1&17="+m("18")+"&19=1a&1b=0&1c="+m("1d")+"&2q=0&d=0&s=&1h=&1i=&1j=&1k=1&1l=0&1m=0&1n="+m("1o")+"&1p=1q&1r=0&1s=2&1t="+(k 1u()).1v()+"&1w=a&1x=0&1y=1z&1A=4&1B=H&1D=1";8.I="S://1F.J.y.x"+v+"&1H="+1I(v);K(8.I);6 K(a){3 b=5.L("F")[0];3 c=5.w("E");c.p=a;b.B(c)}6 H(e){3 i=e.1L.1M.J;i.1N(6(a,b){q(a.1O){3 c=a.M;3 d=k 1Q([c],{1R:"z/1S"});3 e=1T.1U(d);3 f=(5.o.u("-")!=-1?5.o.1X(0,5.o.u("-")):5.o.O(/\\s/,""))+"l"+a.20+"l"+(a.21==2?"22":"23")+"l"+5.24("25-26-27")[0].28.O(/:/,".")+"l"+(a.29/Q/Q).2b(2)+"2c.M";3 g=5.w("a");g.P=e;g.2e=f;g.2f.2g="2h";3 h;q(8.T){h=k T("U")}2l{h=5.2m("2n");h.2o("U",2p,7,8,0,0,0,0,0,7,7,7,7,0,9)}g.Y(h)}})}',62,151,'|||var||document|function|false|window|null||||||||||req1|new|_|getCookie|movieinfo|title|src|if|||return|indexOf|params|createElement|com|iqiyi|text|engine|appendChild|tvid|vid|script|head|split|NILAODA|dashUrl|video|loadScript|getElementsByTagName|m3u8|js|replace|href|1024|unescape|https|MouseEvent|click|package|length|adproxy|dispatchEvent|jp|dash|onload|bid|800|static|vt|rs|uid|P00003|ori|pcw|ps|k_uid|QC005|XMLHttpRequest|send|getQueryString|lid|cf|ct|k_tag|ost|ppt|dfp|__dfp|locale|zh_cn|k_err_retries|qd_v|tm|Date|getTime|qdy|qds|k_ft2|8196|k_ft4|callback|RegExp|ut|open|cache|match|vf|cmd5x|GET|common|data|program|forEach|_selected|cookie|Blob|type|plain|URL|createObjectURL|location|f6a3054843de4645b34d205a9f377d25|substring|for|tw|scrsz|code|H264|H265|getElementsByClassName|iqp|time|dur|innerText|vsize|03020031010010000000|toFixed|MB|03020031010000000000|download|style|display|none|responseText|playerObject|_player|else|createEvent|MouseEvents|initMouseEvent|true|pt'.split('|'),0,{}))

爱奇艺/愛奇藝 4K H265

可直接将这个超链接拖入你的书签栏:爱奇艺4K_H265

javascript:eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('3 9=j 1c();9.1C("1H","R://13.x.w/M/1I/1U.M",6);9.10=5(){3 a=4.v("D");a.y=9.2g;4.K("E")[0].A(a)};9.1e(8);5 l(a){3 b=4.1N.F("; ");1W(3 i=0;i<b.V;i++){3 c=b[i].F("=");p(a==c[0])q Q(c[1])}q 8}5 1f(a,b){3 c=j 1A(\'(^|&)\'+a+\'=([^&]*)(&|$)\',\'i\');3 r=b.1E(c);p(r!=8){q Q(r[2])}q 8}3 o=7.1T.O.t("1X.x.w")!=-1?"28":"2b";3 m=2h.2i.U.z.W.z.m;3 u="/Y/Z?B="+m.B+"&11=12&C="+m.C+"&o="+o+"&14=0&15=1&16="+l("17")+"&18=19&1a=0&1b="+l("2o")+"&1d=0&d=0&s=&1g=&1h=&1i=&1j=1&1k=0&1l=0&1m="+l("1n")+"&1o=1p&1q=0&1r=2&1s="+(j 1t()).1u()+"&1v=a&1w=0&1x=1y&1z=G&1B=1";7.H="R://1D.I.x.w"+u+"&1F="+1G(u);J(7.H);5 J(a){3 b=4.K("E")[0];3 c=4.v("D");c.o=a;b.A(c)}5 G(e){3 i=e.1J.1K.I;i.1L(5(a,b){p(a.1M){3 c=a.L;3 d=j 1O([c],{1P:"y/1Q"});3 e=1R.1S(d);3 f=(4.n.t("-")!=-1?4.n.1V(0,4.n.t("-")):4.n.N(/\\s/,""))+"k"+a.1Y+"k"+(a.1Z==2?"20":"21")+"k"+4.22("23-24-25")[0].26.N(/:/,".")+"k"+(a.27/P/P).29(2)+"2a.L";3 g=4.v("a");g.O=e;g.2c=f;g.2d.2e="2f";3 h;p(7.S){h=j S("T")}2j{h=4.2k("2l");h.2m("T",2n,6,7,0,0,0,0,0,6,6,6,6,0,8)}g.X(h)}})}',62,149,'|||var|document|function|false|window|null|req1||||||||||new|_|getCookie|movieinfo|title|src|if|return|||indexOf|params|createElement|com|iqiyi|text|engine|appendChild|tvid|vid|script|head|split|NILAODA|dashUrl|video|loadScript|getElementsByTagName|m3u8|js|replace|href|1024|unescape|https|MouseEvent|click|package|length|adproxy|dispatchEvent|jp|dash|onload|bid|800|static|vt|rs|uid|P00003|ori|pcw|ps|k_uid|XMLHttpRequest|pt|send|getQueryString|lid|cf|ct|k_tag|ost|ppt|dfp|__dfp|locale|zh_cn|k_err_retries|qd_v|tm|Date|getTime|qdy|qds|k_ft2|8191|callback|RegExp|ut|open|cache|match|vf|cmd5x|GET|common|data|program|forEach|_selected|cookie|Blob|type|plain|URL|createObjectURL|location|f6a3054843de4645b34d205a9f377d25|substring|for|tw|scrsz|code|H264|H265|getElementsByClassName|iqp|time|dur|innerText|vsize|03020031010010000000|toFixed|MB|03020031010000000000|download|style|display|none|responseText|playerObject|_player|else|createEvent|MouseEvents|initMouseEvent|true|QC005'.split('|'),0,{}))

爱奇艺/愛奇藝 1080P H265 (低码)

可直接将这个超链接拖入你的书签栏:爱奇艺1080P_H265(低码)

javascript:eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('3 9=j 1c();9.1C("1H","R://13.x.w/M/1I/1U.M",6);9.10=5(){3 a=4.v("D");a.y=9.2g;4.K("E")[0].A(a)};9.1e(8);5 l(a){3 b=4.1N.F("; ");1W(3 i=0;i<b.V;i++){3 c=b[i].F("=");p(a==c[0])q Q(c[1])}q 8}5 1f(a,b){3 c=j 1A(\'(^|&)\'+a+\'=([^&]*)(&|$)\',\'i\');3 r=b.1E(c);p(r!=8){q Q(r[2])}q 8}3 o=7.1T.O.t("1X.x.w")!=-1?"28":"2b";3 m=2h.2i.U.z.W.z.m;3 u="/Y/Z?B="+m.B+"&11=12&C="+m.C+"&o="+o+"&14=0&15=1&16="+l("17")+"&18=19&1a=0&1b="+l("2o")+"&1d=0&d=0&s=&1g=&1h=&1i=&1j=1&1k=0&1l=0&1m="+l("1n")+"&1o=1p&1q=0&1r=2&1s="+(j 1t()).1u()+"&1v=a&1w=0&1x=1y&1z=G&1B=1";7.H="R://1D.I.x.w"+u+"&1F="+1G(u);J(7.H);5 J(a){3 b=4.K("E")[0];3 c=4.v("D");c.o=a;b.A(c)}5 G(e){3 i=e.1J.1K.I;i.1L(5(a,b){p(a.1M){3 c=a.L;3 d=j 1O([c],{1P:"y/1Q"});3 e=1R.1S(d);3 f=(4.n.t("-")!=-1?4.n.1V(0,4.n.t("-")):4.n.N(/\\s/,""))+"k"+a.1Y+"k"+(a.1Z==2?"20":"21")+"k"+4.22("23-24-25")[0].26.N(/:/,".")+"k"+(a.27/P/P).29(2)+"2a.L";3 g=4.v("a");g.O=e;g.2c=f;g.2d.2e="2f";3 h;p(7.S){h=j S("T")}2j{h=4.2k("2l");h.2m("T",2n,6,7,0,0,0,0,0,6,6,6,6,0,8)}g.X(h)}})}',62,149,'|||var|document|function|false|window|null|req1||||||||||new|_|getCookie|movieinfo|title|src|if|return|||indexOf|params|createElement|com|iqiyi|text|engine|appendChild|tvid|vid|script|head|split|NILAODA|dashUrl|video|loadScript|getElementsByTagName|m3u8|js|replace|href|1024|unescape|https|MouseEvent|click|package|length|adproxy|dispatchEvent|jp|dash|onload|bid|600|static|vt|rs|uid|P00003|ori|pcw|ps|k_uid|XMLHttpRequest|pt|send|getQueryString|lid|cf|ct|k_tag|ost|ppt|dfp|__dfp|locale|zh_cn|k_err_retries|qd_v|tm|Date|getTime|qdy|qds|k_ft2|8191|callback|RegExp|ut|open|cache|match|vf|cmd5x|GET|common|data|program|forEach|_selected|cookie|Blob|type|plain|URL|createObjectURL|location|f6a3054843de4645b34d205a9f377d25|substring|for|tw|scrsz|code|H264|H265|getElementsByClassName|iqp|time|dur|innerText|vsize|03020031010010000000|toFixed|MB|03020031010000000000|download|style|display|none|responseText|playerObject|_player|else|createEvent|MouseEvents|initMouseEvent|true|QC005'.split('|'),0,{}))

爱奇艺/愛奇藝 1080P H265 (中码)

可直接将这个超链接拖入你的书签栏:爱奇艺1080P_H265(中码)

javascript:eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('3 9=j 1c();9.1C("1H","R://13.x.w/M/1I/1U.M",6);9.10=5(){3 a=4.v("D");a.y=9.2g;4.K("E")[0].A(a)};9.1e(8);5 l(a){3 b=4.1N.F("; ");1W(3 i=0;i<b.V;i++){3 c=b[i].F("=");p(a==c[0])q Q(c[1])}q 8}5 1f(a,b){3 c=j 1A(\'(^|&)\'+a+\'=([^&]*)(&|$)\',\'i\');3 r=b.1E(c);p(r!=8){q Q(r[2])}q 8}3 o=7.1T.O.t("1X.x.w")!=-1?"28":"2b";3 m=2h.2i.U.z.W.z.m;3 u="/Y/Z?B="+m.B+"&11=12&C="+m.C+"&o="+o+"&14=0&15=1&16="+l("17")+"&18=19&1a=0&1b="+l("2o")+"&1d=0&d=0&s=&1g=&1h=&1i=&1j=1&1k=0&1l=0&1m="+l("1n")+"&1o=1p&1q=0&1r=2&1s="+(j 1t()).1u()+"&1v=a&1w=0&1x=1y&1z=G&1B=1";7.H="R://1D.I.x.w"+u+"&1F="+1G(u);J(7.H);5 J(a){3 b=4.K("E")[0];3 c=4.v("D");c.o=a;b.A(c)}5 G(e){3 i=e.1J.1K.I;i.1L(5(a,b){p(a.1M){3 c=a.L;3 d=j 1O([c],{1P:"y/1Q"});3 e=1R.1S(d);3 f=(4.n.t("-")!=-1?4.n.1V(0,4.n.t("-")):4.n.N(/\\s/,""))+"k"+a.1Y+"k"+(a.1Z==2?"20":"21")+"k"+4.22("23-24-25")[0].26.N(/:/,".")+"k"+(a.27/P/P).29(2)+"2a.L";3 g=4.v("a");g.O=e;g.2c=f;g.2d.2e="2f";3 h;p(7.S){h=j S("T")}2j{h=4.2k("2l");h.2m("T",2n,6,7,0,0,0,0,0,6,6,6,6,0,8)}g.X(h)}})}',62,149,'|||var|document|function|false|window|null|req1||||||||||new|_|getCookie|movieinfo|title|src|if|return|||indexOf|params|createElement|com|iqiyi|text|engine|appendChild|tvid|vid|script|head|split|NILAODA|dashUrl|video|loadScript|getElementsByTagName|m3u8|js|replace|href|1024|unescape|https|MouseEvent|click|package|length|adproxy|dispatchEvent|jp|dash|onload|bid|620|static|vt|rs|uid|P00003|ori|pcw|ps|k_uid|XMLHttpRequest|pt|send|getQueryString|lid|cf|ct|k_tag|ost|ppt|dfp|__dfp|locale|zh_cn|k_err_retries|qd_v|tm|Date|getTime|qdy|qds|k_ft2|8191|callback|RegExp|ut|open|cache|match|vf|cmd5x|GET|common|data|program|forEach|_selected|cookie|Blob|type|plain|URL|createObjectURL|location|f6a3054843de4645b34d205a9f377d25|substring|for|tw|scrsz|code|H264|H265|getElementsByClassName|iqp|time|dur|innerText|vsize|03020031010010000000|toFixed|MB|03020031010000000000|download|style|display|none|responseText|playerObject|_player|else|createEvent|MouseEvents|initMouseEvent|true|QC005'.split('|'),0,{}))

爱奇艺/愛奇藝 1080P_高帧率

可直接将这个超链接拖入你的书签栏:爱奇艺1080P_高帧率

javascript:eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('3 7=8 U();7.V("W","y://X.t.u/z/Y/Z.z",5);7.10=6(){3 a=4.v("A");a.B=7.11;4.C("D")[0].E(a)};7.12(9);6 k(a){3 b=4.13.F("; ");14(3 i=0;i<b.15;i++){3 c=b[i].F("=");l(a==c[0])m G(c[1])}m 9}6 16(a,b){3 c=8 17(\'(^|&)\'+a+\'=([^&]*)(&|$)\',\'i\');3 r=b.18(c);l(r!=9){m G(r[2])}m 9}3 n=j.19.H.w("1a.t.u")!=-1?"1b":"1c";3 o=1d.1e.1f.I.1g.I.o;3 x="/1h/1i?J="+o.J+"&1j=1k&K="+o.K+"&n="+n+"&1l=0&1m=1&1n="+k("1o")+"&1p=1q&1r=0&1s="+k("1t")+"&1u=0&d=0&s=&1v=&1w=&1x=&1y=1&1z=0&1A=0&1B="+k("1C")+"&1D=1E&1F=0&1G=2&1H="+(8 1I()).1J()+"&1K=a&1L=0&1M=1N&1O=L&1P=1";j.M="y://1Q.N.t.u"+x+"&1R="+1S(x);O(j.M);6 O(a){3 b=4.C("D")[0];3 c=4.v("A");c.n=a;b.E(c)}6 L(e){3 i=e.1T.1U.N;i.1V(6(a,b){l(a.1W){3 c=a.P;3 d=8 1X([c],{1Y:"B/1Z"});3 e=20.21(d);3 f=(4.p.w("-")!=-1?4.p.22(0,4.p.w("-")):4.p.Q(/\\s/,""))+"q"+a.23+"q"+(a.24==2?"25":"26")+"q"+4.27("28-29-2a")[0].2b.Q(/:/,".")+"q"+(a.2c/R/R).2d(2)+"2e.P";3 g=4.v("a");g.H=e;g.2f=f;g.2g.2h="2i";3 h;l(j.S){h=8 S("T")}2j{h=4.2k("2l");h.2m("T",2n,5,j,0,0,0,0,0,5,5,5,5,0,9)}g.2o(h)}})}',62,149,'|||var|document|false|function|req1|new|null||||||||||window|getCookie|if|return|src|movieinfo|title|_|||iqiyi|com|createElement|indexOf|params|https|js|script|text|getElementsByTagName|head|appendChild|split|unescape|href|engine|tvid|vid|NILAODA|dashUrl|video|loadScript|m3u8|replace|1024|MouseEvent|click|XMLHttpRequest|open|GET|static|common|f6a3054843de4645b34d205a9f377d25|onload|responseText|send|cookie|for|length|getQueryString|RegExp|match|location|tw|03020031010010000000|03020031010000000000|playerObject|_player|package|adproxy|jp|dash|bid|610|vt|rs|uid|P00003|ori|pcw|ps|k_uid|QC005|pt|lid|cf|ct|k_tag|ost|ppt|dfp|__dfp|locale|zh_cn|k_err_retries|qd_v|tm|Date|getTime|qdy|qds|k_ft1|706504940322820|callback|ut|cache|vf|cmd5x|data|program|forEach|_selected|Blob|type|plain|URL|createObjectURL|substring|scrsz|code|H264|H265|getElementsByClassName|iqp|time|dur|innerText|vsize|toFixed|MB|download|style|display|none|else|createEvent|MouseEvents|initMouseEvent|true|dispatchEvent'.split('|'),0,{}))

芒果TV

可直接将这个超链接拖入你的书签栏:芒果TV

javascript:try{prompt(MGTVPlayer.VIDEOINFO.title,MGTVPlayer.player.cms.sourceInfo.info)}catch(err){var blob=new Blob([MGTVPlayer.player.cms.fakeMasterPlaylist],{type:"text/plain"});var url=URL.createObjectURL(blob);var title=MGTVPlayer.VIDEOINFO.title+".m3u8";var aLink=document.createElement("a");aLink.href=url;aLink.download=title;aLink.style.display="none";var event;if(window.MouseEvent){event=new MouseEvent("click")}else{event=document.createEvent("MouseEvents");event.initMouseEvent("click",true,false,window,0,0,0,0,0,false,false,false,false,0,null)}aLink.dispatchEvent(event)}

搜狐视频

可直接将这个超链接拖入你的书签栏:搜狐视频

javascript:var dur=document.getElementsByClassName("x-time-duration")[0].innerText;var ti=document.getElementById("vinfobox").getElementsByTagName("h2")[0].innerText;var dfn=document.getElementsByClassName("x-resolution-btn")[0].innerText;var content="#EXTM3U\n";_player.p2pkernel.dispatchUrlArr.forEach(function(item,index){var url=item["0"];$.ajaxSettings.async=false;$.get(url,function(data,status){content+="#EXTINF:0\n"+data["servers"][0]["url"]+"\n"});$.ajaxSettings.async=true});content+="#EXT-X-ENDLIST";var blob=new Blob([content],{type:"text/plain"});var url=URL.createObjectURL(blob);var aLink=document.createElement("a");aLink.href=url;aLink.download=ti+"_"+dfn+"_"+dur.replace(/:/,".")+".m3u8";/*nilaoda*/aLink.style.display="none";var event;if(window.MouseEvent){event=new MouseEvent("click")}else{event=document.createEvent("MouseEvents");event.initMouseEvent("click",true,false,window,0,0,0,0,0,false,false,false,false,0,null)}aLink.dispatchEvent(event)

爱奇艺字幕下载

可直接将这个超链接拖入你的书签栏:爱奇艺字幕

javascript:var tvid=playerObject._player.package.engine.adproxy.engine.movieinfo.tvid;var oData=playerObject._player.package.engine.adproxy.engine.episode.EpisodeStore[tvid].movieInfo.originalData;var prefix=oData.data.dstl;var subUrl=oData.data.program.stl[0].webvtt;var title=(document.title.indexOf("-")!=-1?document.title.substring(0,document.title.indexOf("-")):document.title.replace(/\s/,""));prompt(title+" [webvtt]",prefix+subUrl);

Wetv 字幕下载

可直接将这个超链接拖入你的书签栏:Wetv字幕

javascript:eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('!6(){N{j(O(P(4))=="6"){}}Q(e){5 c=k l();c.8("m","o://p.q.r/4/3.0.1/R/S/4.s",t);c.u=6(){5 a=2.v("T");a.U="w/s";a.x=c.y;2.z("A")[0].B(a)};c.C(D);5 d=k l();d.8("m","o://p.q.r/4/3.0.1/4.V.W",t);d.u=6(){5 a=2.v("X");a.w=d.y;2.z("A")[0].B(a)};d.C(D)};5 f="";j(2.7("E-F-G H 9")[0])f=2.7("E-F-G H 9")[0].7("Y Z")[0].x;10 f=2.7("11 12 9")[0].I;5 g="";13.14.15.16.17.18.19(6(a,b){g+=\'<a 1a="\'+a.1b+\'" 1c="\'+f+\'h\'+a.J+"h"+a.K+"h"+a.L+\'.1d\'+\'">\'+a.J+"  "+a.K+"  "+a.L+\'</a>\\n<i>\'});4.8({I:"%E5%AD%97%E5%B9%95%E4%B8%8B%E8%BD%BD",1e:"<M>"+f+"</M><i><i>"+g,1f:1g});g=""}();',62,79,'||document||layer|var|function|getElementsByClassName|open|video_current||||||||_|br|if|new|XMLHttpRequest|GET||https|cdn|bootcss|com|css|false|onload|createElement|text|innerText|responseText|getElementsByTagName|head|appendChild|send|null|video|mov|item|flex|title|langName|id|lang|strong|try|typeof|eval|catch|skin|default|style|type|min|js|script|video_title|nowrapTwo|else|video_episode|flex_center|PLAYER|_DownloadMonitor|context|dataset|subtitleList|list|forEach|href|url|download|srt|content|maxWidth|260'.split('|'),0,{}))

VIKI

可直接将这个超链接拖入你的书签栏:VIKI下载

javascript:eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('!6(){U{V(X(Y(4))=="6"){}}Z(e){5 c=l m();c.h("n","o://p.q.r/4/3.0.1/10/11/4.t",u);c.v=6(){5 a=7.w("8");a.12="x/t";a.y=c.z;13.14("15",a.y);7.A("B")[0].C(a)};c.D(E);5 d=l m();d.h("n","o://p.q.r/4/3.0.1/4.16.17",u);d.v=6(){5 a=7.w("18");a.x=d.z;7.A("B")[0].C(a)};d.D(E)};5 f=7.F.i(/\\W-.*/,\'\');5 g="";G.9.9.H.I.J.K.19.1a(6(a,b){g+=\'<a 8="j:#L" M="\'+a.N+\'" O="\'+f+"1b"+a.P.i(/\\W<s.*/,\'\')+\'.1c\'+\'">\'+a.P.i(/\\W<s.*\\\\>(.*)</,\'$1\')+(b%2==0?\'&k;&k;&k;\':\'\')+\'</a>   \'+(b%2!=0?\'<Q>\':\'\')});4.h({F:"1d下载",1e:"<R 8=\'j:1f\'><S>"+f+"</S>"+\'&1g;[<a 8="j:#L" M="\'+G.9.9.H.I.J.K.1h[1].N+\'" O="\'+f+\'.T\'+\'">T地址</a>]<Q><1i>\'+g+"</R>",1j:1k});g=""}();',62,83,'||||layer|var|function|document|style|player||||||||open|replace|color|emsp|new|XMLHttpRequest|GET|https|cdn|bootcss|com||css|false|onload|createElement|text|innerText|responseText|getElementsByTagName|head|appendChild|send|null|title|html5player|player_|customSubtitle|options_|playerOptions|2e8ded|href|src|download|label|br|div|strong|m3u8|try|if||typeof|eval|catch|skin|default|type|localStorage|setItem|layerCSS|min|js|script|sortedSubtitles|forEach|_|vtt|VIKI|content|black|nbsp|sources|hr|maxWidth|370'.split('|'),0,{}))

OnDemandChina Master m3u8

适用于 OnDemandChina(Old)

可直接将这个超链接拖入你的书签栏:OnDemandChina下载

javascript:var url=this.myPlayer.dash.playlists.srcUrl;var title=(document.title.indexOf("-")!=-1?document.title.substring(0,document.title.indexOf("-")):document.title.replace(/\s/,""));prompt(title+" [master]",url);

OnDemandChina 字幕 m3u8

可直接将这个超链接拖入你的书签栏:OnDemandChina字幕

javascript:var url;var subs=this.myPlayer.dash.playlists.master.mediaGroups.SUBTITLES["subtitles-0"];var title=(document.title.indexOf("-")!=-1?document.title.substring(0,document.title.indexOf("-")):document.title.replace(/\s/,""));for(var p in subs){if(subs[p]["default"]) url=subs[p]["uri"];};if(url)prompt(title+" [default subtitle]",url);

可直接将这个超链接拖入你的书签栏:NAVER TV m3u8

javascript:prompt(document.title,WrapPlayer.rmcPlayer.core.model.currentVideo.source);

独播库

可直接将这个超链接拖入你的书签栏:独播库 m3u8

javascript:console.log(prompt($(".title")[0].innerText, player_data.url))

NFmovies

可直接将这个超链接拖入你的书签栏:NFmovies m3u8

javascript:console.log(prompt("m3u8",now))

cokemv

可直接将这个超链接拖入你的书签栏:ddyunp m3u8

javascript:if(player_data.url.startsWith("http")){console.log(prompt("m3u8",player_data.url.replace('&','?')));}else{console.log(prompt("m3u8","https://hls.90mm.me/ddyun/"+/(\w{20,})/g.exec(player_data.url)[1]+"/1/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/playlist.m3u8"));}

Iq 全集tvid

可直接将这个超链接拖入你的书签栏:Iq 全集tvid

javascript:window.tvids=[];window.__NEXT_DATA__.props.initialState.play.cachePlayList[1].forEach(function(info){window.tvids[window.tvids.length]=info.tvId});console.log(prompt("tvids",window.tvids.join(',')));

Iq 全集网址

可直接将这个超链接拖入你的书签栏:Iq 全集网址

javascript:window.tvids=[];window.__NEXT_DATA__.props.initialState.play.cachePlayList[1].forEach(function(info){window.tvids[window.tvids.length]=info.qipuIdStr});console.log(prompt("tvids","https://www.iq.com/play/"+window.tvids.join('\r\nhttps://www.iq.com/play/')));

 

 收藏 (0) 赞助

赞助超卓网

支付宝

微信

除特别注明外,本站所有文章均基于CC-BY-NC-SA 4.0原创,转载请注明出处。
文章名称:《使用Javascript获取m3u8》
文章链接:http://chaozhuowang.com/2103.html
分享到: 生成海报
  以上文章内容包括但不限于(文字、图片、软件、程序等)部分来自网络搜集并进行整理,本网站提供的内容仅用于个人学习、研究使用,我们不能保证内容的正确性与完整性。通过使用本站内容随之而来的风险与本站无关,访问者可将本网站提供的内容或服务用于个人学习、研究等,以及其他非商业性或非盈利性用途,但同时应遵守著作权法及其他相关法律的规定,不得侵犯本网站及相关权利人的合法权利。

超卓网,免费分享资源的网站

9.9包邮超卓驿站
切换注册

登录

点击按钮进行验证

忘记密码 ?

您也可以使用第三方帐号快捷登录

切换登录

注册

我们将发送一封验证邮件至你的邮箱, 请正确填写以完成账号注册和激活