// ==UserScript== // @name CMFWap2 enhancer // @version 0.3 // @history 0.3: совместно с соответствующим userCSS улучшает внешний вид wap2 версии. // @author rkv // @description Улучшает Wap2 версию CMF // @ujs:category site enhance // @include http://foobar2000.ru/* // @include http://www.foobar2000.ru/* // @include http://www.operafan.net/* // @include http://operafan.net/* // @exclude // ==/UserScript== r= location.href; try { with(document.body) { className+=' wap2'; } } catch (e) {} document.addEventListener('load',function (){ if ( r.indexOf('autoSubmit=1')!=-1 ) { document.getElementsByTagName('form')[0].submit(); } else if ( r.indexOf(';wap2')!=-1 ) { quote=null; if ( r.indexOf('action=post')==-1 && (r.indexOf('topic=')!=-1 ||r.indexOf('board=')!=-1 )) { div__ = document.createElement('div'); //div__.innerHTML = '
'; document.body.appendChild(div__); if ( r.indexOf('action=post')==-1 && r.indexOf('topic=')!=-1 ) { b = document.getElementsByTagName('b'); for ( i=0,l=b.length ; i