JSFiddle - React, Tailwind, and code Playground
working_myFuncinIframeAndAlsoWindowOpenSameFunction_v01-- index of (streZZZaming links:) _v41 37 was last known good
by dledle2
HTML
<!--googleoff: index-->
<!-- https://stackoverflow.com/questions/3207211/is-there-a-way-to-make-robots-ignore-certain-text
working_myFuncinIframeAndAlsoWindowOpenSameFunction_v01
// -->
<meta name='robots' content='nofollow'>
<meta name='robots' content='disallow'>
<meta name='robots' content='noindex'>
<meta name='robots' content='noindex,disallow,nofollow'>
<div id="myPageContentDIV" class="myPageContentClass">
<!--googleoff: index-->
<meta name='robots' content='nofollow'>
<meta name='robots' content='disallow'>
<meta name='robots' content='noindex'>
<meta name='robots' content='noindex,disallow,nofollow'>
<pre>index of (streZZZaming links:)
</pre>
<font size="6">
<a rel='nofollow' target="_blank" href='http://cdnapi.kaltura.com/p/931702/sp/93170200/playManifest/entryId/1_oorxcge2/format/applehttp/protocol/http/uiConfId/28428751/a.m3u8'>raw stream for mobilesafari-Weather Nation</a><br>
<a rel='nofollow' target="_blank" href='http://weather-lh.akamaihd.net/i/twc_1@92006/master.m3u8'>raw stream for mobilesafari-Weather Channel</a><br>
<a rel='nofollow' target="_blank" href='http://tvm.okalo.com'>msnbc</a><br>
<a rel='nofollow' target="_blank" href='http://tvm296.okalo.com'>msnbc 296 bitrate</a><br>
<a rel='nofollow' target="_blank" href='http://fiddle.jshell.net/dledle2/gnr8zp47/show/light/'>try2- msnbc 296 -Clappr.JS</a><br>
<a rel='nofollow' target="_blank" href='http://fiddle.jshell.net/dledle2/r6wayxaf/show/light/'>try2- msnbc 1296 -Clappr.JS</a><br>
<a rel='nofollow' target="_blank" href='http://fiddle.jshell.net/dledle2/1hf08x7L/show/light/'>newYYY try2- msnbc 1296 -Clappr.JS</a><br>
<a rel='nofollow' target="_blank" href='http://fiddle.jshell.net/dledle2/h17gozru/show/light/'>h17gozru (rewinds 25mins from live using VideoJS)- msnbc 796</a><br>
<a rel='nofollow' target="_blank" href='http://fiddle.jshell.net/dledle2/vnukyb5n/show/light/'>msnbc RawLive or international 800k -(adding number input box_v01N)-videojs</a><br>
...
JavaScript
function myFuncinIframeAndAlsoWindowOpenSameFunction() {
if (typeof window.boolWindowOpenedSuccessfullyAlready == 'undefined')
{ window.boolWindowOpenedSuccessfullyAlready=false; }
console.log(window.boolWindowOpenedSuccessfullyAlready);
if (window.boolWindowOpenedSuccessfullyAlready ===false) {
try {
if(window.self !== window.top){
if (window.open(window.location.href)){window.boolWindowOpenedSuccessfullyAlready=true;}
/* */
}
}catch(e){}
}
console.log(window.boolWindowOpenedSuccessfullyAlready);
/* below end bracket: end of function: myFuncinIframeAndAlsoWindowOpenSameFunction */
}
myFuncinIframeAndAlsoWindowOpenSameFunction();
/* myStrURL=window.location.href; */
/* try{window.open(myStrURL , '' , ''); }catch(e){} */
function parseURL(url) {
var a=document.createElement('a');
a.href=url;
return a.hostname;
}
function parseURL_getHostname_doNotPassAnyVariableToThisFunctionSomehow(url) {
var a=document.createElement('a');
a.href=url;
return a.hostname;
}
try{
console.log(parseURL_getHostname_doNotPassAnyVariableToThisFunctionSomehow() );
}catch(e){}
try{
if (document.referrer.contains('jshell.net') )
{console.log('true, document.referrer contains jshell.net'); }
}catch(e){}
try{
if (window.self === window.top)
{console.log('true, window.self is the same as window.top '); }
}catch(e){}
/*
console.log(parseURL_getHostname() );
if ( parseURL_getHostname(document.referrer.toLowerCase() ) === 'fiddle.jshell.netZ' )
{
console.log('IF STATEMENT check: yes hostname successfully matched');
}
else if ( parseURL_getHostname(document.referrer.toLowerCase() ) === 'fiddle.jshell.netZ' )
{
console.log('IF STATEMENT check: referer domain did not match');
}
else
{
console.log('IF STATEMENT check: referer domain did not match');
}
*/
/* IF FALSE added below because i want to currently disable the random URL opening ...