01.08.2015, 16:11 | #2 |
Не эксперт ни разу
Регистрация: 26.04.2007
Сообщений: 1,208
Вес репутации: 290
|
я вчера тоже получил извещение, но, похоже, в нем инфа месячной или около того давности. Потому что у меня давно уже стоит именно тот код, который мне вчера предложили установить.
__________________
|
01.08.2015, 21:25 | #3 |
Дикий
Регистрация: 02.06.2007
Адрес: <Noindex>
Сообщений: 2,551
Вес репутации: 357
|
+1 Проверил все коды. Все - новые и асинхронные.
__________________
Делаю кулоны с опалами в стекле и не только! |
02.08.2015, 00:34 | #4 |
Не эксперт ни разу
Регистрация: 26.04.2007
Сообщений: 1,208
Вес репутации: 290
|
Сравнил с апрельским вариантом, который у меня стоял.
Было: <script async src=... Стало: <script async="async" src=... Но, по-моему, это одно и то же.
__________________
|
21.10.2015, 15:17 | #5 |
Новичок
Регистрация: 10.03.2011
Сообщений: 3
Вес репутации: 0
|
На некоторых сайтах появился код - скрипт, вот такой
<!-- SAPE RTB END --><script type="text/javascript"> window.addEventListener('load',function(event){var ab_detector={};if(!Date.now){Date.now=function(){r eturn new Date().getTime();}} ab_detector.getTimestampMs=function(){return''+(ne w Date().getTime());};ab_detector.generateUUID=funct ion(){return'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g,function(c){var r=Math.random()*16|0,v=c=='x'?rr&0x3|0x8);return v.toString(16);}).toLowerCase();};ab_detector.enco deUriParam=function(value){if(null==value){return' ';} value=''+value;return(encodeURIComponent instanceof Function)?encodeURIComponent(value):escape(value); };ab_detector.implodeUriParams=function(params){va r key,uriParams=[];for(key in params){if(params.hasOwnProperty(key)){uriParams.p ush(key+'='+params[key]);}} return uriParams.join('&');};ab_detector.makeRequestUri=f unction(baseUrl,uriParams){var uri=ab_detector.implodeUriParams(uriParams);if(uri .length>8000){uri=uri.substr(0,8000);} return baseUrl+'?'+uri;};ab_detector.makeRequestImage=fun ction(url){(window.Image?(new Image()):document.createElement('img')).src=url;}; ab_detector.makeRequestIframe=function(url){var ifr=document.createElement('iframe');if(ifr){ifr.s etAttribute('src',url);ifr.setAttribute('style','w idth:1px;height:1px;display:none;');document.body. appendChild(ifr);}};ab_detector.cookies={getItem:f unction(sKey){return decodeURIComponent(document.cookie.replace(new RegExp("(??:^|.*\\s*"+encodeURIComponent(sKey) .replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null;},setItem:function(sKey ,sValue,vEnd,sPath,sDomain,bSecure){if(!sKey||/^(?:expires|max\-age|path|domain|secure)$/i.test(sKey)){return false;} var sExpires="";if(vEnd){switch(vEnd.constructor){case Number:sExpires=vEnd===Infinity?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+vEnd;break;case String:sExpires="; expires="+vEnd;break;case Date:sExpires="; expires="+vEnd.toUTCString();break;}} document.cookie=encodeURIComponent(sKey)+"="+encod eURIComponent(sValue)+sExpires+(sDomain?"; domain="+sDomain:"")+(sPath?"; path="+sPath:"")+(bSecure?"; secure":"");return true;},removeItem:function(sKey,sPath,sDomain){if( !sKey||!this.hasItem(sKey)){return false;} document.cookie=encodeURIComponent(sKey)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(sDomain?"; domain="+sDomain:"")+(sPath?"; path="+sPath:"");return true;},hasItem:function(sKey){return(new RegExp("(?:^|;\\s*)"+encodeURIComponent(sKey).repl ace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=")).test(document.cookie);},keys :function(){var aKeys=document.cookie.replace(/((?:^|\s*[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/);for(var nIdx=0;nIdx<aKeys.length;nIdx++){aKeys[nIdx]=decodeURIComponent(aKeys[nIdx]);} return aKeys;}};ab_detector.isHidden=function(elem){if(el em.offsetWidth==0&&elem.offsetHeight==0){return true;} if(typeof window.getComputedStyle=='function'){var style=window.getComputedStyle(elem);return style.display==='none';} return false;};ab_detector.getCookie=function(){var cookie;if(this.cookies.hasItem('ab_detector')){coo kie=this.cookies.getItem('ab_detector');} else{cookie=this.generateUUID();this.cookies.setIt em('ab_detector',cookie);} return cookie;};ab_detector.onCheck=function(blocked){var props={'v':5,'b':+blocked,'h':window.location.host ,'u':this.getCookie(),'c':this.tryCounter,'ts':thi s.getTimestampMs()};var uri=this.makeRequestUri('http://namuyutno.ru/detector/',props);this.makeRequestImage(uri);if(document.ge tElementById('ab_detector')){var id=blocked?'ab_detector_yes':'ab_detector_no';docu ment.getElementById(id).style.display='block';cons ole.log('ab'+(blocked?' ':' NOT ')+'detected');console.log('url: '+uri);}};ab_detector.createTestElement=function() {var elem=document.createElement('iframe');elem.id='ab_ detector_block';elem.className='text-ad advblock textAds ad-click adBanner';elem.setAttribute('style','width: 1px !important; height: 1px !important; position: absolute !important; left: -10000px !important; bottom: -1000px !important;');elem.setAttribute('src','http://ad.adriver.ru/cgi-bin/erle.cgi');document.body.appendChild(elem);};ab_de tector.checkByDiv=function(){var self=this;var elem=document.getElementById('ab_detector_block'); if(!elem){self.createTestElement();setTimeout(func tion(){self.checkByDiv();},1);return;} var nofTries=50,tryTimeout=200;if(this.tryCounter===un defined){this.tryCounter=0;} var blocked=this.isHidden(elem);if(!blocked&&this.tryC ounter<nofTries){this.tryCounter+=1;setTimeout(fun ction(){self.checkByDiv();},tryTimeout);return;} self.onCheck(blocked);setTimeout(function(){elem.p arentNode.removeChild(elem);},5000);};ab_detector. checkByDiv();},false);</script> ! Что так и должно быть ... |
|
|
Похожие темы | ||||
Тема | Автор | Раздел | Ответов | Последнее сообщение |
Нужна помощь,небольшое изменение кода php, 200р. | rock555 | Поиск исполнителей | 2 | 13.10.2014 14:15 |
Чтобы почитать? | Secundum | Курилка | 80 | 31.07.2011 16:16 |
Дайте что-то почитать! | SergeyK2008 | Курилка | 7 | 29.09.2009 09:00 |
Обновление и изменение кода | Бегемотов | Вопросы от новичков | 1 | 29.01.2008 15:16 |
Рекомендую почитать всем! | SergVK | Пожелания пользователей системы | 1 | 22.04.2007 21:05 |
Часовой пояс GMT +3, время: 17:31.