// providence_show.js
// RJM Programming - July, 2026
// Help out providence YouTube API overlay Wikipedia information displays
var otop=null, was_bih='', wasbih='', iss=false;
var vidplus=[], vidminus=[], vidtall=[], lastvp='', chit=-18, gtow='', siv=null, presiv=0, lastsivurl='';
var xuri='', xgvd='', xgtow='', xcurplay='', lastxcurplay='';
var sinfois='<div><style> .custom-alert { display: inline-block; visibility: visible; background-color: rgb(240,240,240) !important; color: #fff; text-align: enter; margin: 5% auto; padding: 12px 28px; } </style></div>';
setTimeout(function(){ chit=Math.abs(chit); }, 20000);
function myomo(evt) {
var othis=evt.target;
evt.target.setAttribute('data-lh','0'); if (siv) { clearInterval(siv); siv=null; } siv=setInterval(function(){ if (top.document.getElementById('wsa')) { presiv=parseInt(top.document.getElementById('wsa').getAttribute('data-lh')); presiv++; top.document.getElementById('wsa').setAttribute('data-lh',presiv); if (parseInt(top.document.getElementById('wsa').getAttribute('data-lh')) >= 8) { if (siv) { clearInterval(siv); } siv=null; } } }, 1000); setTimeout(function(){ if (top.document.getElementById('wsa')) { if (parseInt(top.document.getElementById('wsa').getAttribute('data-lh')) >= 8) { if (lastsivurl != top.document.getElementById('wsa').href) { lastsivurl=top.document.getElementById('wsa').href; window.open(top.document.getElementById('wsa').href,'_blank','top=10,left=10,width=800,height=900'); } if (siv) { clearInterval(siv); siv=null; } } } }, 9000);
}
function myomt(evt) {
evt.target.setAttribute('data-lh','0');
}
function checkforwsa(infs) {
//top.document.title='h';
if (top.document.getElementById('wsa') && top.document.getElementById('adiv')) {
//top.document.title+='H';
top.document.getElementById('adiv').style.fontSize=infs;
top.document.getElementById('wsa').style.fontSize=infs;
if (top.document.getElementById('awsa')) {
top.document.getElementById('awsa').style.fontSize=infs;
}
setTimeout(wsa_act, 3000);
}
return infs;
}
function wsa_act() {
if (top.document.getElementById('wsa')) {
//top.document.title+='e';
var rectais=top.document.getElementById('wsa').getBoundingClientRect();
//alert('' + rectais.left + ',' + rectais.top);
top.document.getElementById('adiv').style.position='absolute';
top.document.getElementById('adiv').style.top='' + rectais.top + 'px';
top.document.getElementById('adiv').style.left='' + rectais.left + 'px';
top.document.getElementById('adiv').style.width='' + rectais.width + 'px';
top.document.getElementById('adiv').style.height='' + rectais.height + 'px';
top.document.getElementById('adiv').innerHTML=top.document.getElementById('wsa').outerHTML.replace(' id="', ' id="a').replace(/\ data\-on/g, ' on').replace('<a ', '<a onclick="event.stopPropagation(); if (siv) { clearInterval(siv); siv=null; } myomt(event);" title="Long hover opens popup Wikipedia providence window, else click/tap opens in new window." ');
top.document.getElementById('ovdiv').style.textShadow='-1px 1px 1px purple';
if (top.document.getElementById('awsa')) {
if (Math.abs(chit) != 18) {
top.document.getElementById('wsa').style.opacity='0.1';
}
top.document.getElementById('awsa').style.fontSize = window.top.getComputedStyle(top.document.getElementById('wsa'),null).fontSize || window.top.document.getElementById('wsa').style.fontSize || window.top.document.getElementById('wsa').currentStyle.getCurrentProperty('font-size')
}
//setTimeout(function(){
// top.document.getElementById('ovdiv').style.textShadow='-1px 1px 1px blue';
//}, 30000);
}
}
function clickdown(tow) {
if (chit > 0) {
//top.document.title+='d';
var vsminus=top.document.getElementById('vplayer' + tow).src.replace('v=','/embed/').split('/embed/')[1].substring(0,11);
//alert(vsminus);
if (vidminus.indexOf(vsminus) != -1) {
tow=eval(1 + eval('' + vidminus.indexOf(vsminus)));
//alert(tow);
if (lastvp != ('' + vidplus[eval(-1 + tow)].split('(')[0].trim().replace(/\ /g,'_').split(' 1')[0].split(' 2')[0].split(' 3')[0].split(' 4')[0].split(' 5')[0].split(' 6')[0].split(' 7')[0].split(' 8')[0].split(' 9')[0].split(' 0')[0] + '_(song)').replace(/\_\_/g,'_')) {
document.title='Playing ' + vidtall[eval(-1 + tow)] + ' ... ' + document.title.split(' ... ')[eval(-1 + document.title.split(' ... ').length)]; //
lastvp=('' + vidplus[eval(-1 + tow)].split('(')[0].trim().replace(/\ /g,'_').split(' 1')[0].split(' 2')[0].split(' 3')[0].split(' 4')[0].split(' 5')[0].split(' 6')[0].split(' 7')[0].split(' 8')[0].split(' 9')[0].split(' 0')[0] + '_(song)').replace(/\_\_/g,'_');
//document.title=vidplus[eval(-1 + tow)];
if (top.document.getElementById('awsa')) {
top.document.getElementById('awsa').innerHTML='';
}
top.document.getElementById('adiv').innerHTML='';
top.document.getElementById('adiv').style.top='-800px';
top.document.getElementById('adiv').style.left='-800px';
top.document.getElementById('ovdiv').style.textShadow='-1px 1px 1px blue';
top.document.getElementById('wikif').src=('/PHP/http_methods.php?song=y&url=https://en.wikipedia.org/wiki/' + vidplus[eval(-1 + tow)].split('(')[0].trim().replace(/\ /g,'_').split(' 1')[0].split(' 2')[0].split(' 3')[0].split(' 4')[0].split(' 5')[0].split(' 6')[0].split(' 7')[0].split(' 8')[0].split(' 9')[0].split(' 0')[0] + '_(song)').replace(/\_\_/g,'_');
}
}
}
}
function offsettoast() {
top.document.title+='c';
top.document.getElementById('ovdiv').innerHTML='';
top.document.getElementById('ovdiv').style.top='-800px';
top.document.getElementById('ovdiv').style.left='-800px';
if (top.document.getElementById('awsa')) {
top.document.getElementById('awsa').innerHTML='';
}
top.document.getElementById('adiv').innerHTML='';
top.document.getElementById('adiv').style.top='-800px';
top.document.getElementById('adiv').style.left='-800px';
top.document.getElementById('ovdiv').style.textShadow='-1px 1px 1px blue';
}
function xcurlook() {
if (!iss && ('' + typeof svplayer).replace('object','array') == 'array') {
if (eval('' + svplayer.length) != 0) {
iss=true;
}
}
if (xcurplay != lastxcurplay && xcurplay.trim() != '') {
lastxcurplay=xcurplay;
if (iss) {
for (var iiivpl=0; iiivpl<svplayer.length; iiivpl++) {
if (svplayer[iiivpl].getVideoUrl().indexOf(xcurplay) != -1) {
top.document.title+='A';
if (('' + typeof top.clickdown) != 'function') {
clickdown(eval(1 + iiivpl));
} else {
top.clickdown(eval(1 + iiivpl));
}
}
}
} else {
for (var iivpl=0; iivpl<vplayer.length; iivpl++) {
if (vplayer[iivpl].getVideoUrl().indexOf(xcurplay) != -1) {
top.document.title+='a';
if (('' + typeof top.clickdown) != 'function') {
clickdown(eval(1 + iivpl));
} else {
top.clickdown(eval(1 + iivpl));
}
}
}
}
}
xcurplay='' + curplay;
}
setTimeout(function(){
was_bih='';
wasbih='';
//top.document.title='0';
if (top.document.head.innerHTML.indexOf('clickd' + 'own(') != -1 || top.document.body.innerHTML.indexOf('clickd' + 'own(') != -1 || top.document.head.innerHTML.indexOf(' onPlayerStateChange(') != -1 || top.document.body.innerHTML.indexOf(' onPlayerStateChange(') != -1 || document.head.innerHTML.indexOf(' onPlayerStateChange(') != -1 || document.body.innerHTML.indexOf(' onPlayerStateChange(') != -1) {
//top.document.title+='x';
if (top.document.head.innerHTML.indexOf('clickd' + 'own(') != -1 || top.document.body.innerHTML.indexOf('clickd' + 'own(') != -1) {
xgvd=xgvd;
//top.document.title+='1';
} else {
//top.document.title+='2';
xcurplay='' + curplay;
//alert('Yes');
setInterval(xcurlook, 2000);
}
//alert('yeswww');
if (!top.document.getElementById('ovdiv')) {
//top.document.title+='f';
top.document.body.innerHTML+="<div id=ovdiv id='custom-alert-1' class='custom-alert' style='color:black;padding-left:8px;z-index:89;position:absolute; left:-200px;top:-200px; text-shadow:-1px 1px 1px blue; font-size: 18px; font-weight: bold; visibility: visible;display: inline;opacity:0.7;pointer-events:none;'></div><div id=adiv style='z-index:189;position:absolute; left:-200px;top:-200px; color:transparent; text-shadow:-1px 1px 1px blue; font-size: 18px; font-weight: bold; visibility: visible;display: inline;opacity:0.7;pointer-events:auto;'></div><iframe src='/About_Us.html' id=wikif style=display:none;></iframe>";
}
if (!top.document.getElementById('aprovidence')) {
if (1 == 1) {
//alert('yesww');
if (top.document.getElementsByTagName('wshuffle') && 1 == 11) {
//alert('yesw');
setTimeout(function(){
was_bih=top.document.getElementsByTagName('wshuffle').innerHTML;
top.document.getElementsByTagName('wshuffle').innerHTML=" <a data-plus=\"+\" ontouchdown=\"event.stopPropagation();\" onmousedown=\"event.stopPropagation();\" onclick=\"event.stopPropagation(); if (('' + this.getAttribute('data-show')).length != 1) { chit=Math.abs(chit); this.setAttribute('data-show','y'); this.title='Adjust providence font size (starts at ' + Math.abs(chit) + 'px)'; document.getElementById('aprovidence').innerHTML=document.getElementById('aprovidence').getAttribute('data-plus'); document.getElementById('aprovidence').setAttribute('data-plus',(document.getElementById('aprovidence').getAttribute('data-plus') == '+' ? '-' : '+')); this.style.fontSize='24px'; setInterval(function(){ document.getElementById('aprovidence').innerHTML=document.getElementById('aprovidence').getAttribute('data-plus'); document.getElementById('aprovidence').setAttribute('data-plus',(document.getElementById('aprovidence').getAttribute('data-plus') == '+' ? '-' : '+')); }, 20000); } else if (this.innerHTML == '+') { if (chit > 0) { chit+=2; document.getElementById('ovdiv').style.fontSize=checkforwsa('' + chit + 'px'); } } else if (this.innerHTML == '-') { if (chit > 0) { chit-=2; document.getElementById('ovdiv').style.fontSize=checkforwsa('' + chit + 'px'); } } \" data-show=\"\" id=aprovidence title='Show song providence (if possible)' style='display:inline-block;font-size:8px;cursor:pointer;text-decoration:none;visibility:visible;'>🪬</a> " + was_bih;
}, 9500);
} else if (5 == 6) {
top.document.getElementsByTagName('wshuffle').innerHTML=top.document.getElementsByTagName('wshuffle').innerHTML.replace(' Videos ... and/or ... ','<span> Videos ... and/or ... </span>');
top.document.getElementsByTagName('wshuffle').style.display='inline-block';
top.document.getElementsByTagName('rshuffle').style.width='40%';
top.document.getElementsByTagName('div')[0].style.display='inline-block';
top.document.getElementsByTagName('div')[0].style.paddingBottom='20px';
top.document.getElementsByTagName('div')[0].innerHTML+=" <a data-plus=\"+\" ontouchdown=\"event.stopPropagation();\" onmousedown=\"event.stopPropagation();\" onclick=\"event.stopPropagation(); if (('' + this.getAttribute('data-show')).length != 1) { chit=Math.abs(chit); this.setAttribute('data-show','y'); this.title='Adjust providence font size (starts at ' + Math.abs(chit) + 'px)'; document.getElementById('aprovidence').innerHTML=document.getElementById('aprovidence').getAttribute('data-plus'); document.getElementById('aprovidence').setAttribute('data-plus',(document.getElementById('aprovidence').getAttribute('data-plus') == '+' ? '-' : '+')); this.style.fontSize='24px'; setInterval(function(){ document.getElementById('aprovidence').innerHTML=document.getElementById('aprovidence').getAttribute('data-plus'); document.getElementById('aprovidence').setAttribute('data-plus',(document.getElementById('aprovidence').getAttribute('data-plus') == '+' ? '-' : '+')); }, 20000); } else if (this.innerHTML == '+') { if (chit > 0) { chit+=2; document.getElementById('ovdiv').style.fontSize=checkforwsa('' + chit + 'px'); } } else if (this.innerHTML == '-') { if (chit > 0) { chit-=2; document.getElementById('ovdiv').style.fontSize=checkforwsa('' + chit + 'px'); } } \" data-show=\"\" id=aprovidence title='Show song providence (if possible)' style='display:inline-block;font-size:8px;cursor:pointer;text-decoration:none;visibility:visible;'>🪬</a> ";
//top.undostop();
} else {
//top.document.title+='7';
top.document.body.innerHTML+=" <a data-plus=\"+\" ontouchdown=\"event.stopPropagation();\" onmousedown=\"event.stopPropagation();\" onclick=\"event.stopPropagation(); if (('' + this.getAttribute('data-show')).length != 1) { window.top.chit=18; this.setAttribute('data-show','y'); this.title='Adjust providence font size (starts at ' + Math.abs(window.top.chit) + 'px)'; top.document.getElementById('aprovidence').innerHTML=top.document.getElementById('aprovidence').getAttribute('data-plus'); top.document.getElementById('aprovidence').setAttribute('data-plus',(top.document.getElementById('aprovidence').getAttribute('data-plus') == '+' ? '-' : '+')); this.style.fontSize='24px'; setInterval(function(){ top.document.getElementById('aprovidence').innerHTML=top.document.getElementById('aprovidence').getAttribute('data-plus'); top.document.getElementById('aprovidence').setAttribute('data-plus',(top.document.getElementById('aprovidence').getAttribute('data-plus') == '+' ? '-' : '+')); }, 20000); } else if (this.innerHTML == '+') { if (window.top.chit > 0) { window.top.chit+=2; top.document.getElementById('ovdiv').style.fontSize=checkforwsa('' + window.top.chit + 'px'); } } else if (this.innerHTML == '-') { if (window.top.chit > 0) { window.top.chit-=2; top.document.getElementById('ovdiv').style.fontSize=checkforwsa('' + window.top.chit + 'px'); } } \" data-show=\"\" id=aprovidence title='Show song providence (if possible)' style='position:absolute;top:0px;left:60%;z-index:45;display:inline-block;font-size:16px;border:1px dotted red;cursor:pointer;text-decoration:none;visibility:visible;'>🪬</a> " + wasbih + sinfois;
}
} else {
wasbih=top.document.body.innerHTML;
//top.document.title+='8';
top.document.body.innerHTML=" <a data-plus=\"+\" ontouchdown=\"event.stopPropagation();\" onmousedown=\"event.stopPropagation();\" onclick=\"event.stopPropagation(); if (('' + this.getAttribute('data-show')).length != 1) { chit=Math.abs(chit); this.setAttribute('data-show','y'); this.title='Adjust providence font size (starts at ' + Math.abs(chit) + 'px)'; document.getElementById('aprovidence').innerHTML=document.getElementById('aprovidence').getAttribute('data-plus'); document.getElementById('aprovidence').setAttribute('data-plus',(document.getElementById('aprovidence').getAttribute('data-plus') == '+' ? '-' : '+')); this.style.fontSize='24px'; setInterval(function(){ document.getElementById('aprovidence').innerHTML=document.getElementById('aprovidence').getAttribute('data-plus'); document.getElementById('aprovidence').setAttribute('data-plus',(document.getElementById('aprovidence').getAttribute('data-plus') == '+' ? '-' : '+')); }, 20000); } else if (this.innerHTML == '+') { if (chit > 0) { chit+=2; document.getElementById('ovdiv').style.fontSize=checkforwsa('' + chit + 'px'); } } else if (this.innerHTML == '-') { if (chit > 0) { chit-=2; document.getElementById('ovdiv').style.fontSize=checkforwsa('' + chit + 'px'); } } \" data-show=\"\" id=aprovidence title='Show song providence (if possible)' style='display:inline-block;font-size:8px;cursor:pointer;text-decoration:none;visibility:visible;'>🪬</a> " + wasbih;
}
}
}
}, 30);
setTimeout(function(){
if (top.document.head.innerHTML.indexOf('clickd' + 'own(') != -1 || top.document.body.innerHTML.indexOf('clickd' + 'own(') != -1 || top.document.head.innerHTML.indexOf(' onPlayerStateChange(') != -1 || top.document.body.innerHTML.indexOf(' onPlayerStateChange(') != -1 || document.head.innerHTML.indexOf(' onPlayerStateChange(') != -1 || document.body.innerHTML.indexOf(' onPlayerStateChange(') != -1) {
if (3 == 4) {
if (top.document.head.innerHTML.indexOf('clickd' + 'own(') != -1 || top.document.body.innerHTML.indexOf('clickd' + 'own(') != -1) {
xgvd=xgvd;
} else {
xcurplay='' + curplay;
//alert('Yes');
setInterval(xcurlook, 2000);
}
if (!top.document.getElementById('ovdiv')) {
// top.document.title+='g';
top.document.body.innerHTML+="<div id=ovdiv id='custom-alert-1' class='custom-alert' style='color:black;padding-left:8px;z-index:89;position:absolute; left:-200px;top:-200px; text-shadow:-1px 1px 1px blue; font-size: 18px; font-weight: bold; visibility: visible;display: inline;opacity:0.7;pointer-events:none;'></div><div id=adiv style='z-index:189;position:absolute; left:-200px;top:-200px; color:transparent; text-shadow:-1px 1px 1px blue; font-size: 18px; font-weight: bold; visibility: visible;display: inline;opacity:0.7;pointer-events:auto;'></div><iframe src='/About_Us.html' id=wikif style=display:none;></iframe>";
}
//if (!top.document.getElementById('aprovidence')) {
// top.document.body.innerHTML+=" <a data-plus=\"+\" ontouchdown=\"event.stopPropagation();\" onmousedown=\"event.stopPropagation();\" onclick=\"event.stopPropagation(); if (('' + this.getAttribute('data-show')).length != 1) { chit=Math.abs(chit); this.setAttribute('data-show','y'); this.title='Adjust providence font size (starts at ' + Math.abs(chit) + 'px)'; document.getElementById('aprovidence').innerHTML=document.getElementById('aprovidence').getAttribute('data-plus'); document.getElementById('aprovidence').setAttribute('data-plus',(document.getElementById('aprovidence').getAttribute('data-plus') == '+' ? '-' : '+')); this.style.fontSize='24px'; setInterval(function(){ document.getElementById('aprovidence').innerHTML=document.getElementById('aprovidence').getAttribute('data-plus'); document.getElementById('aprovidence').setAttribute('data-plus',(document.getElementById('aprovidence').getAttribute('data-plus') == '+' ? '-' : '+')); }, 20000); } else if (this.innerHTML == '+') { if (chit > 0) { chit+=2; document.getElementById('ovdiv').style.fontSize=checkforwsa('' + chit + 'px'); } } else if (this.innerHTML == '-') { if (chit > 0) { chit-=2; document.getElementById('ovdiv').style.fontSize=checkforwsa('' + chit + 'px'); } } \" data-show=\"\" id=aprovidence title='Show song providence (if possible)' style='display:inline-block;font-size:8px;cursor:pointer;text-decoration:none;visibility:visible;'>🪬</a> ";
//}
}
//alert(('' + typeof svplayer));
if (('' + typeof svplayer).replace('object','array') == 'array') {
if (eval('' + vidtall.length) == 0 && eval('' + svplayer.length) != 0) {
iss=true;
top.document.title+='b';
for (var ivpl=0; ivpl<svplayer.length; ivpl++) {
//top.document.title+='' + ivpl;
xuri=svplayer[ivpl].getVideoUrl();
//jis=yid.indexOf(uri.split('=')[1].split('&')[0]);
//dis=event.target.getDuration();
//cti=event.target.getCurrentTime();
xgvd=svplayer[ivpl].getVideoData().title;
vidtall.push(xgvd);
if (xgvd.indexOf(' - ') != -1) {
if (eval('' + vidminus.length) == 0 || top.document.getElementById('wikif').src.indexOf('/About_Us.htm') != -1) {
if (('' + svplayer[ivpl].id).replace('vplayer','') == '1') {
xgtow=xgvd;
setTimeout(function(){
if (top.document.getElementById('awsa')) {
top.document.getElementById('awsa').innerHTML='';
}
top.document.getElementById('adiv').innerHTML='';
top.document.getElementById('adiv').style.top='-800px';
top.document.getElementById('adiv').style.left='-800px';
top.document.getElementById('ovdiv').style.textShadow='-1px 1px 1px blue';
top.document.getElementById('wikif').src=('/PHP/http_methods.php?song=y&url=https://en.wikipedia.org/wiki/' + xgtow.split(' - ')[1].split('(')[0].trim().replace(/\ /g,'_').split(' 1')[0].split(' 2')[0].split(' 3')[0].split(' 4')[0].split(' 5')[0].split(' 6')[0].split(' 7')[0].split(' 8')[0].split(' 9')[0].split(' 0')[0] + '_(song)').replace(/\_\_/g,'_');
lastvp=top.document.getElementById('wikif').src.split('/wiki/')[1];
}, 7000);
top.document.title='Playing ' + xgvd + ' ... ' + top.document.title; //top.document.getElementById('wikif').src.split('/wiki/')[1]; //gvd.split('(')[0].trim().replace(/\ /g,'_') + '_(song)'; //top.document.getElementById('ovdiv').src; //='/http_methods.php?url=https://en.wikipedia.org/wiki/' + gvd.split('(')[0].trim().replace(/\ /g,'_') + '_(Song)';
}
}
vidplus.push(('' + xgvd.split(' - ')[1].split('(')[0].trim().replace(/\ /g,'_').split(' 1')[0].split(' 2')[0].split(' 3')[0].split(' 4')[0].split(' 5')[0].split(' 6')[0].split(' 7')[0].split(' 8')[0].split(' 9')[0].split(' 0')[0] + '_(song)').replace(/\_\_/g,'_'));
} else {
if (eval('' + vidminus.length) == 0 || top.document.getElementById('wikif').src.indexOf('/About_Us.htm') != -1) {
if (('' + svplayer[ivpl].id).replace('vplayer','') == '1') {
xgtow=xgvd;
setTimeout(function(){
if (top.document.getElementById('awsa')) {
top.document.getElementById('awsa').innerHTML='';
}
top.document.getElementById('adiv').innerHTML='';
top.document.getElementById('adiv').style.top='-800px';
top.document.getElementById('adiv').style.left='-800px';
top.document.getElementById('wikif').src=('/PHP/http_methods.php?song=y&url=https://en.wikipedia.org/wiki/' + xgtow.split('(')[0].trim().replace(/\ /g,'_').split(' 1')[0].split(' 2')[0].split(' 3')[0].split(' 4')[0].split(' 5')[0].split(' 6')[0].split(' 7')[0].split(' 8')[0].split(' 9')[0].split(' 0')[0] + '_(song)').replace(/\_\_/g,'_');
lastvp=top.document.getElementById('wikif').src.split('/wiki/')[1];
}, 7000);
top.document.title='Playing ' + xgvd + ' ... ' + top.document.title; //top.document.getElementById('wikif').src.split('/wiki/')[1]; //gvd.split('(')[0].trim().replace(/\ /g,'_') + '_(song)'; //top.document.getElementById('ovdiv').src; //='/PHP/http_methods.php?url=https://en.wikipedia.org/wiki/' + gvd.split('(')[0].trim().replace(/\ /g,'_') + '_(Song)';
}
}
vidplus.push(('' + xgvd.split('(')[0].trim().replace(/\ /g,'_').split(' 1')[0].split(' 2')[0].split(' 3')[0].split(' 4')[0].split(' 5')[0].split(' 6')[0].split(' 7')[0].split(' 8')[0].split(' 9')[0].split(' 0')[0] + '_(song)').replace(/\_\_/g,'_'));
}
if (eval('' + ('' + xuri).length) == 11) {
vidminus.push(xuri);
} else {
console.warn('xuri =' + xuri);
vidminus.push(xuri.replace('v=','/embed/').split('/embed/')[1].substring(0,11));
}
}
}
} else if (eval('' + vidtall.length) == 0 && eval('' + vplayer.length) != 0) {
top.document.title+='b';
for (var ivpl=0; ivpl<vplayer.length; ivpl++) {
top.document.title+='' + ivpl;
xuri=vplayer[ivpl].getVideoUrl();
//jis=yid.indexOf(uri.split('=')[1].split('&')[0]);
//dis=event.target.getDuration();
//cti=event.target.getCurrentTime();
xgvd=vplayer[ivpl].getVideoData().title;
vidtall.push(xgvd);
if (xgvd.indexOf(' - ') != -1) {
if (eval('' + vidminus.length) == 0 || top.document.getElementById('wikif').src.indexOf('/About_Us.htm') != -1) {
if (('' + vplayer[ivpl].id).replace('vplayer','') == '1') {
xgtow=xgvd;
setTimeout(function(){
if (top.document.getElementById('awsa')) {
top.document.getElementById('awsa').innerHTML='';
}
top.document.getElementById('adiv').innerHTML='';
top.document.getElementById('adiv').style.top='-800px';
top.document.getElementById('adiv').style.left='-800px';
top.document.getElementById('ovdiv').style.textShadow='-1px 1px 1px blue';
top.document.getElementById('wikif').src=('/PHP/http_methods.php?song=y&url=https://en.wikipedia.org/wiki/' + xgtow.split(' - ')[1].split('(')[0].trim().replace(/\ /g,'_').split(' 1')[0].split(' 2')[0].split(' 3')[0].split(' 4')[0].split(' 5')[0].split(' 6')[0].split(' 7')[0].split(' 8')[0].split(' 9')[0].split(' 0')[0] + '_(song)').replace(/\_\_/g,'_');
lastvp=top.document.getElementById('wikif').src.split('/wiki/')[1];
}, 7000);
top.document.title='Playing ' + xgvd + ' ... ' + top.document.title; //top.document.getElementById('wikif').src.split('/wiki/')[1]; //gvd.split('(')[0].trim().replace(/\ /g,'_') + '_(song)'; //top.document.getElementById('ovdiv').src; //='/http_methods.php?url=https://en.wikipedia.org/wiki/' + gvd.split('(')[0].trim().replace(/\ /g,'_') + '_(Song)';
}
}
vidplus.push(('' + xgvd.split(' - ')[1].split('(')[0].trim().replace(/\ /g,'_').split(' 1')[0].split(' 2')[0].split(' 3')[0].split(' 4')[0].split(' 5')[0].split(' 6')[0].split(' 7')[0].split(' 8')[0].split(' 9')[0].split(' 0')[0] + '_(song)').replace(/\_\_/g,'_'));
} else {
if (eval('' + vidminus.length) == 0 || top.document.getElementById('wikif').src.indexOf('/About_Us.htm') != -1) {
if (('' + vplayer[ivpl].id).replace('vplayer','') == '1') {
xgtow=xgvd;
setTimeout(function(){
if (top.document.getElementById('awsa')) {
top.document.getElementById('awsa').innerHTML='';
}
top.document.getElementById('adiv').innerHTML='';
top.document.getElementById('adiv').style.top='-800px';
top.document.getElementById('adiv').style.left='-800px';
top.document.getElementById('wikif').src=('/PHP/http_methods.php?song=y&url=https://en.wikipedia.org/wiki/' + xgtow.split('(')[0].trim().replace(/\ /g,'_').split(' 1')[0].split(' 2')[0].split(' 3')[0].split(' 4')[0].split(' 5')[0].split(' 6')[0].split(' 7')[0].split(' 8')[0].split(' 9')[0].split(' 0')[0] + '_(song)').replace(/\_\_/g,'_');
lastvp=top.document.getElementById('wikif').src.split('/wiki/')[1];
}, 7000);
top.document.title='Playing ' + xgvd + ' ... ' + top.document.title; //top.document.getElementById('wikif').src.split('/wiki/')[1]; //gvd.split('(')[0].trim().replace(/\ /g,'_') + '_(song)'; //top.document.getElementById('ovdiv').src; //='/PHP/http_methods.php?url=https://en.wikipedia.org/wiki/' + gvd.split('(')[0].trim().replace(/\ /g,'_') + '_(Song)';
}
}
vidplus.push(('' + xgvd.split('(')[0].trim().replace(/\ /g,'_').split(' 1')[0].split(' 2')[0].split(' 3')[0].split(' 4')[0].split(' 5')[0].split(' 6')[0].split(' 7')[0].split(' 8')[0].split(' 9')[0].split(' 0')[0] + '_(song)').replace(/\_\_/g,'_'));
}
if (eval('' + ('' + xuri).length) == 11) {
vidminus.push(xuri);
} else {
console.warn('xuri=' + xuri);
vidminus.push(xuri.replace('v=','/embed/').split('/embed/')[1].substring(0,11));
}
}
}
}
//top.document.getElemenyById('vplayer1').style.left='0px';
}, 7000);