var my_ads=null; var original_height=0; var cur_height=0; function HideMyAd() { my_ads=document.getElementById('ad-content'); if(original_height==0){ original_height=my_ads.offsetHeight; cur_height=original_height; } _shrink(); } function _shrink() { if (cur_height > 0) { cur_height -= 1; my_ads.style.height = cur_height + "px"; requestAnimationFrame(_shrink); }else{ document.getElementById('to-hide').style.display="none"; document.getElementById('to-show').style.display="inline"; } } function _expand() { if (cur_height < original_height) { cur_height += 1; my_ads.style.height = cur_height + "px"; requestAnimationFrame(_expand); }else{ document.getElementById('to-hide').style.display="inline"; document.getElementById('to-show').style.display="none"; } } function ShowMyAd() { _expand(); } function HidePopUps() { let element = document.querySelector('[jsname="XKSfm"]'); if(element!=null){ element.style.display = "none"; } element=document.querySelector('[class="HTjtHe"]'); if(element!=null){ element.style.display = "none"; } } window.addEventListener('load',function(){ var newElement = document.createElement('div'); newElement.setAttribute('style', 'position:fixed;bottom:0;width:100%;min-height:10px;border:1px solid #ccc;box-shadow:2px -2px 3px #aaa;background-color:#f3f3f3;text-align:center;z-index:1000;'); newElement.innerHTML='