Advertisement
Alantag26

FB-Séries

Jan 27th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         FB-Séries
  3. // @namespace    http://tampermonkey.net/
  4. // @version      0.1
  5. // @description  Transforma algo bom, em melhor.
  6. // @icon         http://www.brseries.com/wp-content/uploads/2017/08/favicon.png
  7. // @author       Alan
  8. // @require      https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js
  9. // @require      http://vjs.zencdn.net/6.6.0/video.js
  10. // @match        *://www.fbseries.com/*
  11. // @connect      *
  12. // @grant        none
  13. // ==/UserScript==
  14.  
  15. (function() {
  16.     'use strict';
  17.     var code = "function toggleIframe (option) {switch (option) {case true:$('.iframe-video').show();$('div#fbMsg').hide();$('body').attr('style', 'overflow: hidden!important;');break;case false:$('.iframe-video').hide();$('div#fbMsg').show();$('body').attr('style', 'overflow: visible!important;');break;default:if (toggleI==true) {toggleI=false;}else {toggleI=true;}if (toggleI==true) {$('.iframe-video').show();$('div#fbMsg').hide();$('body').attr('style', 'overflow: hidden!important;');}else {$('.iframe-video').hide();$('div#fbMsg').show();$('body').attr('style', 'overflow: visible!important;');}}}$('.iframe-btn').click(function(){var myPlayer = videojs('my_video_1');myPlayer.pause(1);document.webkitExitFullscreen();toggleIframe(false);});";
  18.     var codeHTML = '<div class="iframe-video"><div class="video-info"><video id="my_video_1" class="video-js vjs-default-skin" width="640px" height="267px" controls preload="none" poster="" data-setup="{}"><source src="https://vjs.zencdn.net/v/oceans.mp4" type="video/mp4" /><source src="https://vjs.zencdn.net/v/oceans.webm" type="video/webm" /></video><script src="http://vjs.zencdn.net/6.6.0/video.js"></script></div></div>';
  19.     var codeCSS = '.iframe-video {background-color: black;width: 100vw;height: 100vh;z-index: 1000;top: 0;position: fixed;display: flex;flex-direction: row;align-items: center;justify-content: center;}.video-info {width: calc(100vw - 2em);height: calc(100vh - 2em);background-color: red;}.video-js .vjs-big-play-button {position: relative!important;margin-top: -47%;}div#my_video_1 {display: flex;align-items: center;justify-content: center;flex-direction: row;width: 100%;height: 100%;}.iframe-epName {top: 10px;position: absolute;left: 8em;margin-top: 1.65em;}p.nameC {color: white;font-size: 21px;}.iframe-epName span {font-size: 18px;}span.tempC {color: #ffffff8a;}span.epC {color: #ffffff8a;margin-left: 9px;}.iframe-btn {width: 50px;height: 50px;position: absolute;top: 0;margin: 13px;border-radius: 50%;display: flex;flex-direction: row;align-items: center;justify-content: center;cursor: pointer;transition: 1s ease;left: 0;}.iframe-btn:hover {background-color: #ffffff17;}i.iframe-btn-icon {font-size: 25px;margin-bottom: 2px;color: #ffffff87;transition: 1s ease;}.iframe-btn:hover>i.iframe-btn-icon {color: #ffffffc2;}.continue-box {background-color: black;width: 160px;height: fit-content;display: flex;align-items: center;justify-content: center;border: 1px solid dimgrey;margin-left: auto;margin-right: auto;cursor: pointer;flex-direction: column;}p.continue-btn {margin: 0;color: white;font-weight: bolder;font-size: 14px;font-family: "Open Sans",Arial,sans-serif;}.continue-box span {font-size: 98%;}span.continue-temp {margin-bottom: -5px;}';
  20.     var codeCDN = '<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous"><link href="http://vjs.zencdn.net/6.6.0/video-js.css" rel="stylesheet"><script src="http://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script><script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>';
  21.     var codeHTML2 = '<div class="iframe-btn"><i class="fa fa-arrow-left iframe-btn-icon" aria-hidden="true"></i></div><div class="iframe-epName"><p class="nameC">NOMEhfgjshgds<br></p><span class="tempC">T:1</span><span class="epC">EP:1</span></div>';
  22.     var codeHTML3 = '<div class="continue-box"><p class="continue-btn">Continuar</p><span class="continue-temp"></span><span class="continue-ep"></span></div>';
  23.  
  24.     var tudo, nome, url, tabsQ, epsQ, i, listaQ;
  25.     var pUrl = $('span.last-bread').text();
  26.     var toggleI = false;
  27.     var serieString = "";
  28.     var realLink = "";
  29.     var dC = 1;
  30.     var lC = 1;
  31.     var cEpR,cLink,cEp,cTemp,cName,cLang,cTempo;
  32.     var res, arr1,arr,arr2,convert1;
  33.     var epL = "";
  34.     var objF = {};
  35.     var fim = false;
  36.     var count = 0;
  37.     var epN = "";
  38.     var epNC = "";
  39.     var mark3 = 0;
  40.     var mark4 = 1;
  41.     var intervalo2;
  42.     var mark2 = 1;
  43.     var r = 0;
  44.     var mark1 = 0;
  45.     var pode = true;
  46.     var teste = $(".tab_container .tab_content:nth-of-type(1) .um_terco:nth-of-type(1) .check_lista ul li:nth-of-type(1)").text();
  47.     var teste1 = $(".tab_container .tab_content:nth-of-type(1) .um_terco:nth-of-type(1) .check_lista ul li:nth-of-type(1) a").text();
  48.     var imagemS = $(".capa-single img").attr('src');
  49.  
  50.  
  51.     var Brs = {
  52.         series : {},
  53.         formJSON : function (setB) {
  54.  
  55.             //Set vars
  56.             mark1 = 1;
  57.             mark3 = 0;
  58.             mark4 = 0;
  59.             mark2 = 1;
  60.             pode = true;
  61.             pUrl = $('span.last-bread').text();
  62.             url = window.location.href;
  63.             tabsQ = $("ul.tabs li").length;
  64.             epsQ = $(".check_lista ul li").length;
  65.             listaQ = $(".tab_container .tab_content").length;
  66.  
  67.             //Set series values
  68.             Brs.series[pUrl] = [];
  69.             Brs.series[pUrl].eps = [];
  70.             Brs.series[pUrl].pageUrl = url;
  71.             Brs.series[pUrl].eps[mark1] = [];
  72.             Brs.series[pUrl].eps[mark1].dublado = [];
  73.             Brs.series[pUrl].eps[mark1].legendado = [];
  74.  
  75.             //loop for eps
  76.             while (fim == false) {
  77.  
  78.  
  79.  
  80.                 switch (mark2) {
  81.                     case 1:
  82.                         if (dC==1) {
  83.                             Brs.series[pUrl].eps[mark1] = [];
  84.                             Brs.series[pUrl].eps[mark1].dublado = [];
  85.                         }
  86.  
  87.                         mark3 = $(".tab_container .tab_content:nth-child("+mark1+") .um_terco:nth-of-type(1) .check_lista ul li").length;
  88.                         epL = $(".tab_container .tab_content:nth-of-type("+mark1+") .um_terco:nth-of-type(1) .check_lista ul li:nth-of-type("+dC+") a").attr('href');
  89.                         epN = $(".tab_container .tab_content:nth-of-type("+mark1+") .um_terco:nth-of-type(1) .check_lista ul li:nth-of-type("+dC+") a").text();
  90.                         epNC = $(".tab_container .tab_content:nth-of-type("+mark1+") .um_terco:nth-of-type(1) .check_lista ul li:nth-of-type("+dC+") a").attr('title');
  91.                         realLink = epL.replace("http://www.fbseries.com/video/home.php?v=","https://www.blogger.com/video-play.mp4?contentId=");
  92.                         if (setB==true) {
  93.                             $(".tab_container .tab_content:nth-of-type("+mark1+") .um_terco:nth-of-type(1) .check_lista ul li:nth-of-type("+dC+") a[href^='http://www.fbseries.com/video/home.php?v=']").attr('temp', mark1);
  94.                             $(".tab_container .tab_content:nth-of-type("+mark1+") .um_terco:nth-of-type(1) .check_lista ul li:nth-of-type("+dC+") a[href^='http://www.fbseries.com/video/home.php?v=']").attr('ep', epN);
  95.                             $(".tab_container .tab_content:nth-of-type("+mark1+") .um_terco:nth-of-type(1) .check_lista ul li:nth-of-type("+dC+") a[href^='http://www.fbseries.com/video/home.php?v=']").attr('lang', "dublado");
  96.                             $(".tab_container .tab_content:nth-of-type("+mark1+") .um_terco:nth-of-type(1) .check_lista ul li:nth-of-type("+dC+") a[href^='http://www.fbseries.com/video/home.php?v=']").attr('rlink', realLink);
  97.                             $(".tab_container .tab_content:nth-of-type("+mark1+") .um_terco:nth-of-type(1) .check_lista ul li:nth-of-type("+dC+") a[href^='http://www.fbseries.com/video/home.php?v=']").removeAttr("href");
  98.                         }
  99.  
  100.                         Brs.series[pUrl].eps[mark1].dublado[epN] = [];
  101.                         Brs.series[pUrl].eps[mark1].dublado[epN] = {link: epL,nome: epNC,mLink: realLink};
  102.  
  103.                         dC++;
  104.                         if (dC > mark3) {dC=1;mark2= 2;}
  105.                         break;
  106.                     case 2:
  107.                         if (lC==1) {
  108.                             Brs.series[pUrl].eps[mark1].legendado = [];
  109.                         }
  110.                         mark3 = $(".tab_container .tab_content:nth-of-type("+mark1+") .um_terco:nth-of-type(2) .check_lista ul li").length;
  111.                         epL = $(".tab_container .tab_content:nth-of-type("+mark1+") .um_terco:nth-of-type(2) .check_lista ul li:nth-of-type("+lC+") a").attr('href');
  112.                         epN = $(".tab_container .tab_content:nth-of-type("+mark1+") .um_terco:nth-of-type(2) .check_lista ul li:nth-of-type("+lC+") a").text();
  113.                         epNC = $(".tab_container .tab_content:nth-of-type("+mark1+") .um_terco:nth-of-type(2) .check_lista ul li:nth-of-type("+lC+") a").attr('title');
  114.                         realLink = epL.replace("http://www.fbseries.com/video/home.php?v=","https://www.blogger.com/video-play.mp4?contentId=");
  115.                         if (setB==true) {
  116.                             $(".tab_container .tab_content:nth-of-type("+mark1+") .um_terco:nth-of-type(2) .check_lista ul li:nth-of-type("+lC+") a[href^='http://www.fbseries.com/video/home.php?v=']").attr('rlink', realLink);
  117.                             $(".tab_container .tab_content:nth-of-type("+mark1+") .um_terco:nth-of-type(2) .check_lista ul li:nth-of-type("+lC+") a[href^='http://www.fbseries.com/video/home.php?v=']").removeAttr("href");
  118.                             $(".tab_container .tab_content:nth-of-type("+mark1+") .um_terco:nth-of-type(2) .check_lista ul li:nth-of-type("+lC+") a").attr("temp", mark1);
  119.                             $(".tab_container .tab_content:nth-of-type("+mark1+") .um_terco:nth-of-type(2) .check_lista ul li:nth-of-type("+lC+") a").attr("ep", epN);
  120.                             $(".tab_container .tab_content:nth-of-type("+mark1+") .um_terco:nth-of-type(2) .check_lista ul li:nth-of-type("+lC+") a").attr("lang", "legendado");
  121.                         }
  122.  
  123.                         Brs.series[pUrl].eps[mark1].legendado[epN] = [];
  124.                         Brs.series[pUrl].eps[mark1].legendado[epN]= {link: epL,nome: epNC,mLink: realLink};
  125.  
  126.                         lC++;
  127.                         if (lC > mark3) {lC=1;mark1++;mark2= 1;}
  128.                         break;
  129.                 }
  130.  
  131.                 count++;
  132.                 mark4++;
  133.                 if (mark1 > tabsQ) {fim=true;}
  134.                 if (count > epsQ) {fim=true;}
  135.             }
  136.  
  137.  
  138.             //console.log(Brs.series);
  139.             fim=false;
  140.         },
  141.         formCookie : function (el,tempF,epF,langF,urlF,PurlF,titleF) {
  142.             switch(el) {
  143.                 case 1:
  144.  
  145.                     objF.temp = tempF;
  146.                     objF.ep = epF;
  147.                     objF.lang = langF;
  148.                     objF.url = urlF;
  149.                     objF.Purl = PurlF;
  150.                     objF.title = titleF;
  151.  
  152.                     var objString = '{"temp":'+objF.temp+',"ep":'+'"'+objF.ep+'"'+',"lang":'+'"'+objF.lang+'"'+',"url":'+'"'+objF.url+'"'+',"Purl":'+'"'+objF.Purl+'"'+',"title":'+'"'+objF.title+'"'+'}';
  153.  
  154.                     Brs.setCookie(pUrl,objString,1);
  155.                     break;
  156.                 case 2:
  157.                     var objG = Brs.getCookie(pUrl);
  158.                     if (objG == null || objG == ""){console.log("Erro");}else {
  159.  
  160.                         $(".continue-box").show();
  161.                         var objP = JSON.parse(objG);
  162.                         var Vtemp = objP.temp;
  163.                         var Vep = objP.ep;
  164.                         var Vurl = objP.url;
  165.                         var Vtitle = objP.title;
  166.                         var Vlang = objP.lang;
  167.                         var Vtempo = parseInt(objP.tempo);
  168.  
  169.  
  170.                             $("div.continue-box").attr("jj","de");
  171.                             $("div.continue-box").attr("temp",Vtemp);
  172.                             $("div.continue-box").attr("ep",Vep);
  173.                             $("div.continue-box").attr("rlink",Vurl);
  174.                             $("div.continue-box").attr("title",Vtitle);
  175.                             $("div.continue-box").attr("lang",Vlang);
  176.                             $("div.continue-box").attr("tempo",Vtempo);
  177.                             $(".continue-temp").text("Temporada "+Vtemp);
  178.                             $(".continue-ep").text(Vep+"("+Vlang+")");
  179.                             console.log("objP: "+JSON.stringify(objP));
  180.                             console.log(Vtempo);
  181.  
  182.                     }
  183.                     break;
  184.                 case 3:
  185.                     var Tagora = $('.vjs-time-tooltip').text();
  186.                     console.log(Tagora);
  187.  
  188.                     if (Tagora.length>5){
  189.                         arr = Tagora.split(":");
  190.                         res = arr[1].slice(2,4);
  191.                         arr1 = parseInt(res);
  192.                         arr2 = parseInt(arr[2]);
  193.                         convert1 = arr1*60+arr2;
  194.                         console.log("V: 1");
  195.                     }else{
  196.                         arr = Tagora.split(":");
  197.                         arr1 = parseInt(arr[0]);
  198.                         arr2 = parseInt(arr[1]);
  199.                         convert1 = arr1*60+arr2;
  200.                         console.log("V: 2");
  201.                     }
  202.                     objF = {};
  203.                     objF.temp = tempF;
  204.                     objF.ep = epF;
  205.                     objF.lang = langF;
  206.                     objF.url = urlF;
  207.                     objF.Purl = PurlF;
  208.                     objF.title = titleF;
  209.                     objF.tempo = convert1;
  210.                     console.log(objF.tempo);
  211.  
  212.                     objString = '{"temp":'+objF.temp+',"ep":'+'"'+objF.ep+'"'+',"lang":'+'"'+objF.lang+'"'+',"url":'+'"'+objF.url+'"'+',"tempo":'+'"'+convert1+'"'+',"Purl":'+'"'+objF.Purl+'"'+',"title":'+'"'+objF.title+'"'+'}';
  213.  
  214.                     Brs.setCookie(pUrl,objString,1);
  215.  
  216.                     break;
  217.             }
  218.  
  219.         },
  220.         setCookie : function (cname,cvalue,exdays) {
  221.             var d = new Date();
  222.             d.setTime(d.getTime() + (exdays*1000*60*60*24*365));
  223.             var expires = "expires=" + d.toGMTString();
  224.             document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
  225.         },
  226.         getCookie : function (cname) {
  227.             var name = cname + "=";
  228.             var decodedCookie = decodeURIComponent(document.cookie);
  229.             var ca = decodedCookie.split(';');
  230.             for(var i = 0; i < ca.length; i++) {
  231.                 var c = ca[i];
  232.                 while (c.charAt(0) == ' ') {
  233.                     c = c.substring(1);
  234.                 }
  235.                 if (c.indexOf(name) == 0) {
  236.                     return c.substring(name.length, c.length);
  237.                 }
  238.             }
  239.             return "";
  240.         },
  241.         formIframe : function () {
  242.             $("head").prepend(codeCDN);
  243.             $("head").prepend('<script>'+code+'</script>');
  244.             $("head").prepend('<style>'+codeCSS+'</style>');
  245.             $(".content.content-single").prepend(codeHTML3);
  246.             $("body").prepend(codeHTML);
  247.             $(".iframe-video").hide();
  248.             setTimeout(function(){
  249.                 $("div#my_video_1").append(codeHTML2);
  250.                 $(".iframe-btn").click(function(){
  251.                     var myPlayer = videojs('my_video_1');
  252.                     myPlayer.pause();
  253.                     document.webkitExitFullscreen();
  254.                     Brs.toggleIframe(false);
  255.                 });
  256.             }, 5000);
  257.         },
  258.         debugConsole : function () {
  259.             console.log(Brs.series);
  260.             console.log("mark1: "+epsQ);
  261.             console.log("mark1: "+mark1);
  262.             console.log("mark3: "+mark3);
  263.             console.log("mark4: "+mark4);
  264.             console.log("mark2: "+mark2);
  265.             console.log("lC: "+lC);
  266.             console.log("dC: "+dC);
  267.             console.log("teste: "+teste);
  268.             console.log("teste1: "+teste1);
  269.             console.log("cookie: "+Brs.getCookie(pUrl));
  270.         },
  271.         checkUrl : function () {},
  272.         cancelFullScreen : function (el) {
  273.             var requestMethod = el.cancelFullScreen||el.webkitCancelFullScreen||el.mozCancelFullScreen||el.exitFullscreen;
  274.             if (requestMethod) { // cancel full screen.
  275.                 requestMethod.call(el);
  276.             } else if (typeof window.ActiveXObject !== "undefined") { // Older IE.
  277.                 var wscript = new ActiveXObject("WScript.Shell");
  278.                 if (wscript !== null) {
  279.                     wscript.SendKeys("{F11}");
  280.                 }
  281.             }
  282.         },
  283.         requestFullScreen : function (el) {
  284.             // Supports most browsers and their versions.
  285.             var requestMethod = el.requestFullScreen || el.webkitRequestFullScreen || el.mozRequestFullScreen || el.msRequestFullscreen;
  286.  
  287.             if (requestMethod) { // Native full screen.
  288.                 requestMethod.call(el);
  289.             } else if (typeof window.ActiveXObject !== "undefined") { // Older IE.
  290.                 var wscript = new ActiveXObject("WScript.Shell");
  291.                 if (wscript !== null) {
  292.                     wscript.SendKeys("{F11}");
  293.                 }
  294.             }
  295.             return false;
  296.         },
  297.         toggleFull : function () {
  298.             var elem = document.body; // Make the body go full screen.
  299.             var isInFullScreen = (document.fullScreenElement && document.fullScreenElement !== null) ||  (document.mozFullScreen || document.webkitIsFullScreen);
  300.  
  301.             if (isInFullScreen) {
  302.                 Brs.cancelFullScreen(document);
  303.             } else {
  304.                 Brs.requestFullScreen(elem);
  305.             }
  306.             return false;
  307.         },
  308.         detectActive : function () {
  309.             var cAtivo = $(".vjs-default-skin").hasClass("vjs-user-active");
  310.  
  311.             switch (cAtivo) {
  312.                 case true:
  313.                     $(".iframe-btn").fadeIn();
  314.                     $(".iframe-btn-icon").fadeIn();
  315.                     $(".iframe-epName").fadeIn();
  316.                     break;
  317.                 case false:
  318.                     $(".iframe-btn").fadeOut();
  319.                     $(".iframe-btn-icon").fadeOut();
  320.                     $(".iframe-epName").fadeOut();
  321.                     break;
  322.             }
  323.         },
  324.         setVideo : function (el,Vurl,poster,play,name,temp,ep,tempo) {
  325.             var myPlayer = videojs('my_video_1');
  326.             var rTempo = parseInt(tempo);
  327.             console.log(rTempo);
  328.  
  329.             switch(el) {
  330.                 case 1:
  331.                     myPlayer.poster(poster);
  332.                     myPlayer.src(Vurl);
  333.                     $("p.nameC").text(name);
  334.                     $("span.tempC").text("Temp: "+temp);
  335.                     $("span.epC").text(" "+ep);
  336.                     myPlayer.currentTime(rTempo);
  337.                     myPlayer.play(play);
  338.                     // setTimeout(function(){
  339.                     //  console.log(myPlayer.currentTime());
  340.                     // }, 5000);
  341.                     break;
  342.                 case 2:
  343.                     break;
  344.             }
  345.  
  346.  
  347.  
  348.         },
  349.         toggleIframe : function (option) {
  350.             switch (option) {
  351.                 case true:
  352.                     $(".iframe-video").show();
  353.                     $(".iframe-video").attr('style', 'visibility: visible!important;');
  354.                     $(".video-info").show();
  355.                     $("div#my_video_1").show();
  356.                     $("div#fbMsg").hide();
  357.                     $("body").attr('style', 'overflow: hidden!important;');
  358.                     break;
  359.                 case false:
  360.                     clearInterval(intervalo2);
  361.                     Brs.formCookie(2);
  362.                     $(".iframe-video").hide();
  363.                     $(".iframe-video").attr('style', 'visibility: hidden!important;');
  364.                     $(".video-info").hide();
  365.                     $("div#my_video_1").hide();
  366.                     $("div#fbMsg").show();
  367.                     $("body").attr('style', 'overflow: visible!important;');
  368.                     break;
  369.                 default:
  370.                     if (toggleI==true) {toggleI=false;}else {toggleI=true;}
  371.  
  372.                     if (toggleI==true) {
  373.                         $(".iframe-video").show();
  374.                         $(".video-info").show();
  375.                         $("div#fbMsg").hide();
  376.                         $("body").attr('style', 'overflow: hidden!important;');
  377.                     }else {
  378.                         $(".iframe-video").hide();
  379.                         $(".video-info").hide();
  380.                         $("div#fbMsg").show();
  381.                         $("body").attr('style', 'overflow: visible!important;');
  382.                     }
  383.             }
  384.         }
  385.     };
  386.  
  387.     if (teste=="NÃO DISPONÍVEL" || teste1=="Para assistir todos os episódios CLIQUE aqui!") {
  388.         console.log("Erro: Não Disponivel");
  389.  
  390.     }else {
  391.         Brs.formIframe();
  392.         Brs.formJSON(true);
  393.         Brs.toggleIframe(false);
  394.         //serieString = JSON.stringify(Brs.series[pUrl]);
  395.         //Brs.setCookie(pUrl, serieString, 1);
  396.         Brs.debugConsole();
  397.     }
  398.  
  399.     $(".iframe-btn").click(function(){
  400.         var myPlayer = videojs('my_video_1');
  401.         myPlayer.pause(1);
  402.         //Brs.formCookie(3,cTemp,cEpR,cLang,cLink,url,cName);
  403.         Brs.formCookie(2);
  404.  
  405.         document.webkitExitFullscreen();
  406.         Brs.toggleIframe(false);
  407.  
  408.         clearInterval(intervalo2);
  409.     });
  410.  
  411.     $(".check_lista ul li a[rlink^='https://www.blogger.com']").click(function(){
  412.         cEpR = $(this).text();
  413.         cLink = $(this).attr("rlink");
  414.         cEp = $(this).attr("ep");
  415.         cTemp = $(this).attr("temp");
  416.         cName = $(this).attr("title");
  417.         cLang = $(this).attr("lang");
  418.         cTempo = $(this).attr("tempo");
  419.         Brs.setVideo(1,cLink,imagemS,1,cName,cTemp,cEp,cTempo);
  420.         // Brs.formCookie(3,cTemp,cEpR,cLang,cLink,url,cName);
  421.         // Brs.formCookie(2);
  422.         intervalo2 = setInterval(function(){ Brs.formCookie(3,cTemp,cEpR,cLang,cLink,url,cName);Brs.formCookie(2); }, 1000);
  423.         Brs.toggleIframe(true);
  424.     });
  425.  
  426.     var intervalo = setInterval(Brs.detectActive, 100);
  427.  
  428.  
  429.  
  430.  
  431.     $(".continue-box").click(function(){
  432.         var Clink = $(".continue-box").attr("rlink");
  433.         var Cep = $(".continue-box").attr("ep");
  434.         var Ctemp = $(".continue-box").attr("temp");
  435.         var Ctempo = $(".continue-box").attr("tempo");
  436.         var Cname = $(".continue-box").attr("title");
  437.         var Clang = $(".continue-box").attr("lang");
  438.  
  439.         Brs.setVideo(1,Clink,imagemS,1,Cname,Ctemp,Cep,Ctempo);
  440.         Brs.toggleIframe(true);
  441.     });
  442.  
  443.     $(".continue-box").hide();
  444.     Brs.formCookie(2);
  445.  
  446.  
  447. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement