Аддон: добавляем Развернуть|Свернуть думаю по скрину все видно
В скрипте Select Code from phpBB3 to uCoz найти:
- Код: Выделить всё
r.select();}}
добавить после:
- Код: Выделить всё
// Shaw All Code Addon for Select Code from phpBB3 to uCoz ~ http://web-codes.net/
function showCode(a){
var e = a.parentNode.parentNode.getElementsByTagName('div')[1];
if(e.checkHeight){
e.style.height=e.checkHeight+'px';
e.style.overflow='auto';
e.style.maxHeight=e.myMaxHeight;
e.checkHeight=false;
}else{
e.checkHeight=e.offsetHeight;
e.myMaxHeight=e.style.maxHeight;
e.style.height='auto';
e.style.maxHeight='none';
e.style.overflow='visible';}
if (a.firstChild.data=='Развернуть'){
a.firstChild.data='Свернуть'}
else if (a.firstChild.data=='Свернуть'){
a.firstChild.data='Развернуть'}}
найти:
- Код: Выделить всё
>Выделить всё<\/a>
заменить на:
- Код: Выделить всё
>Выделить всё<\/a> - <a href="#" onclick="showCode(this);return false;">Развернуть<\/a>