Блог им. kulakov74
//WhiteHosts='moex.com cbr.ru banki.ru youtube.com vk.com facebook.com';
function FixLinksMD(e){
var o=e.srcElement;
if (o.tagName!='A' || o.pathname!='/r.php') return;
var pos1, pos2, s=o.search, href, M, dmn;
pos1=s.indexOf('u='); if (pos1==-1) return;
pos1+=2; pos2=s.lastIndexOf('&s='); if (pos2==-1) pos2=s.length;
href=decodeURIComponent(s.substring(pos1, pos2));
if (window.WhiteHosts){
M=href.match('https?://([^/]+)');
if (M){
dmn=M[1];
if (dmn.substr(0, 4)=='www.') dmn=dmn.substr(4);
if (!WhiteHosts.match("\\b"+dmn+"\\b")) return;
}
}
o.href=decodeURIComponent(href);
}
document.body.addEventListener('mousedown', FixLinksMD, false);
function FixLinksMD(e){
var o=e.srcElement; if (o.tagName!='A') return;
if (o.pathname.indexOf('/away/')==-1) return;
var pos1, pos2, s=o.search;
pos1=s.indexOf('url='); if (pos1==-1) return;
pos1+=4; o.href=decodeURIComponent(s.substr(pos1));
}
document.body.addEventListener('mousedown', FixLinksMD, false);
.page.active{
background-color:black;
}
.page{
padding:0 5px;
border:0;
border-radius:0;
color:#000000!important;
margin:0;
text-shadow:none;
}
.page.gradient{background:none;}
.page.gradient:hover{
background:#E0E0E0;
}
.page.gradient:active, .page.gradient:focus{
background-color:gray;
color:white!important;
}
@media screen and (max-width: 1000px) {
#content_box{float:none;}
.sidebar_left {
min-height:auto;
width:auto;
}
.sidebar_left .cl{
float:left;
min-height:auto;
}
ul.lenta_menu li.special{display:inline;}
.block.reklamodateli{float:left;}
.lenta_menu .delimiter{display:none;}
}
А за инструмент спасибо