tvp i ipla.txt

(15 KB) Pobierz
javascript:void(function(){tooltip='var tooltip=({'+'show:function(evt,el_id,el_tp){'+'el_id.setAttribute("onmousemove","tooltip.move(event);");'+'tt=document.createElement("div");'+'tt.id="tooltip";'+'tt.className="tooltip";'+'tt.style.left=evt.clientX+5+"px";'+'tt.style.top=evt.clientY+-40+"px";'+'tt.innerHTML=el_tp;'+'document.body.appendChild(tt);'+'document.addEventListener("mousedown",function(event){'+'tooltip.hide();'+'this.removeEventListener("mousedown",arguments.callee,true);'+'},true);'+'},'+'hide:function(){'+'if(document.getElementById("tooltip")){'+'var tt=document.getElementById("tooltip");'+'tt.parentNode.removeChild(tt);'+'}'+'},'+'move:function(evt){'+'if(document.getElementById("tooltip")){'+'var nn=document.getElementById("tooltip");'+'nn.style.left=evt.clientX+5+"px";'+'nn.style.top=evt.clientY+-40+"px";'+'}'+'}'+'});';css="body{background:#abc;font-family:sans-serif;font-size:22px;background-image:linear-gradient(top left,#70FFE2 10%,#7FA0EF 90%);background-image:-webkit-linear-gradient(top left,#70FFE2 10%,#7FA0EF 90%);background-image:-moz-linear-gradient(top left,#70FFE2 10%,#7FA0EF 90%);}pre{font-family:sans-serif;}.paragraf:after{content:'\\A\\A';white-space:pre;}#tooltip{position:fixed;display:block;background:transparent;white-space:nowrap;background-color:rgba(0,0,0,0.75);border:3px solid #ccc;border-color:black;box-shadow:5px 5px 8px #818181;overflow:hidden;border-radius:5px;font-family:Arial;font-size:12px;font-weight:bold;z-index:2147483648;text-decoration:none;color:Red;padding:5px 5px;}.button{position:relative;border:1px solid #ccc;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNTBweCIgaGVpZ2h0PSI1MHB4IiA+DQo8ZGVmcz4gDQo8bGluZWFyR3JhZGllbnQgaWQ9ImxncmFkIiB4MT0iMCUiIHkxPSIxMDAlIiB4Mj0iMTAwJSIgeTI9IjAlIiA+IA0KPHN0b3Agb2Zmc2V0PSIwJSIgc3R5bGU9InN0b3AtY29sb3I6cmdiKDYsNTMsOTQpO3N0b3Atb3BhY2l0eTowLjI1IiAvPg0KPHN0b3Agb2Zmc2V0PSIxMDAlIiBzdHlsZT0ic3RvcC1jb2xvcjpyZ2IoMCwyNTUsMjU1KTtzdG9wLW9wYWNpdHk6MSIgLz4NCjwvbGluZWFyR3JhZGllbnQ+IA0KPC9kZWZzPg0KPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNsZ3JhZCkiLz4NCjwvc3ZnPg==);border-radius:7px 0 7px 0;box-shadow:0 3px 5px #444,0px 0px 1px #444 inset;font-family:Arial;font-size:12px;font-weight:bold;z-index:2;text-decoration:none;color:Blue;padding:2px 20px;margin-left:0.5%;float:left;}.button_hover{position:relative;border:1px solid #ccc;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNTBweCIgaGVpZ2h0PSI1MHB4IiA+DQo8ZGVmcz4gDQo8bGluZWFyR3JhZGllbnQgaWQ9ImxncmFkIiB4MT0iMCUiIHkxPSIxMDAlIiB4Mj0iMTAwJSIgeTI9IjAlIiA+IA0KPHN0b3Agb2Zmc2V0PSIwJSIgc3R5bGU9InN0b3AtY29sb3I6cmdiKDAsMjU1LDI1NSk7c3RvcC1vcGFjaXR5OjEiIC8+DQo8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0eWxlPSJzdG9wLWNvbG9yOnJnYig2LDUzLDk0KTtzdG9wLW9wYWNpdHk6MC4yNSIgLz4NCjwvbGluZWFyR3JhZGllbnQ+IA0KPC9kZWZzPg0KPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNsZ3JhZCkiLz4NCjwvc3ZnPg==);border-radius:0 5px 0 5px;box-shadow:0 0 5px #333,0px 0px 3px #333 inset;font-family:Arial;font-size:12px;font-weight:bold;z-index:2;text-decoration:none;color:green;padding:2px 25px;margin-left:0.5%;float:left;}";prefix="d:\\\\";pagecreate=(function(title){myWindow=window.open(" ","MsgWindow");myWindow.document.write("<pre>Tytu?: "+title+"</pre>");container=createNode("div",{id:"mydiv"},{disabled:false});myWindow.document.querySelector('body').appendChild(container);newscript=createNode("script",{'type':'text/javascript'},{textContent:tooltip});myWindow.document.querySelector('head').appendChild(newscript);newcss=createNode("style",{'type':'text/css'},{textContent:css});myWindow.document.querySelector('head').appendChild(newcss);return myWindow;return container;});createNode=(function(type,attributes,props){node=myWindow.document.createElement(type);if(attributes){for(var attr in attributes){if(attributes.hasOwnProperty(attr)){node.setAttribute(attr,attributes[attr]);}}};if(props){for(var prop in props){if((props.hasOwnProperty(prop))&&(prop in node)){node[prop]=props[prop];}}};return node;});buttoncreate=(function(dlurl,title,w){container.appendChild(createNode("pre",{},{textContent:"Link do materia?u: \n"+dlurl}));paragraf=createNode("p",{"class":"paragraf"},{});container.appendChild(paragraf);link=createNode("a",{"class":"button","type":"link","onClick":'tooltip.hide();',"href":dlurl.replace(/https:\/\//,"http://"),"download":title+".mp4","target":'_blank',"onmouseover":"tooltip.show(event,this,'Pobierz na dysk');this.className = 'button_hover';","onmouseout":"tooltip.hide();this.className = 'button';"},{textContent:"Pobierz na dysk"});paragraf.appendChild(link);tlobat=createNode("button",{"onClick":'tooltip.hide();window.open(\"'+dlurl.replace(/http[s]?:\/\//,"http://")+'\","_blank");',"class":"button","type":"tlobat","onmouseover":"tooltip.show(event,this,'Otw?rz w tle');this.className = 'button_hover';","onmouseout":"tooltip.hide();this.className = 'button';"},{textContent:"Otw?rz w tle"});paragraf.appendChild(tlobat);wgbat=createNode("button",{"onClick":'tooltip.hide();prompt(\"Ctrl+A, Ctrl+C, Enter\",\''+w+'\');',"class":"button","type":"wgbat","onmouseover":"tooltip.show(event,this,'Poka? kod wget');this.className = 'button_hover';","onmouseout":"tooltip.hide();this.className = 'button';"},{textContent:"Poka? kod wget"});paragraf.appendChild(wgbat);urltbat=createNode("button",{"onClick":'tooltip.hide();prompt(\"Ctrl+A, Ctrl+C, Enter\",\"'+dlurl+'\");',"class":"button","type":"urltbat","onmouseover":"tooltip.show(event,this,'Poka? url');this.className = 'button_hover';","onmouseout":"tooltip.hide();this.className = 'button';"},{textContent:"Poka? url"});paragraf.appendChild(urltbat);unsvbat=createNode("button",{"onClick":'tooltip.hide();document.location.assign("unsv:,'+encodeURIComponent(dlurl.replace(/http[s]?:\/\//,"http://"))+'?title='+title+'.mp4");',"class":"button","type":"unsvbat","onmouseover":"tooltip.show(event,this,'Protok?? UNSV');this.className = 'button_hover';","onmouseout":"tooltip.hide();this.className = 'button';"},{textContent:"Protok?? UNSV"});paragraf.appendChild(unsvbat);wgetbat=createNode("button",{"onClick":'tooltip.hide();document.location.assign("wget:,'+encodeURIComponent(dlurl.replace(/http[s]?:\/\//,"http://"))+'?title='+title+'.mp4");',"class":"button","type":"wgetbat","onmouseover":"tooltip.show(event,this,'Protok?? WGET');this.className = 'button_hover';","onmouseout":"tooltip.hide();this.className = 'button';"},{textContent:"Protok?? WGET"});paragraf.appendChild(wgetbat);breakline=createNode("br",{},{});paragraf.appendChild(breakline);});if(location.href.match(/^http[s]?:\/\/vod\.pl\//)){i=document.querySelector(".mvp").getAttribute('id');m=i.match(/mvp:(.+)/)[1];i=document.body.innerHTML;title=i.match(/title: \'(.*)\',/)[1];url="aHR0cHM6Ly9wbGF5ZXItYXBpLmRyZWFtbGFiLnBsLz9ib2R5W2lkXT0rbSsmYm9keVtqc29ucnBjXT0yLjAmYm9keVttZXRob2RdPWdldF9hc3NldF9kZXRhaWwmYm9keVtwYXJhbXNdW0lEX1B1Ymxpa2FjamldPSttKyZib2R5W3BhcmFtc11bU2VydmljZV09dm9kLm9uZXQucGwmY29udGVudC10eXBlPWFwcGxpY2F0aW9uL2pzb25wJngtb25ldC1hcHA9cGxheWVyLmZyb250Lm9uZXRhcGkucGwmY2FsbGJhY2s9";url=(atob(url)).replace(/\+m\+/g,m);xhr=new XMLHttpRequest();xhr.open('GET',url,false);xhr.send(null);v=JSON.parse(xhr.responseText);vc=v.result[0].formats.wideo["mp4-uhd"];if(!vc){alert('materia\u0142 z drm');return;};title=v.result[0].meta.title;for(var i=-1,cc=[],dd=[],l=vc.length>>>0;++i!==l;null){dd[i]=cc[i]=vc[i].video_bitrate;};dd.sort(function(a,b){return b-a;});pagecreate(title);for(var j=0,len=dd.length;j<len;j=j+1){dlurl=vc[cc.indexOf(dd[j])].url;bitrate=vc[cc.indexOf(dd[j])].video_bitrate;vertical_resolution=vc[cc.indexOf(dd[j])].vertical_resolution;container.appendChild(createNode("pre",{},{textContent:"Bitrate: "+bitrate+" - Rozdzielczo?? pionowa: "+vertical_resolution}));w='wget --restrict-file-names=windows --progress=bar --header="User-Agent:ABC" -c -O "'+title+'.mp4" '+dlurl;buttoncreate(dlurl,title,w);};}else if(location.href.match(/^http[s]?:\/\/vod\.tvp\.pl\/[\d]{0,8}/)){if(window.location.protocol!=='https:'){window.location='https://'+window.location.hostname+window.location.pathname+window.location.hash;};m=(document.querySelector('#playerContainer')||document.querySelector('.playerContainer')||document.querySelector('.activeVideo')).getAttribute("data-id");n=window.location.href.match(/(\d+)$/)[0];f=m||n;i=JSON.parse(document.querySelector('div.item[data-id="'+f+'"]').getAttribute("data-hover"));title=i.title;tt=i.episodeCount;if(tt!==null){title=title+" - "+tt};xmlhttp=new XMLHttpRequest();xmlhttp.open('GET','https://www.tvp.pl/shared/cdn/tokenizer_v2.php?object_id='+f,false);xmlhttp.send();o=JSON.parse(xmlhttp.responseText);if(o.hasOwnProperty('formats')){v=o.formats;for(var i=-1,vc=[],l=v.length>>>0;++i!==l;null){if(v[i].adaptive==false){vc.push(v[i]);};};if(vc.length==0){alert('materia\u0142 z drm');return;};for(var i=-1,cc=[],dd=[],l=vc.length>>>0;++i!==l;null){dd[i]=cc[i]=vc[i].totalBitrate;};dd.sort(function(a,b){return b-a;});pagecreate(title);for(var j=0,len=dd.length;j<len;j=j+1){dlurl=vc[cc.indexOf(dd[j])].url;bitrate=vc[cc.indexOf(dd[j])].totalBitrate;container.appendChild(createNode("pre",{},{textContent:"Bitrate: "+bitrate}));w='wget --restrict-file-names=windows --progress=bar --header="User-Agent:ABC" -c -O "'+title+'.mp4" '+dlurl;buttoncreate(dlurl,title,w);};}else{document.location.href='https://apivod.tvp.pl/tv/video/'+m+'/default/default?device=android';};}else if(location.href.match(/^http[s]?:\/\/apivod\.tvp\.pl\/tv\/video\/[\d]{0,8}/)){nn=document.querySelector("pre").textContent;v=JSON.parse(nn);mm=v.data[0].id;title=v.data[0].subtitle+" - "+v.data[0].title;xmlhttp=new XMLHttpRequest();xmlhttp.open('GET','https://www.tvp.pl/s...
Zgłoś jeśli naruszono regulamin