24/7 или "Культурное и уважительное общение на свободную тематику"

Тема закрыта
241K
.
Screamer

Вот скрипт кому надо:

/**
 * user-script for johncms.com
 * @author Screamer <nwotnbm@gmail.com>
 * design by Dolmat
 */

var styleCss
= 'body {background-color: #404044;color: #969696;font-family: Arial, Tahoma, sans-serif;font-size: small;margin: 0 auto;padding: 0;max-width: 800px;}'
+ 'a:link:hover {color: #FF0000;text-decoration: none;}'
+ 'a:link, a:visited {color: #FFFFFF;text-decoration: none;}'
+ 'a:active{color: #666600;text-decoration: none;}'
+ 'textarea {width: 99%;max-width: 640px;background-color: #353537;border: 1px solid #292929;}'
+ 'p {margin-bottom: 6px;margin-top: 6px;}'
+ 'hr {border: 0;border-top: 1px solid #808080;margin: 0;}'
+ 'ul {margin: 0;padding-left: 20px;}'
+ 'input {background: #3F3F42 repeat-x top;border: 1px solid #292929;padding: 7px;color: #FFFFFF;}'
+ '.tmn, .fmenu {color: #404044;margin: 0;padding: 5px;}'
+ '.phdr {background-color: #414142;padding: 5px;border-bottom: 1px solid #282828;}'
+ '.menu {padding: 8px;text-decoration: none;color: #F5F5F8;border-top: 1px solid #6E6E71;border-bottom: 1px solid #282828;background: #4A4A4E no-repeat 99%;}'
+ '.footer, .header {background: #3E3E42;border-bottom: 1px solid #292929;color: #D0D7DD;margin: 0;padding: 15px;border-top: 1px solid #5C5C5F;text-align: center;}'
+ '.footer a:link, .footer a:visited{color: #969696;padding: 5px;background-color: #313131;border-radius: 5px;text-align: right;box-shadow: 0 1px #656567;}'
+ '.list1 {padding: 8px;text-decoration: none;color: #F5F5F8;border-top: 1px solid #6E6E71;border-bottom: 1px solid #282828;background: #4A4A4E no-repeat 99%;}'
+ '.list2 {padding: 8px;text-decoration: none;color: #F5F5F8;border-top: 1px solid #6E6E71;border-bottom: 1px solid #282828;background: #5A5A5E no-repeat 99%;}'
+ '.maintxt {font-weight: normal;}'
+ '.gmenu {background-color: #414144;padding: 3px 4px;border-bottom: 1px solid #292929;}'
+ '.topmenu {font-size: x-small;padding: 3px 3px 3px 5px;}'
+ '.alarm, .rmenu {padding: 8px;text-decoration: none;color: #F5F5F8;border-top: 1px solid #9A5A5A;border-bottom: 1px solid #282828;background: #6F3B3B no-repeat 99%;}'
+ '.sub {border-top: 1px dotted #7D7D7D;font-size: x-small;margin-top: 4px;}'
+ '.gray {color: #A7A7A7;}'
+ '.red, .red a {color: #FF0000;}'
+ '.green, .green a {color: #00DA00;}'
+ '.status {color: #CD853F;font-size: x-small;font-weight: bold;padding-left: 0;}'
+ '.user {background-color: #CBDBE7;border: 1px solid #FFFFFF;margin: 0;padding: 3px 4px;}'
+ '.currentpage {background-color: #EDEBEB;border: 1px solid #CCCCCC;padding: 0px 5px;}'
+ 'a.pagenav {border: 1px solid #CCCCCC;padding: 0px 3px;text-decoration: none;}'
+ 'a.pagenav:hover {background-color: #F7F7F7;border: 1px solid #DEDEDE;}'
+ '.reply {border-left: 4px solid #F00;color: #F00;padding: 2px 0 2px 4px;}'
+ '.greply {border-left: 4px solid #009900;color: #009900;padding: 2px 0 2px 4px;}'
+ '.sitemap {display:none;}'
+ '.func {border-left: 4px solid #903A3A;color: #757575;font-size: x-small;margin-left: 2px;margin-top: 4px;padding-left: 4px;}'
+ '.quote {border-top: 1px dotted #C0C0C0;border-bottom: 1px dotted #C0C0C0;color: #a7a7a7;font-size: small;margin-left: 2px;padding: 2px 0 2px 4px;}'
+ '.phpcode {background-color: #E0E6E9;border: 1px dotted #9FAEBB;margin-top: 4px;padding: 0 2px;overflow: auto;}'
+ '.news{background-color: #EEEEEE;border: 1px solid #FFFFFF;color: #333333;font-size: x-small;padding: 3px 4px 4px;}'
+ '.bblist {color: #4A5663;background: transparent url(../../images/dot.gif) no-repeat left;padding: 0px 0px 0px 10px;}'
+ '.tmn a:link:hover, .fmenu a:link:hover{text-decoration: none;color: #F00;}'
+ '.tmn a:link, .tmn a:visited, .fmenu a:link, .fmenu a:visited{color: #969696;padding: 5px;background-color: #313131;border-radius: 5px;text-align: right;box-shadow: 0 1px #656567;}'
+ '.bmenu {padding: 8px;text-decoration: none;color: #F5F5F8;border-top: 1px solid #6E6E71;border-bottom: 1px solid #282828;background: #5A5A5E no-repeat 99%;}';

