Форум SAPE.RU

Форум SAPE.RU (http://forum.sape.ru/index.php)
-   Rtb.Sape (http://forum.sape.ru/forumdisplay.php?f=77)
-   -   Изменение кода РТБ. Где почитать? (http://forum.sape.ru/showthread.php?t=95614)

Салоед 01.08.2015 14:22

Изменение кода РТБ. Где почитать?
 
А где можно почитать про изменение кода РТБ, который мы размещаем на сайтах? Получил на почту оповещение.

llenivo 01.08.2015 16:11

я вчера тоже получил извещение, но, похоже, в нем инфа месячной или около того давности. Потому что у меня давно уже стоит именно тот код, который мне вчера предложили установить.

D.iK.iJ 01.08.2015 21:25

+1 Проверил все коды. Все - новые и асинхронные.

llenivo 02.08.2015 00:34

Сравнил с апрельским вариантом, который у меня стоял.
Было: <script async src=...
Стало: <script async="async" src=...

Но, по-моему, это одно и то же.

Alexander Bragin 21.10.2015 15:17

На некоторых сайтах появился код - скрипт, вот такой
<!-- 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'?r:(r&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>
!
Что так и должно быть ...


Часовой пояс GMT +3, время: 19:34.

Работает на vBulletin® версия 3.8.7.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Перевод: zCarot
SAPE.RU — система купли-продажи ссылок с главных и внутренних страниц сайтов.