📜 ⬆️ ⬇️

Another reason to switch to SSL, or 133 KB is not superfluous.

KDPV



It's getting dark


My friend and I did a simple test ( github ) to check the availability of the data-uri in browsers. It looks like this:
')


In textarea javascript is inserted by navigator.userAgent . At this moment, I do not know what hit me in the head, but instead of DOMContentLoaded , I wrote . - , wi-fi, .


, , , . , , userAgent textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914 — if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)
. - , wi-fi, .


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914 — if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)

. - , wi-fi, .


, , , . , , userAgent textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914 — if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)

. - , wi-fi, .


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914 — if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)

. - , wi-fi, .


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914 — if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)

. - , wi-fi, .


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914 — if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)

. - , wi-fi, .


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914 — if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)

. - , wi-fi, .


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914 — if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)
 . -           ,     wi-fi,      . 


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)
. - , wi-fi, .


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914 — if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)
 . -           ,     wi-fi,      . 


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)
. - , wi-fi, .


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914 — if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)

. - , wi-fi, .


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914 — if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)

. - , wi-fi, .


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914 — if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)
 . -           ,     wi-fi,      . 


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)
. - , wi-fi, .


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914 — if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)
 . -           ,     wi-fi,      . 


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)
. - , wi-fi, .


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914 — if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)
 . -           ,     wi-fi,      . 


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)
. - , wi-fi, .


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914 — if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)
 . -           ,     wi-fi,      . 


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)
. - , wi-fi, .


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914 — if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)
 . -           ,     wi-fi,      . 


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)
. - , wi-fi, .


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914 — if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)
 . -           ,     wi-fi,      . 


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)
. - , wi-fi, .


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914 — if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)

. - , wi-fi, .


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914 — if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)

. - , wi-fi, .


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914 — if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)
 . -           ,     wi-fi,      . 


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)
. - , wi-fi, .


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914 — if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)

. - , wi-fi, .


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914 — if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)

. - , wi-fi, .


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914 — if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)
. - , wi-fi, .


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914 — if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)
. - , wi-fi, .


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914 — if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)
. - , wi-fi, .


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914 — if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)
. - , wi-fi, .


, , , . , , userAgent
textarea — .

, . , . . ! .

wi-fi , . wi-fi , - .




-, , . JS'?

:



Beeline, . ~133 .

Anchor.js toolbar.beeline.ru/ets/scripts/Anchor.js , . JS , — gist .

?
133 :
* 91 jQuery v1.7.2;
* 42 .

, CDN jQuery. . .

914 — if :

if (document.getElementById('toolbar') == null) { //... }

Apple:
function getIOSVersionNumber(){} function isIt(theDevice){} function isMobile(){} function isIPhone(){} function isIPad(){} function getBodyZoomLevel () {}; function isNumberPercentageBased(number) {} function getVisualViewportInfo () {};

We need to go deeper
:

(function(jQFrm){ if (window.XDomainRequest) { // } })(jQFrm);

XDomainRequest , IE8 IE9. , .

:

var ets_scripts = jQFrm('[name="ets-anchor"]'); jQFrm(window).resize(function() { resizeIframe(); }); if (ets_scripts.length == 1) { // }

if .
Anchor.js , - .



:

(function() { var msgHandler = function(e) { var ets_frame = document.getElementById('toolBarPcFrame'); if (e.origin == 'http://toolbar.beeline.ru') { // 500 } else { //alert(e.origin); throw new Error('Origin domain is not allowed.'); } } // listen for the message event window.addEventListener('message', msgHandler, false); })();

iframe window.postMessage .

...:
function GetWidth() {} function GetHeight(){} function resizeIframe(){} window.onpageshow = function(evt){}; window.onorientationchange = function(){}; window.onload = function(){ //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } }; function isLandscape(){} function orientation_changed(actionId){} if (isMobile()){}

Oh, wait. — window.onload

window.onload = function() { //etsAppMain functions (search application) if (InitParamForScroll) { InitParamForScroll(); } };

if' .
$(document).ready(function() $('html').append('<div id="toolbar" tabindex="-1" style="border-width:0px;outline-width:0px;"></div>'); var currentTime = new Date(); /*var pathname = window.location.href; var screenWidth = screen.width;*/ var ifrm = document.createElement("IFRAME"); ifrm.setAttribute("id", "toolBarPcFrame"); /*ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet?screenWidth="+screenWidth+"&url="+pathname);*/ ifrm.setAttribute("src", "http://toolbar.beeline.ru/ets/ToolBarPcServlet"); ifrm.setAttribute("allowtransparency", "true"); ifrm.setAttribute("background-color", "transparent"); ifrm.style.position = "fixed"; ifrm.style.zIndex = 9999999999; //

, html div , iframe toolbar.beeline.ru/ets/ToolBarPcServlet . CSS- position, zIndex . ;)

-
, gist .

document.addEventListener('DOMContentLoaded', function() { var toolbar = document.getElementById('toolbar'), iframe = toolbar && toolbar.firstElementChild; if (iframe && /beeline/.test(iframe.getAttribute('src'))) { toolbar.parentNode.removeChild(toolbar); } }); setTimeout(function() { var script = document.querySelector('script[name=ets-anchor]'); if (script) { script.parentNode.removeChild(script); } }, 0);
. gist :)

.
" onload ", :
, , SSL , __ ; 90 jQuery , , document.getElementById ; , "-"




homenet.beeline.ru/index.php?showtopic=315433 .

PS . Beeline_Rus . , .



update
SSL-. . , Toolbar .

update, 6 2014
18- , pomogite@beeline.ru :
, !

. . , .
, .

, , . , / HTML' . , :(

, . - ? ;)

Source: https://habr.com/ru/post/230921/


All Articles