if (document.location.href.match(/\.jpg|\.png|\.jpeg|\.gif|\.bmp/) == null) {
window.onload = function() {
// Change css style
var css = document.getElementsByTagName('link');
for (var i = 0; i < css.length; i++) {
if (typeof css.rel == 'string' && css[i].rel == 'stylesheet') {
var cssParentNode = css[i].parentNode;
cssParentNode.removeChild(css[i]);
var newCss = document.createElement('style');
newCss.innerHTML = styleCss;
cssParentNode.appendChild(newCss);
break;
}
}
if (typeof tag == 'function') {
// BB codes;
var textarea_field = document.getElementsByTagName('textarea')[0];
textarea_field.style.margin = '10px 2px 2px 3px';
var textarea = textarea_field.parentNode;
var textarea_style = textarea.getElementsByTagName('style')[0];
textarea_style.innerHTML = 
'a.bb_button{background:#414142;color:#969696;padding:5px;margin:2px;border:1px solid #282828;font-weight:bold;font-size:12px;}'
+ 'a.bb_button:hover{background:#565656; color: #969696;}'
+ 'a.bb_button:active{color:#666600;}'
+ '.bb_color a {float:left;  width:9px; height:9px; margin:1px; border: 1px solid black;}';
textarea.innerHTML = textarea.innerHTML.replace(//Bold
/<a href="(.+?)"><img src="(.+?)images\/bb\/bold\.gif"(.+?)\/><\/a>/, 
'
<a class="bb_button" href="javascript:tag(\'\', \'\', \'\')">B</a>'
);
textarea.innerHTML = textarea.innerHTML.replace(// Italic
/<a href="(.+?)"><img src="(.+?)images\/bb\/italics\.gif"(.+?)\/><\/a>/, 
'<a class="bb_button" href="javascript:tag(\'[i]\', \'\', \'\')">I</a>'
);
textarea.innerHTML = textarea.innerHTML.replace(// Underline
/<a href="(.+?)"><img src="(.+?)images\/bb\/underline\.gif"(.+?)\/><\/a>/, 
'<a class="bb_button" href="javascript:tag(\'\', \'\', \'\')">U</a>'
);
textarea.innerHTML = textarea.innerHTML.replace(// Strikeout
/<a href="(.+?)"><img src="(.+?)images\/bb\/strike\.gif"(.+?)\/><\/a>/, 
'<a class="bb_button" href="javascript:tag(\'\', \'\', \'\')">S</a>'
);
textarea.innerHTML = textarea.innerHTML.replace(// List
/<a href="(.+?)"><img src="(.+?)images\/bb\/list\.gif"(.+?)\/><\/a>/, 
'<a class="bb_button" href="javascript:tag(\'\', \'\', \'\')">&#8801;</a>'
);
textarea.innerHTML = textarea.innerHTML.replace(// Quote
/<a href="(.+?)"><img src="(.+?)images\/bb\/quote\.gif"(.+?)\/><\/a>/, 
'<a class="bb_button" href="javascript:tag(\'
\', \'
\', \'\')">Q</a>' ); textarea.innerHTML = textarea.innerHTML.replace(// PHP code /<a href="(.+?)"><img src="(.+?)images\/bb\/php\.gif"(.+?)\/><\/a>/, '<a class="bb_button" href="javascript:tag(\'[php]\', \'\', \'\')">PHP</a>'
);
textarea.innerHTML = textarea.innerHTML.replace(// URL
/<a href="(.+?)"><img src="(.+?)images\/bb\/link\.gif"(.+?)\/><\/a>/,
'<a class="bb_button" href="javascript:tag(\'[url=]\', \'[/url]\', \'\')">URL</a><a class="bb_button" href="javascript:tag(\'\', \'\', \'\')">BIG</a><a class="bb_button" href="javascript:tag(\'\', \'\', \'\')">SMALL</a><a class="bb_button" href="javascript:tag(\'\', \'\', \'\')">RED</a><a class="bb_button" href="javascript:tag(\'\', \'\', \'\')">GREEN</a><a class="bb_button" href="javascript:tag(\'\', \'\', \'\')">BLUE</a>'
);
// Add Spoilers handler
textarea.getElementsByTagName('script')[0].innerHTML
+= "\n"
+ 'function spoiler(element_id){'
+ 'var _n=document.getElementById(element_id);'
+ ' _n.style.display = _n.style.display == \'none\' ? \'\' : \'none\';'
+ '}';
// Handle hidden panels (colors, smileys)
var bb_opt = textarea.getElementsByClassName('bb_opt');
var bb_opt_titles = ['COLOR', 'BG', 'SMILEYS'];
for (var b = 0; b < bb_opt.length; b++) {
bb_opt[b].style = 'cursor:pointer; display: inline-block;';
bb_opt[b].innerHTML = bb_opt[b].innerHTML.replace(
/<img src="(.+?)images\/bb\/[0-9A-z\_]+\.gif"(.+?)\/>/,
'<a class="bb_button" href="javascript:spoiler(\'bb_hide_' + b + '\');">' + bb_opt_titles[b] + '</a>'
);
bb_opt[b].innerHTML = bb_opt[b].innerHTML.replace(
/<div class="bb_hid(.+?)">/,
'<div' + (b == 2 ? '' : ' class="bb_color"') + ' style="background: rgba(178,178,178,0.5);padding: 5px;border: 1px solid #282828;margin-top: 12px;overflow: auto; max-width: 300px; max-height: 150px;position:absolute;display: none;" id="bb_hide_' + b + '">'
);
}
}
var body = document.body.innerHTML;
// Cut counters
body = body.replace(/<noindex><a href="http\:\/\/www\.liveinternet\.ru\/stat\/johncms\.com">(.+?)<\/a><\/noindex><br\/><img src="\/\/mc\.yandex\.ru\/watch\/[0-9]+" style="(.+?)" alt=""\/>/, '');
// Cut logo and language panel
body = body.replace(/<table(.+?)><tr><td(.+?)><a href="(.+?)"><img src="(.+?)logo(.+?)\/>(.+?)<\/tr><\/table>/, '');
document.body.innerHTML = body;
}
}
.
Кадило крутится, лавэха мутится

В файле крепить надо. гг

.

вот фаел

Прикрепленные файлы:
.

быдлокод оцените чтоли

.
Think different
Screamer (11.03.2013 / 18:43)
быдлокод оцените чтоли
Быдлокод такой что ну его нафиг
.
Think different

Помним, любим, скорбим

.
Ps - наше всё

гром с молнией

.
Think different
Lacky (11.03.2013 / 19:40)
гром с молнией
Шаровую молнию тебе в окно
.
сeнсор
КЕК
Lacky (11.03.2013 / 19:40)
гром с молнией
люблю грозу в начале МАРТА
.
Ps - наше всё
Folour (11.03.2013 / 19:41)
Шаровую молнию тебе в окно
рано как то для таких ливней
Всего: 9452