Не приходит письмо активации профиля?
 
1. Проверьте папку Спам
2. Воспользуйтесь этой ссылкой
3. Вероятно вы регистрируетесь на почту Mail.ru или Gmail.com или bigmir.net (в основном письма не доходят именно туда), пробуйте яндекс или другой аккаунт gmail
4. Если ничего не помогает, то идем сюда

______________________________________________________________________________________
No profile activation email coming?
 
1. Check your spam folder
2. Use this link
3. Probably you register on mail Mail.ru or Gmail.com or bigmir.net (generally letters do not reach there), try yandex or other gmail account
4. If nothing helps, go here

Bookmarklets (букмарклеты) - закладки с JavaScript кодом

Изображение
Дополнения к Толоке от сторонних разработчиков.
Аватара пользователя
foxss

Админ
Администратор
Сообщения: 1515
Зарегистрирован: 07 мар 2020, 21:29
Награды: 1
Репутация: 189
Страна: Россия
Самозанятость: Нет

Bookmarklets (букмарклеты) - закладки с JavaScript кодом

#1505

Непрочитанное сообщение foxss »

Bookmarklets (букмарклеты) - закладки с JavaScript кодом. Код выполняется в момент нажатия и может влиять на страницу, как обычный JavaScript. Код нужно вставлять в поле адреса (по сути, работает как тег <a href="javascript:alert('Hello!');">Hello!</a>).
Bookmarklets работают во всех современных браузерах.

Главная прелесть букмарклетов в том что при сравнимых возможностях с раширениями, они никак не влияют на потребление ресурсов компьютера, т.к. по сути это обычная закладка, а вот расширения это дополнительная вкладка которая постоянно в открытом состоянии и соответственно потребляет ресурсы компьютера (память и процессор)

Как создать bookmarklet?
1. Создать закладку.
2. Вставить в поле адреса код букмарклета
3. Разместить эту закладку на панели закладок.
Готово!

Стандартный шаблон bookmarklet:

Код: Выделить всё

javascript:void((function () {
    alert('test');
})());
На место alert('test'); подставьте стандартный код JavaScript. После нажатия на закладку - он выполнится.

Пример 1
Поиск в гугл выделенного на странице текста.
Выделить текст на странице. Нажать bookmarklet - откроется страница с результатами поиска в google.

Код: Выделить всё

javascript:void((function () {function getSelectionText() {const activeEl = document.activeElement;
const activeElTagName = activeEl.tagName.toLowerCase();
if (activeEl && (activeElTagName === 'textarea' || activeElTagName === 'input')) {return activeEl.value.slice(activeEl.selectionStart,activeEl.selectionEnd);
}
return String(window.getSelection());
}
const url = 'https://www.google.ru/search?q=%s';
window.location.href = url.replace(/\%s/, getSelectionText());
})());
Пример 2
Получить QR-code выделенного текста или адрес открытой страницы если ничего не выделено в новом окне

Код: Выделить всё

javascript:(function(){var%20w=window,ws=w.getSelection,d=document,ds=d.getSelection,r=[],i=0,n,s=''+(ws?ws():(ds?ds():d.selection.createRange().text));for(;i<s.length;i++){n=s.charCodeAt(i);n=n==0x401?0xA8:(n==0x451?0xB8:(n>=0x410&&n<=0x44F?n-0x350:n));if(n<=0xFF)r.push(n);}s=escape(String.fromCharCode.apply(null,r));s=(s?'d='+s:'t=l&l='+location);s=s.replace(/\+/g,encodeURIComponent('+'));w.open('http://qrcoder.ru?'+s,'_blank')})();
или QR-code открытого сайта в pop-up

Код: Выделить всё

javascript:(function(a){a.body.appendChild(a.createElement("script")).src="http://www.michurin.net/bookmarklets/qr-url.min.js"})(document);
этот же код но, полная версия без подключения внешнего скрипта

Код: Выделить всё

javascript:(function(d){function b(a,b,f,i,j,k,l){var g="border-width,padding,position,top,left,right,cursor".split(","),h="border-style: solid; border-color:#000; text-align: center; font: normal bold normal 10px/10px sans-serif;background: #fff none;",m=d.createElement("div"),c,e;for(c=0;7>c;++c)e=arguments[c],void 0!==e&&(h+=g[c]+":"+e+("number"===typeof e?"px":"")+";");m.setAttribute("style",h);return m}var i=d.location.href,a=b(1,10,"fixed",2,2),j=b(0,0),k=b(0,0),f=b(1,6,"absolute",2,void 0,2,"pointer"), l=d.createElement("img"),g=d.getElementsByTagName("body")[0];l.setAttribute("src","https://chart.googleapis.com/chart?cht=qr&chld=H&chs=400x400&chl="+encodeURIComponent(i));j.appendChild(l);k.innerText=i;f.innerText="close";f.addEventListener("click",function(){g.removeChild(a)});a.appendChild(j);a.appendChild(k);a.appendChild(f);g.appendChild(a)})(document);
Gример 3 (самый главный)
подключить свой UserJS

Код: Выделить всё

javascript:(function(){var script=document.createElement('script'); script.src='ССЫЛКА_НА_USERJS'; document.getElementsByTagName('head')[0].appendChild(script)})();
зы. хорошая статья про то как >> Зарегестрируйтесь, чтобы видеть ссылки.<<
множество других букмарклетов здесь
тема на >> Зарегестрируйтесь, чтобы видеть ссылки.<<



Навигатор


Аватара пользователя
foxss

Админ
Администратор
Сообщения: 1515
Зарегистрирован: 07 мар 2020, 21:29
Награды: 1
Репутация: 189
Страна: Россия
Самозанятость: Нет

Bookmarklets (букмарклеты) - закладки с JavaScript кодом

#1506

Непрочитанное сообщение foxss »

Следующие букмарклеты использовались мною в старой опера классик, а т.к. времени с того момента утекло много, то не факт что сейчас эти букмарклеты заработают.

Считает количество слов и знаков на выделенном участке текста.

Код: Выделить всё

javascript:(function()%7bfunction f(d)%7bvar t;if(d.getSelection)t=d.getSelection();else if(d.selection)t=d.selection.createRange();if(t.text!=undefined)t=t.text;if(!t||t=='')%7bvar a=d.getElementsByTagName('textarea');for(var i=0;i%3ca.length;++i)%7bif(a[i].selectionStart!=undefined&&a[i].selectionStart!=a[i].selectionEnd)%7bt=a[i].value.substring(a[i].selectionStart,a[i].selectionEnd);break;%7d%7d%7d return t;%7d;function g(d)%7bvar t;try%7bt=f(d);%7dcatch(e)%7b%7d;if(!t||t=='')%7bvar fs=d.getElementsByTagName('frame');for(var i=0;i%3cfs.length;++i)%7bt=g(fs[i].contentDocument);if(t&&t.toString()!='')break;%7d if(!t||t.toString()=='')%7bfs=d.getElementsByTagName('iframe');for(var i=0;i%3cfs.length;++i)%7bt=g(fs[i].contentDocument);if(t&&t.toString()!='')break;%7d%7d%7dreturn t;%7d;var t=g(document);if(!t||t=='')alert('please sel ect some text');else alert('Chars: '+t.toString().length+'\nWords: '+t.toString().match(/(\S+)/g).length);%7d)()
Считает количество слов и знаков на выделенном участке текста. версия 2

Код: Выделить всё

javascript:(function(){function f(d){var t;if(d.getSelection)t=d.getSelection();else if(d.selection)t=d.selection.createRange();if(t.text!=undefined)t=t.text;if(!t||t==''){var a=d.getElementsByTagName('textarea');for(var i=0;i<a.length;++i){if(a[i].selectionStart!=undefined&&a[i].selectionStart!=a[i].selectionEnd){t=a[i].value.substring(a[i].selectionStart,a[i].selectionEnd);break;}}} return t;};function g(d){var t;try{t=f(d);}catch(e){};if(!t||t==''){var fs=d.getElementsByTagName('frame');for(var i=0;i<fs.length;++i){t=g(fs[i].contentDocument);if(t&&t.toString()!='')break;} if(!t||t.toString()==''){fs=d.getElementsByTagName('iframe');for(var i=0;i<fs.length;++i){t=g(fs[i].contentDocument);if(t&&t.toString()!='')break;}}}return t;};var t=g(document);if(!t||t=='')alert('please select some text');else alert('%D0%A1%D0%B8%D0%BC%D0%B2%D0%BE%D0%BB%D0%BE%D0%B2: '+t.toString().length+'\n%D0%A1%D0%B8%D0%BC%D0%B2%D0%BE%D0%BB%D0%BE%D0%B2 %D0%B1%D0%B5%D0%B7 %D0%BF%D1%80%D0%BE%D0%B1%D0%B5%D0%BB%D0%BE%D0%B2: '+t.toString().replace(/\s+/g, '','').length+'\n%D0%A1%D0%BB%D0%BE%D0%B2: '+t.toString().match(/(\S+)/g).length);})()
В один клик удаляет cookies на сайте, на котором вы сейчас находитесь.

Код: Выделить всё

javascript:(function()%7bC=document.cookie.split(%22; %22);for(d=%22.%22+location.host;d;d=(%22%22+d).substr(1).match(/\..*$/))for(sl=0;sl%3c2;++sl)for(p=%22/%22+location.pathname;p;p=p.substring(0,p.lastIndexOf('/')))for(i in C)if(c=C%5bi%5d)%7bdocument.cookie=c+%22; domain=%22+d.slice(sl)+%22; path=%22+p.slice(1)+%22/%22+%22; expires=%22+new Date((new Date).getTime()-1e11).toGMTString()%7d%7d)()
Позволяет сортировать столбцы таблиц в алфавитном порядке (от а до я, и наоборот). Иногда встречаются ошибки. при сортировке от а до я, буква «у» может идти перед буквой «о». С чем это связано мне, к сожалению, неизвестно.

Код: Выделить всё

javascript:function%20toArray%20(c)%7bvar%20a,%20k;a=new%20Array;for%20(k=0;%20k%3cc.length;%20++k)a[k]=c[k];return%20a;%7dfunction%20insAtTop(par,child)%7bif(par.childNodes.length)%20par.insertBefore(child,%20par.childNodes[0]);else%20par.appendChild(child);%7dfunction%20countCols(tab)%7bvar%20nCols,%20i;nCols=0;for(i=0;i%3ctab.rows.length;++i)if(tab.rows[i].cells.length%3enCols)nCols=tab.rows[i].cells.length;return%20nCols;%7dfunction%20makeHeaderLink(tableNo,%20colNo,%20ord)%7bvar%20link;link=document.createElement('a');link.href='javascript:sortTable('+tableNo+','+colNo+','+ord+');';link.appendChild(document.createTextNode((ord%3e0)?'a':'d'));return%20link;%7dfunction%20makeHeader(tableNo,nCols)%7bvar%20header,%20headerCell,%20i;header=document.createElement('tr');for(i=0;i%3cnCols;++i)%7bheaderCell=document.createElement('td');headerCell.appendChild(makeHeaderLink(tableNo,i,1));headerCell.appendChild(document.createTextNode('/'));headerCell.appendChild(makeHeaderLink(tableNo,i,-1));header.appendChild(headerCell);%7dreturn%20header;%7dg_tables=toArray(document.getElementsByTagName('table'));if(!g_tables.length)%20alert(%22This%20page%20doesn't%20contain%20any%20tables.%22);(function()%7bvar%20j,%20thead;for(j=0;j%3cg_tables.length;++j)%7bthead=g_tables%5bj%5d.createTHead();insAtTop(thead,%20makeHeader(j,countCols(g_tables%5bj%5d)))%7d%7d)%20();function%20compareRows(a,b)%7bif(a.sortKey==b.sortKey)return%200;return%20(a.sortKey%20%3c%20b.sortKey)%20?%20g_order%20:%20-g_order;%7dfunction%20sortTable(tableNo,%20colNo,%20ord)%7bvar%20table,%20rows,%20nR,%20bs,%20i,%20j,%20temp;g_order=ord;g_colNo=colNo;table=g_tables%5btableNo%5d;rows=new%20Array();nR=0;bs=table.tBodies;for(i=0;%20i%3cbs.length;%20++i)for(j=0;%20j%3cbs%5bi%5d.rows.length;%20++j)%7brows%5bnR%5d=bs%5bi%5d.rows%5bj%5d;temp=rows%5bnR%5d.cells%5bg_colNo%5d;if(temp)%20rows%5bnR%5d.sortKey=temp.innerHTML;else%20rows%5bnR%5d.sortKey=%22%22;++nR;%7drows.sort(compareRows);for%20(i=0;%20i%20%3c%20rows.length;%20++i)insAtTop(table.tBodies%5b0%5d,%20rows%5bi%
Позволяет скачивать видео с Youtube в разных форматах: MP3, iPod, FLV, MP4, AVI. Работает не только на сайте Youtube, но и на всех других сайтах, где есть видео с этого видеохостинга.

Код: Выделить всё

javascript:(function(w,d,x){x=new(window.XMLHttpRequest||ActiveXObject)('Microsoft.XMLHTTP');x.onreadystatechange=function(){if(x.readyState==4){if(x.status==200)d.body.appendChild(d.createElement('script')).src=JSON.parse(x.responseText).query.results.url;else console.log('ERR',x.status,x.statusText)}};x.open('GET','//query.yahooapis.com/v1/public/yql?q='+encodeURIComponent('select * from json where url=



Аватара пользователя
foxss

Админ
Администратор
Сообщения: 1515
Зарегистрирован: 07 мар 2020, 21:29
Награды: 1
Репутация: 189
Страна: Россия
Самозанятость: Нет

Bookmarklets (букмарклеты) - закладки с JavaScript кодом

#1507

Непрочитанное сообщение foxss »

Гугл перевод выделенного текста

Код: Выделить всё

javascript:(function(){l=location.href;if(l.indexOf('translate')>=0){l=decodeURIComponent(l.replace(/^.*[&?](trurl|url|u)=/,'').replace(/[&?].*$/,''))};s=document.selection?document.selection.createRange().text:window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection():'';lw=(s=='')?'http://translate.google.com/translate?u='+encodeURIComponent(l)+'&sl=auto&tl=ru&anno=0':'http://translate.google.com/translate_t?text='+s+'&sl=auto&tl=ru';wt=window.open(lw);if(window.focus){wt.focus()};})()
Блокнот для записей
Окно для записей, вставки каки-либо данных и т. п.

Код: Выделить всё

javascript:(function(){s=document.selection?document.selection.createRange().text:window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection():'';pwin=window.open('','_blank','menubar=yes,scrollbars=yes,location=no,height=550,width=700');with(pwin.document){if(s){write(s);close();}body.contentEditable='true';designMode='on';}if(window.focus){pwin.focus();setTimeout('pwin.focus()',125)};})()
Сокращятель ссылок от Яндекса
Превращает длинную ссылку в короткую через сервис Яндекс Clck (можно элементарно переделать почти под любой сокращатель или редирект)

Код: Выделить всё

javascript:location.href='https://clck.ru/?url='+encodeURIComponent(location.href)
Поиск по фрагменту текста
Выделите фрагмент текста и запустите букмарклет. Откроется выдача Яндекса с аналогичным текстом.

Код: Выделить всё

javascript:(function(){%20var%20selected;%20if%20(window.getSelection)%20selected%20=%20window.getSelection();%20else%20if%20(document.getSelection)%20selected%20=%20document.getSelection();%20else%20selected%20=%20document.selection.createRange().text;%20var%20q%20=%20''+selected;%20if%20(q)%20location='http://yandex.ru/search/?lr=76&text=%22'+encodeURIComponent(q)+'%22';})();
Показать пароль под звездочками

Код: Выделить всё

javascript:(function(){var s,F,j,f,i; s = ""; F = document.forms; for(j=0; j<F.length; ++j) { f = F[j]; for (i=0; i<f.length; ++i) { if (f[i].type.toLowerCase() == "password") s += f[i].value + "\n"; } } if (s) alert("Пароли в формах на этой странице:\n\n" + s); else alert("На этой странице в формах нет паролей.");})();
Найти на странице

Код: Выделить всё

javascript:(function(){var count=0, text, dv;text=prompt("Search phrase:", "");if(text==null || text.length==0)return;dv=document.defaultView;function searchWithinNode(node, te, len){var pos, skip, spannode, middlebit, endbit, middleclone;skip=0;if( node.nodeType==3 ){pos=node.data.toUpperCase().indexOf(te);if(pos>=0){spannode=document.createElement("SPAN");spannode.style.backgroundColor="yellow";middlebit=node.splitText(pos);endbit=middlebit.splitText(len);middleclone=middlebit.cloneNode(true);spannode.appendChild(middleclone);middlebit.parentNode.replaceChild(spannode,middlebit);++count;skip=1;}}else if( node.nodeType==1&& node.childNodes && node.tagName.toUpperCase()!="SCRIPT" && node.tagName.toUpperCase!="STYLE"){for (var child=0; child < node.childNodes.length; ++child){child=child+searchWithinNode(node.childNodes[child], te, len);}}return skip;}window.status="Searching for '"+text+"'...";searchWithinNode(document.body, text.toUpperCase(), text.length);window.status="Found "+count+" occurrence"+(count==1?"":"s")+" of '"+text+"'.";})();
Найти на странице по регулярному выражению

Код: Выделить всё

javascript:(function(){var count=0, text, regexp;text=prompt("Search regexp:", "");if(text==null || text.length==0)return;try{regexp=new RegExp("(" + text +")", "i");}catch(er){alert("Unable to create regular expression using text '"+text+"'.\n\n"+er);return;}function searchWithinNode(node, re){var pos, skip, spannode, middlebit, endbit, middleclone;skip=0;if( node.nodeType==3 ){pos=node.data.search(re);if(pos>=0){spannode=document.createElement("SPAN");spannode.style.backgroundColor="yellow";middlebit=node.splitText(pos);endbit=middlebit.splitText(RegExp.$1.length);middleclone=middlebit.cloneNode(true);spannode.appendChild(middleclone);middlebit.parentNode.replaceChild(spannode,middlebit);++count;skip=1;}}else if( node.nodeType==1 && node.childNodes && node.tagName.toUpperCase()!="SCRIPT" && node.tagName.toUpperCase!="STYLE"){for (var child=0; child < node.childNodes.length; ++child){child=child+searchWithinNode(node.childNodes[child], re);}}return skip;}window.status="Searching for "+regexp+"...";searchWithinNode(document.body, regexp);window.status="Found "+count+" match"+(count==1?"":"es")+" for "+regexp+".";})();
В НАЧАЛО страницы, повторный клик - вернуться на предыдущее место на странице:

Код: Выделить всё

javascript:if(self.vpos&&!document.body.scrollTop){void(self.scrollTo(0,vpos));void(vpos=0);}else{vpos=document.body.scrollTop;self.scrollTo(0,0);}
создать ссылку на любой выделенный текст

Код: Выделить всё

javascript:(function(d){d.body.appendChild(d.createElement('script')).src='//TLDRify.com/static/js/bookmarklet.min.js?_'+new%20Date().getTime();})(document);
Сохранить кадр из видео YouTube

Код: Выделить всё

javascript:e=document.querySelectorAll('.html5-main-video')[0];w=e.offsetWidth;h=e.offsetHeight;c=document.createElement('canvas');c.width=w;c.height=h;cx=c.getContext('2d');cx.drawImage(e,0,0,w,h);d=c.toDataURL();window.open(d,'_blank');
Мобильная версия сайта от google(прокси)

Код: Выделить всё

javascript:window.open('http://www.google.ie/gwt/x?u='+encodeURIComponent(window.location.href))
Показывает текст из ALT для изображений: нажмите букмарклет, нажмите на изображение , чтобы увидеть его ALT текст,ОК и текст будет над картинкой на странице (разработка)

Код: Выделить всё

javascript:for(var imCt=0;document.images[imCt];imCt++){void(document.images[imCt].onclick=function () {if(this.alt){if((window.brbanta=prompt('Image ALT text:\n(Click OK to insert this text before the image)',this.alt))&&this.parentNode){this.parentNode.insertBefore(document.createTextNode(' '+brbanta),this);}}else{alert('There is no ALT text for this image');}});}

Код: Выделить всё

javascript:for(var imCt=0;document.images[imCt];imCt++){if(document.images[imCt].alt){void(document.images[imCt].title=document.images[imCt].alt);}}
Показывает текст из img

Код: Выделить всё

javascript:for(var imCt=0;document.images[imCt];imCt++){void(document.images[imCt].onclick=function () {var inStr=this.src.replace(/.*\/([^\/]*)/g,'$1').replace(/\.[^\.\/]*$/g,'').replace(/[^a-z0-9]/gi,' ');for(var lastChr=' ',outStr='',oI=0,theChr;theChr=inStr.charAt(oI);oI++){outStr+=lastChr.match(/\s/)?theChr.toUpperCase():theChr.toLowerCase();lastChr=theChr;}if((window.brbanta=prompt('Human format SRC:\n(Click OK to insert this text before the image)',outStr))&&this.parentNode){this.parentNode.insertBefore(document.createTextNode(' '+brbanta),this);}});}



Аватара пользователя
foxss

Админ
Администратор
Сообщения: 1515
Зарегистрирован: 07 мар 2020, 21:29
Награды: 1
Репутация: 189
Страна: Россия
Самозанятость: Нет

Bookmarklets (букмарклеты) - закладки с JavaScript кодом

#1508

Непрочитанное сообщение foxss »

калькулятор

Код: Выделить всё

javascript:(function(){instacalc_script=document.createElement('SCRIPT');instacalc_script.type='text/javascript';instacalc_script.src='http://instacalc.com/gadget/instacalc.bookmarklet.js?x='+(Math.random());document.getElementsByTagName('head')[0].appendChild(instacalc_script);})();
или

Код: Выделить всё

javascript:void((function(){var window_open = window.open('','calculator'+new Date().getTime(),'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=450,height=300');var document_open = window_open.document;document_open.open();document_open.write("<!DOCTYPE html PUBLIC %5C"-//W3C//DTD HTML 4.01 Transitional//EN%5C">%5Cn<html>%5Cn<head>%5Cn<title>Scientific Calculator</title>%5Cn<meta name=%5C"description%5C" content=%5C"Javascript calculator with calculation history, math functions, hexadecimal, octal, and scientific notation.%5C">%5Cn<meta name=%5C"keywords%5C" content=%5C"calculator, octal calculator, binary calculator, hexidecimal calculator, hexadecimal calculator, calc, calculate, calculater, scientific calculator, hex calculator, scientific notation calculator, javascript calculator, java script calculator, freeware calculator, free calculator, online calculator, calculater%5C">%5Cn<link rel=%5C"shortcut icon%5C" href=%5C"http://ostermiller.org/favicon.ico%5C" type=%5C"image/x-icon%5C">%5Cn<link rel=%5C"shortcut icon%5C" href=%5C"http://ostermiller.org/calc/calculator.ico%5C" type=%5C"image/x-icon%5C">%5Cn<script language=javascript type=%5C"text/javascript%5C"><!--%5Cnvar bo=%5C'%5C';var da=%5C'%5C';var bm=%5C'%5C';var bn=%5C'%5C'%5Cnvar br=false;var bg=1;var ck=%5C'(?:[0-9a-fA-F])%5C';var cb=%5C'(?:[0-9])%5C';var co=%5C'(?:[0-7])%5C';var cn=%5C'(?:[1-9])%5C';var cr=%5C'(?:[%5C%5C+]|[%5C%5C-])%5C';var ca=%5C'(?:(?:[0]|%5C'+cn+cb+%5C'*))%5C';var cp=%5C'(?:[0]%5C'+co+%5C'*)%5C';var cl=%5C'(?:[0](?:[x]|[X])%5C'+ck+%5C'+)%5C';var credInt=%5C'(?:%5C'+cr+%5C'?%5C'+cb+%5C'+)%5C';var cc=%5C'(?:[e]|[E])%5C';var cd=%5C'(?:%5C'+cc+credInt+%5C')%5C';var ce1=%5C'(?:%5C'+cb+%5C'+[%5C%5C.]%5C'+cb+%5C'*%5C'+cd+%5C'?)%5C';var cg=%5C'(?:[%5C%5C.]%5C'+cb+%5C'+%5C'+cd+%5C'?)%5C';var ch=%5C'(?:%5C'+cb+%5C'+%5C'+cd+%5C')%5C';var ci=%5C'(?:%5C'+cb+%5C'+)%5C';var ce=%5C'(?:%5C'+ce1+%5C'|%5C'+cg+%5C'|%5C'+ch+%5C'|%5C'+ci+%5C')%5C';var cv1=%5C'(?:[0]+[%5C%5C.][0]*%5C'+cd+%5C'?)%5C';var cx=%5C'(?:[%5C%5C.][0]+%5C'+cd+%5C'?)%5C';var cv3=%5C'(?:[0]+%5C'+cd+%5C')%5C';var cv4=%5C'(?:[0]+)%5C';var cv=%5C'(?:%5C'+cv1+%5C'|%5C'+cx+%5C'|%5C'+cv3+%5C'|%5C'+cv4+%5C')%5C';var ct=%5C'(?:[%5C%5Cn%5C%5C %5C%5Ct])%5C';var cq=%5C'(?:[%5C%5C(%5C%5C)%5C%5C+%5C%5C-%5C%5C/%5C%5C*%5C%5C|%5C%5C&%5C%5C,%5C%5C~%5C%5C^]|%5C%5C<%5C%5C<|%5C%5C>%5C%5C>|%5C%5C>%5C%5C>%5C%5C>|%5C%5C%)%5C'%5Cnvar cm=%5C'(?:E|LN10|LN2|LOG10E|LOG2E|PI|SQRT1_2|SQRT2|abs|acos|asin|atan2|atan|ceil|cos|exp|floor|log|max|min|pow|random|round|sin|sqrt|tan)%5C'%5Cnvar cj=%5C'(?:(?:Math[%5C%5C.]%5C'+cm+%5C')|%5C'+cm+%5C')%5C';var bz=new RegExp(%5Cn cl+%5C'|%5C'+cp+%5C'|%5C'+ce+%5C'|%5C'+ca+%5C'|%5C'+%5Cn cv+%5C'|%5C'+ct+%5C'|%5C'+cq+%5C'|%5C'+cj+%5C'|ans%5C',%5C'g%5C'%5Cn);var E=Math.E;var LN10=Math.LN10;var LN2=Math.LN2;var LOG10E=Math.LOG10E;var LOG2E=Math.LOG2E;var PI=Math.PI;var SQRT1_2=Math.SQRT1_2;var SQRT2=Math.SQRT2;function abs(x){return Math.abs(x);}%5Cnfunction acos(x){return Math.acos(x);}%5Cnfunction asin(x){return Math.asin(x);}%5Cnfunction atan(x){return Math.atan(x);}%5Cnfunction atan2(x){return Math.atan2(x);}%5Cnfunction ceil(x){return Math.ceil(x);}%5Cnfunction cos(x){return Math.cos(x);}%5Cnfunction exp(x){return Math.exp(x);}%5Cnfunction floor(x){return Math.floor(x);}%5Cnfunction log(x){return Math.log(x);}%5Cnfunction max(x,y){return Math.max(x,y);}%5Cnfunction min(x,y){return Math.min(x,y);}%5Cnfunction pow(x,y){return Math.pow(x,y);}%5Cnfunction random(){return Math.random();}%5Cnfunction round(x){return Math.round(x);}%5Cnfunction sin(x){return Math.sin(x);}%5Cnfunction sqrt(x){return Math.sqrt(x);}%5Cnfunction tan(x){return Math.tan(x);}%5Cnfunction an(s){%5Cn var r=new RegExp(%5C"^((?:[a]|[^a])*)0[bB]([01]{1,32})((?:[a]|[^a])*)$%5C"); while(r.exec(s)){%5Cn s=RegExp.$1+%5C" %5C"+ah(RegExp.$2)+%5C" %5C"+RegExp.$3; }%5Cn return s;}%5Cnfunction am(s){%5Cn var r=new RegExp(%5C"^((?:[a]|[^a])*)ans((?:[a]|[^a])*)$%5C"); while(r.exec(s)){%5Cn s=RegExp.$1+%5C" %5C"+da+%5C" %5C"+RegExp.$2; }%5Cn return s;}%5Cnfunction ag(){%5Cn var ba=document.calculator.line.value; var bq=am(ba); bq=an(bq); if(bq!=bn&&bq!=bm&&!br){%5Cn var bv=bq.split(bz); var bw=0; for(var k=0;k<bv.length;k++){%5Cn if(bv[k].length!=0){%5Cn bw++; }%5Cn }%5Cn if(bw==0){%5Cn try{%5Cn var aw=%5C'%5C'+eval(bq); if(aw!=undefined){%5Cn bo=aw; da=aw; bm=%5C'%5C'; af(); aa(ba); ao(); }%5Cn }catch(ex){%5Cn alert(%5C'Error type: %5C'+ex.name+%5C'%5C%5Cn%5C'+%5C'Error message: %5C'+ex.message); bm=document.calculator.line.value; }%5Cn }else{%5Cn alert(bw+%5C' unknown tokens:%5C%5Cn%5C'+bv); bm=document.calculator.line.value; }%5Cn document.calculator.line.focus(); }%5Cn}%5Cnfunction aj(){%5Cn if(bn!=document.calculator.line.value){%5Cn bo=%5C'%5C'; }%5Cn}%5Cnfunction af(){%5Cn if(bo!=%5C'%5C'){%5Cn var db=document.calculator.display.selectedIndex; var bj=parseInt(bo); var bd=parseFloat(bo); var dj=%5C'%5C'; if(%5C'%5C'+bd!=%5C'NaN%5C'&&db==1){%5Cn dj=at(bo,false); }else if(%5C'%5C'+bd!=%5C'NaN%5C'&&db==2){%5Cn dj=at(bo,true); }else if(%5C'%5C'+bj!=%5C'NaN%5C'&&db==3){%5Cn dj=ar(bj); }else if(%5C'%5C'+bj!=%5C'NaN%5C'&&db==4){%5Cn dj=as(bj); }else if(%5C'%5C'+bj!=%5C'NaN%5C'&&db==5){%5Cn dj=aq(bj); }else{%5Cn dj=round_extra_sf(bd); }%5Cn bn=dj; document.calculator.line.value=dj; bg=1; document.calculator.line.style.backgroundColor=%5C'#aacc99%5C'; }else{%5Cn document.calculator.line.style.backgroundColor=%5C'#cccc99%5C'; }%5Cn}%5Cnfunction round_extra_sf(f){%5Cnvar s=f.toPrecision(14); s=s.replace(/^([%5C%5C+%5C%5C-0-9%5C%5C%5C%5C.]*[1-9%5C%5C.])0+((?:e[0-9%5C%5C+%5C%5C-]+)?)$/g,%5C'$1$2%5C'); s=s.replace(/%5C%5C.((?:e[0-9%5C%5C+%5C%5C-]+)?)$/g,%5C'$1%5C');return s;}%5Cnfunction at(s,eng){%5Cn var df=0; var bl=false; if(s.length>0&&s.charAt(0)==%5C'-%5C'){%5Cn bl=true; s=s.substring(1,s.length); }%5Cn var cu=s.split(new RegExp(%5C'[eE]%5C')); if(cu.length>1){%5Cn df=parseInt(cu[1]); s=cu[0]; }%5Cn cu=s.split(/[%5C%5C.]/); if(cu.length>1){%5Cn s=cu[0]+cu[1]; df+=cu[0].length-1; }else{%5Cn df+=s.length-1; }%5Cn var bp=0; for(bp=0;bp<s.length&&s.charAt(bp)==%5C'0%5C';bp++){%5Cn df=df-1; }%5Cn s=s.substring(bp,s.length); var bs; if(eng){%5Cn if(df>=0){%5Cn bs=(df%3)+1; }else{%5Cn bs=4-((-df)%3); if(bs==4){%5Cn bs=1; }%5Cn }%5Cn df-=(bs-1); }else{%5Cn bs=1; }%5Cn var dk=%5C'%5C'; for(var i=s.length;i<bs;i++){%5Cn dk+=%5C'0%5C'; }%5Cn return(%5Cn (bl?%5C'-%5C':%5C'%5C')+%5Cn ((s.length==0)?%5C'0%5C':s.substring(0,bs))+%5Cn ((s.length<=bs)?dk:(%5C'.%5C'+s.substring(bs,s.length)))+%5Cn ((s.length==0||df==0)?%5C'%5C':(%5C'e%5C'+df))%5Cn );}%5Cnvar bb=new Array(%5C'0%5C',%5C'1%5C',%5C'2%5C',%5C'3%5C',%5C'4%5C',%5C'5%5C',%5C'6%5C',%5C'7%5C',%5C'8%5C',%5C'9%5C',%5C'a%5C',%5C'b%5C',%5C'c%5C',%5C'd%5C',%5C'e%5C',%5C'f%5C');function ar(n){%5Cn var be=%5C'%5C'%5Cn var di=true; for(var i=32;i>0;){%5Cn i-=4; var by=(n>>i)&0xf; if(!di||by!=0){%5Cn di=false; be+=bb[by]; }%5Cn }%5Cn return %5C'0x%5C'+(be==%5C'%5C'?%5C'0%5C':be);}%5Cnfunction as(n){%5Cn var bx=%5C'%5C'%5Cn var di=true; for(var i=33;i>0;){%5Cn i-=3; var by=(n>>i)&0x7; if(!di||by!=0){%5Cn di=false; bx+=bb[by]; }%5Cn }%5Cn return %5C'0%5C'+(bx==%5C'%5C'?%5C'0%5C':bx);}%5Cnfunction aq(n){%5Cn var au=%5C'%5C'%5Cn var di=true; for(var i=32;i>0;){%5Cn i-=1; var by=(n>>i)&0x1; if(!di||by!=0){%5Cn di=false; au+=bb[by]; }%5Cn }%5Cn return %5C'0b%5C'+(au==%5C'%5C'?%5C'0%5C':au);}%5Cnfunction ah(s){%5Cn var au=0; var dh=0; var i=s.length-1; while(i>=0&&dh<32){%5Cn if(s.charAt(i)==%5C'1%5C'){%5Cn au|=1<<dh; }%5Cn dh++; i-=1; }%5Cn return au;}%5Cnfunction ap(s){%5Cn if(!br&&s!=%5C'%5C'){%5Cn bo=%5C'%5C'; bm=s; document.calculator.line.value=s; document.calculator.line.focus(); bm=%5C'%5C'; bn=%5C'%5C'; bg=1; document.calculator.line.style.backgroundColor=%5C'#cccc99%5C'; document.calculator.line.focus(); }%5Cn}%5Cnfunction ab(s,replaceLast){%5Cn if(!br&&s!=%5C'%5C'){%5Cn bo=%5C'%5C'; var bt%5Cn if(replaceLast==0&&document.calculator.line.value==bn){%5Cn bt=s; }else if(replaceLast==1&&document.calculator.line.value==bn){%5Cn bt=%5C'ans %5C'+s; }else{%5Cn bt=document.calculator.line.value+s; }%5Cn bm=bt; document.calculator.line.value=bt; document.calculator.line.focus(); bm=%5C'%5C'; bn=%5C'%5C'; bg=1; document.calculator.line.style.backgroundColor=%5C'#cccc99%5C'; document.calculator.line.focus(); }%5Cn}%5Cnfunction ac(){%5Cn document.calculator.line.value=%5C'%5C'; bg=1; document.calculator.line.style.backgroundColor=%5C'#cccc99%5C'; document.calculator.line.focus();}%5Cnfunction aa(s){%5Cn br=true; var bk=false; var dg=s; var bu; var bf=document.calculator.history.options; for(var i=1;i<bf.length&&!bk;i++){%5Cn bu=bf[i].text; bf[i].text=dg; if(bu==s){%5Cn bk=true; }%5Cn dg=bu; }%5Cn document.calculator.history.selectedIndex=0; br=false;}%5Cnfunction ak(){%5Cn br=true; var bf=document.calculator.history.options; var av=ai(%5C'calculatorState%5C'); if(av!=null&&av.length>1){%5Cn var bh=av.substring(1,av.length); if(bh!=null){%5Cn var bi=bh.split(%5C'%5C%5Cn%5C'); for(var i=1;i<bf.length&&i<bi.length+1;i++){%5Cn bf[i].text=bi[i-1]; }%5Cn }%5Cn document.calculator.display.selectedIndex=parseInt(av.charAt(0)); }%5Cn br=false;}%5Cnfunction ao(){%5Cn var bf=document.calculator.history.options; var av=document.calculator.display.selectedIndex; for(var i=1;i<bf.length;i++){%5Cn av+=bf[i].text+%5C'%5C%5Cn%5C'; }%5Cn var bc=new Date(); // cookie expires in one year%5Cn bc.setTime(bc.getTime()+365*24*60*60*1000); document.av=(%5Cn %5C'calculatorState%5C'+%5C'=%5C'+%5Cn escape(av)+%5Cn %5C';expires=%5C'+bc.toGMTString()%5Cn );}%5Cnfunction ai(name){%5Cn var az=name+%5C"=%5C"; var ax=document.cookie.indexOf(%5C";%5C"+az); if(ax==-1){%5Cn ax=document.cookie.indexOf(az); if(ax!=0)return null; }else{%5Cn ax+=2; }%5Cn var ay=document.cookie.indexOf(%5C";%5C",ax); if(ay==-1)ay=document.cookie.length; return unescape(document.cookie.substring(ax+az.length,ay));}%5Cnfunction ae(){%5Cn var bf=document.calculator.history.options; var bu=%5C"%5C"; if(bg>=bf.length||bf[bg].text==%5C"%5C"){%5Cn bg=1; }%5Cn if(bf[bg].text!=%5C"%5C"){%5Cn var de=bg; ap(bf[bg].text); bg=de; document.calculator.history.selectedIndex=bg; bg++; }%5Cn document.calculator.line.focus();}%5Cnfunction al(){%5Cn var d=document.calculator.display; var s=d.selectedIndex; s++; if(s>=d.options.length)s=0; ad(s)%5Cn}%5Cnfunction ad(index){%5Cn document.calculator.display.selectedIndex=index; af(); ao(); document.calculator.line.focus();}%5Cn--></script>%5Cn<style type=%5C"text/css%5C">%5Cnbody {%5Cnbackground-color:beige;font-size:10pt;}%5Cninput.advanced {%5Cnfont-size:9pt;width:.75cm;padding:0;margin:0;}%5Cninput.clear, input.number, input.operand, input.equal, input.other {%5Cnfont-size:15pt;}%5Cninput.clear, input.number, input.operand, input.equal, input.other {%5Cnwidth:1cm;font-weight:bold;padding:2px;}%5Cninput.keyshortcut {%5Cnbackground-color:beige;color:beige;text-decoration:none;border:none;}%5Cninput.clear {%5Cnbackground-color:#aa2222;border-color:#aa2222;color:white;}%5Cninput.number {%5Cnbackground-color:#CCaa99;border-color:#CCaa99;color:black;}%5Cninput.operand {%5Cnbackground-color:#aaaacc;border-color:#aaaacc;color:black;}%5Cninput.equal {%5Cnbackground-color:#444444;border-color:#444444;color:white;}%5Cninput.other {%5Cnbackground-color:#9ac693;border-color:#9ac693;color:black;}%5Cninput.advanced {%5Cnbackground-color:lightgray;border-color:lightgray;color:black;}%5Cninput.line {%5Cnbackground-color:#cccc99;border-color:#cccc99;font-size:15pt;font-weight:bold;width:100%;}%5Cnselect {%5Cnbackground-color:#cccccc;border-color:#cccccc;color:black;}%5Cn</style>%5Cn</head>%5Cn<body onload=%5C"ak();document.calculator.line.focus();%5C">%5Cn<noscript><p>This scientific calculator requires Javascript. Please enable Javascript%5Cnin your browser%5C's preferences and then reload this page if you wish to use this scientific calculator.</p></noscript>%5Cn<form name=calculator onSubmit=%5C"ag();return false;%5C">%5Cn<input class=line type=text name=%5C"line%5C" onChange=%5C"aj();%5C">%5Cn<br>%5Cn<table summary=%5C"Calculator%5C"><tr><td valign=top>%5Cn<table class=keypad summary=%5C"Button Keypad%5C"><tr>%5Cn<td><input type=%5C"button%5C" value=%5C"C%5C" class=%5C"clear%5C" accesskey=c onClick=%5C"ac();%5C" title=%5C"Clear (Alt-c)%5C"></td>%5Cn<td><input type=%5C"button%5C" value=%5C"(%5C" class=%5C"other%5C" onClick=%5C"ab(%5C'(%5C',0);%5C" title=%5C"Grouping Parenthesis%5C"></td>%5Cn<td><input type=%5C"button%5C" value=%5C")%5C" class=%5C"other%5C" onClick=%5C"ab(%5C')%5C',0);%5C" title=%5C"Grouping Parenthesis%5C"></td>%5Cn<td><input type=%5C"button%5C" value=%5C"+%5C" class=%5C"operand%5C" onClick=%5C"ab(%5C' + %5C',1);%5C" title=%5C"Addition%5C"></td>%5Cn<td rowspan=5>%5Cn<input type=%5C"button%5C" value=%5C"&amp;%5C" class=%5C"advanced%5C" onClick=%5C"ab(%5C' &amp; %5C',2);%5C" title=%5C"Bitwise And%5C"><br>%5Cn<input type=%5C"button%5C" value=%5C"|%5C" class=%5C"advanced%5C" onClick=%5C"ab(%5C' | %5C',2);%5C" title=%5C"Bitwise Or%5C"><br>%5Cn<input type=%5C"button%5C" value=%5C"^%5C" class=%5C"advanced%5C" onClick=%5C"ab(%5C' ^ %5C',2);%5C" title=%5C"Bitwise xOr%5C"><br>%5Cn<input type=%5C"button%5C" value=%5C"~%5C" class=%5C"advanced%5C" onClick=%5C"ab(%5C' ~ %5C',2);%5C" title=%5C"Bitwise Negation%5C"><br>%5Cn<input type=%5C"button%5C" value=%5C"&lt;&lt;%5C" class=%5C"advanced%5C" onClick=%5C"ab(%5C' &lt;&lt; %5C',2);%5C" title=%5C"Bitwise Left Shift%5C"><br>%5Cn<input type=%5C"button%5C" value=%5C"&gt;&gt;%5C" class=%5C"advanced%5C" onClick=%5C"ab(%5C' &gt;&gt; %5C',2);%5C" title=%5C"Bitwise Right Shift%5C"><br>%5Cn<input type=%5C"button%5C" value=%5C"%%5C" class=%5C"advanced%5C" onClick=%5C"ab(%5C' % %5C',2);%5C" title=%5C"Modular Division%5C"><br>%5Cn<input type=%5C"button%5C" value=%5C",%5C" class=%5C"advanced%5C" onClick=%5C"ab(%5C', %5C',2);%5C" title=%5C"Comma for functions%5C"><br>%5Cn</td></tr><tr>%5Cn<td><input type=%5C"button%5C" value=%5C"7%5C" class=%5C"number%5C" onClick=%5C"ab(%5C'7%5C',0);%5C" title=%5C"Seven%5C"></td>%5Cn<td><input type=%5C"button%5C" value=%5C"8%5C" class=%5C"number%5C" onClick=%5C"ab(%5C'8%5C',0);%5C" title=%5C"Eight%5C"></td>%5Cn<td><input type=%5C"button%5C" value=%5C"9%5C" class=%5C"number%5C" onClick=%5C"ab(%5C'9%5C',0);%5C" title=%5C"Nine%5C"></td>%5Cn<td><input type=%5C"button%5C" value=%5C"-%5C" class=%5C"operand%5C" onClick=%5C"ab(%5C' - %5C',1);%5C" title=%5C"Subtraction%5C"></td>%5Cn</tr><tr>%5Cn<td><input type=%5C"button%5C" value=%5C"4%5C" class=%5C"number%5C" onClick=%5C"ab(%5C'4%5C',0);%5C" title=%5C"Four%5C"></td>%5Cn<td><input type=%5C"button%5C" value=%5C"5%5C" class=%5C"number%5C" onClick=%5C"ab(%5C'5%5C',0);%5C" title=%5C"Five%5C"></td>%5Cn<td><input type=%5C"button%5C" value=%5C"6%5C" class=%5C"number%5C" onClick=%5C"ab(%5C'6%5C',0);%5C" title=%5C"Six%5C"></td>%5Cn<td><input type=%5C"button%5C" value=%5C"*%5C" class=%5C"operand%5C" onClick=%5C"ab(%5C' * %5C',1);%5C" title=%5C"Multiplication%5C"></td>%5Cn</tr><tr>%5Cn<td><input type=%5C"button%5C" value=%5C"1%5C" class=%5C"number%5C" onClick=%5C"ab(%5C'1%5C',0);%5C" title=%5C"One%5C"></td>%5Cn<td><input type=%5C"button%5C" value=%5C"2%5C" class=%5C"number%5C" onClick=%5C"ab(%5C'2%5C',0);%5C" title=%5C"Two%5C"></td>%5Cn<td><input type=%5C"button%5C" value=%5C"3%5C" class=%5C"number%5C" onClick=%5C"ab(%5C'3%5C',0);%5C" title=%5C"Three%5C"></td>%5Cn<td><input type=%5C"button%5C" value=%5C"&#247;%5C" class=%5C"operand%5C" onClick=%5C"ab(%5C' / %5C',1);%5C" title=%5C"Division%5C"></td>%5Cn</tr><tr>%5Cn<td><input type=%5C"button%5C" value=%5C"EE%5C" class=%5C"other%5C" onClick=%5C"ab(%5C'e%5C',2);%5C" title=%5C"Scientific Notation Exponent%5C"></td>%5Cn<td><input type=%5C"button%5C" value=%5C"0%5C" class=%5C"number%5C" onClick=%5C"ab(%5C'0%5C',0);%5C" title=%5C"Zero%5C"></td>%5Cn<td><input type=%5C"button%5C" value=%5C".%5C" class=%5C"other%5C" onClick=%5C"ab(%5C'.%5C',2);%5C" title=%5C"Decimal Point%5C"></td>%5Cn<td><input type=%5C"button%5C" value=%5C"=%5C" class=%5C"equal%5C" accesskey=e onClick=%5C"ag();%5C" title=%5C"Enter (Alt-e)%5C"></td>%5Cn</tr></table>%5Cn</td><td valign=top>%5Cn<p><small>Display:</small><br>%5Cn<select name=display class=display onChange=%5C"af();ao();%5C" title=%5C"(Alt-d)%5C">%5Cn<option selected>Decimal (Mixed Notation)%5Cn<option>Decimal (Scientific Notation)%5Cn<option>Decimal (Engineering Notation)%5Cn<option>Hexadecimal%5Cn<option>Octal%5Cn<option>Binary%5Cn</select></p>%5Cn<p><select name=history class=history onChange=%5C"if(this.selectedIndex>0)ap(this.options[this.selectedIndex].text);%5C" title=%5C"View previous entries (Alt-h)%5C">%5Cn<option>History:%5Cn<option><option><option><option><option><option><option><option><option>%5Cn<option><option><option><option><option><option><option><option><option><option>%5Cn</select></p>%5Cn<p><select name=mathConstants class=mathConstants onChange=%5C"ab(this.options[this.selectedIndex].value,0);this.selectedIndex=0;%5C">%5Cn<option>Math Constants:%5Cn<option value=%5C"E %5C">e%5Cn<option value=%5C"LN10 %5C">ln(10)%5Cn<option value=%5C"LN2 %5C">ln(2)%5Cn<option value=%5C"LOG10E %5C">log10(e)%5Cn<option value=%5C"LOG2E %5C">log2(e)%5Cn<option value=%5C"PI %5C">&pi;<option value=%5C"SQRT1_2 %5C">sqrt(1/2)%5Cn<option value=%5C"SQRT2 %5C">sqrt(2)%5Cn</select>&nbsp;<small>(<a target=%5C'_blank%5C' target=%5C"_blank%5C" href=%5C"http://www.javascripter.net/faq/mathcons.htm%5C">docs</a>)</small></p>%5Cn<p><select name=mathFunctions class=mathFunctions onChange=%5C"ab(this.options[this.selectedIndex].value,0);this.selectedIndex=0;%5C">%5Cn<option>Math Functions:%5Cn<option value=%5C"abs(%5C">abs%5Cn<option value=%5C"acos(%5C">acos%5Cn<option value=%5C"asin(%5C">asin%5Cn<option value=%5C"atan(%5C">atan%5Cn<option value=%5C"atan2(%5C">atan2%5Cn<option value=%5C"ceil(%5C">ceil%5Cn<option value=%5C"cos(%5C">cos%5Cn<option value=%5C"exp(%5C">exp%5Cn<option value=%5C"floor(%5C">floor%5Cn<option value=%5C"log(%5C">log%5Cn<option value=%5C"max(%5C">max%5Cn<option value=%5C"min(%5C">min%5Cn<option value=%5C"pow(%5C">pow%5Cn<option value=%5C"random()%5C">random%5Cn<option value=%5C"round(%5C">round%5Cn<option value=%5C"sin(%5C">sin%5Cn<option value=%5C"sqrt(%5C">sqrt%5Cn<option value=%5C"tan(%5C">tan%5Cn</select>&nbsp;<small>(<a target=%5C'_blank%5C' target=%5C"_blank%5C" href=%5C"http://www.javascripter.net/faq/mathfunc.htm%5C">docs</a>)</small></p>%5Cn<p><input type=%5C"button%5C" value=%5C"H%5C" accesskey=h class=%5C"keyshortcut%5C" onClick=%5C"ae();%5C">%5Cn<input type=%5C"button%5C" value=%5C"D%5C" accesskey=d class=%5C"keyshortcut%5C" onClick=%5C"al();%5C">%5Cn<input type=%5C"button%5C" value=%5C"M%5C" accesskey=m class=%5C"keyshortcut%5C" onClick=%5C"ad(0);%5C">%5Cn<input type=%5C"button%5C" value=%5C"S%5C" accesskey=s class=%5C"keyshortcut%5C" onClick=%5C"ad(1);%5C">%5Cn<input type=%5C"button%5C" value=%5C"G%5C" accesskey=g class=%5C"keyshortcut%5C" onClick=%5C"ad(2);%5C">%5Cn<input type=%5C"button%5C" value=%5C"B%5C" accesskey=b class=%5C"keyshortcut%5C" onClick=%5C"ad(5);%5C">%5Cn<input type=%5C"button%5C" value=%5C"O%5C" accesskey=o class=%5C"keyshortcut%5C" onClick=%5C"ad(4);%5C">%5Cn<input type=%5C"button%5C" value=%5C"X%5C" accesskey=x class=%5C"keyshortcut%5C" onClick=%5C"ad(3);%5C">%5Cn<input type=%5C"button%5C" value=%5C"A%5C" accesskey=a class=%5C"keyshortcut%5C" onClick=%5C"ab(%5C'ans %5C',0);%5C"></p>%5Cn</td></tr></table>%5Cn</form>%5Cn<div style=%5C"height:1in;%5C"></div>%5Cn<h3>Instructions</h3>%5Cn<table summary=%5C"List of keyboard shortcuts%5C" vspace=20 hspace=20 border=0 width=150 align=right><tr><td>%5Cn<b>Keyboard shortcuts (Alt or Cmd):</b><br>%5Cn<ul>%5Cn<li><u>C</u>lear</li>%5Cn<li><u>E</u>quals</li>%5Cn<li><u>H</u>istory (previous)</li>%5Cn<li><u>D</u>isplay (cycle)</li>%5Cn<li>Decimal <u>m</u>ixed display</li>%5Cn<li>Decimal <u>S</u>cientific display</li>%5Cn<li>Decimal En<u>g</u>ineering display</li>%5Cn<li><u>B</u>inary display</li>%5Cn<li><u>O</u>ctal display</li>%5Cn<li>He<u>x</u> display</li>%5Cn<li>Last <u>A</u>nswer</li>%5Cn</ul>%5Cn</td></tr></table>%5Cn<p>Enter an expression into the tan bar and press enter to calculate the results. </p>%5Cn<p>This calculator remembers up to twenty past calculations in history. To save the history%5Cnbetween visits you must have cookies enabled.</p>%5Cn<p>All results are calculated using the Javascript eval() function. Syntax for expressions%5Cnis the same as that for Javascript.</p>%5Cn<p>This calculator can handle input numbers in several different bases:</p>%5Cn<ul>%5Cn<li>Decimal (Base 10): Numbers that do not start with a zero like 15 or 3.14e15.%5CnDecimal numbers can contain digits 0-9, decimals, and scientific notation.</li>%5Cn<li>Hexadecimal (Base 16): Integers that start with a zero x like 0x1a5. Hexadecimal numbers%5Cncan contain digits 0-9 and a-f (or A-F) but no decimal or scientific notation.</li>%5Cn<li>Octal (Base 8): Integers that start with a zero like 073. Octal numbers%5Cncan contain digits 0-7 but no decimal or scientific notation.</li>%5Cn<li>Binary (Base 2): Integers that start with a zero b like 0b101. Binary numbers%5Cncan contain digits 0 and 1 but no decimal or scientific notation.</li>%5Cn</ul>%5Cn<p>^ is a bitwise xor operation. To raise a number to a power use pow() function.</p>%5Cn<hr>%5Cn<h3>License</h3>%5Cn<p>This program is free software;you can redistribute it and/or modify it%5Cnunder the terms of the GNU General Public License as published by the Free%5CnSoftware Foundation;either version 2 of the License, or (at your option)%5Cnany later version.</p>%5Cn<p>This program is distributed in the hope that it will be useful,%5Cnbut WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY%5Cnor FITNESS FOR A PARTICULAR PURPOSE. See the%5Cn<a target=%5C'_blank%5C' href=%5C"http://www.gnu.org/copyleft/gpl.html%5C">GNU%5CnGeneral Public License</a> for more details.</p>%5Cn<p style=%5C"text-size:small%5C">scientific calculater, binary calc, octal, hex, hexadecimal, hexidecimal</p>%5Cn<div style=%5C"padding:0.2cm;%5C"><a target=%5C'_blank%5C' href=%5C"http://ostermiller.org/calc/%5C">More converters, calculators, and other JavaScript goodies</a></div>%5Cn<div style=%5C"padding:0.2cm;text-align:right;%5C"><a target=%5C'_blank%5C' href=%5C"http://ostermiller.org/%5C">ostermiller.org</a> (<a target=%5C'_blank%5C' href=%5C"http://ostermiller.org/siteindex.html%5C">site index</a>)</div>%5Cn<div style=%5C"padding:0.2cm;%5C"><p>Copyright <a target=%5C'_blank%5C' href=%5C"http://ostermiller.org/contact.pl?regarding=JavaScript+Calculator%5C" class=mail>Stephen Ostermiller</a> 2002-2006</p></div>%5Cn</body>%5Cn</html>%5Cn");})())



Аватара пользователя
foxss

Админ
Администратор
Сообщения: 1515
Зарегистрирован: 07 мар 2020, 21:29
Награды: 1
Репутация: 189
Страна: Россия
Самозанятость: Нет

Bookmarklets (букмарклеты) - закладки с JavaScript кодом

#1509

Непрочитанное сообщение foxss »

таблица цветовой палитры, коды HEX(генерирует полностью букмарклет)

Код: Выделить всё

javascript:t='';c=new Array('00','33','66','99','CC','FF');for(i=0;i<6;i++){t+='<table width=100%>';for(j=0;j<6;j++){t+='<tr>';for(k=0;k<6;k++){L=c[i]+c[j]+c[k];t+='<td bgcolor='+L+'>'+L}t+='</tr>'}t+='</table>'};with(document){write(t);void(close())}
Закачка видео через SaveFrom.net - для ютубе и прочих.. :)

Код: Выделить всё

javascript:(function(bookmarklets)%7Bfor(var%20i=0;i%3Cbookmarklets.length;i++)%7Bvar%20code=bookmarklets%5Bi%5D.url;if(code.indexOf(%22javascript:%22)!=-1)%7Bcode=code.replace(%22javascript:%22,%22%22);eval(code)%7Delse%7Bcode=code.replace(/%5Es+%7Cs+$/g,%22%22);if(code.length%3E0)%7Bwindow.open(code)%7D%7D%7D%7D)(%5B%7Btitle:%22SaveFromNet%20video%20download%22,url:%22javascript:this.location.href(%5Cx27http://ru.savefrom.net/#url=%5Cx27+this.location.href)%22%7D%5D)



Аватара пользователя
foxss

Админ
Администратор
Сообщения: 1515
Зарегистрирован: 07 мар 2020, 21:29
Награды: 1
Репутация: 189
Страна: Россия
Самозанятость: Нет

Bookmarklets (букмарклеты) - закладки с JavaScript кодом

#1510

Непрочитанное сообщение foxss »

поиск логинов/паролей для открытого сйта (с помощью bugmenot.com):

Код: Выделить всё

javascript:(function(){w=open(('http://www.bugmenot.com/view/'+escape(location)),'w','location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=500,height=400,modal=yes,dependent=yes');setTimeout('w.focus()',1000)})();
Текущая ДАТА:

Код: Выделить всё

javascript:current_date = new Date();document.write("<p><i>Текуща\я дата:</i> "+current_date + ".<p>");
АВТООБНОВЛЕНИЕ открытой стр. (ч-з 5 сек, можно менять):

Код: Выделить всё

javascript:void( setTimeout(function(){  location.reload() }, 5000) )
Исправление раскладки:

Код: Выделить всё

javascript:function eng_to_rus_on_page(){function r(){function r(r){return r.selection?r.selection.createRange().text:r.getSelection()}for(s=r(document),i=0;i<frames.length&&!s;i++)s=r(frames[i].document);return s}function e(r){for(var e="",n=0;n<r.length;n++){var t=r.substr(n,1);e+=o[u.indexOf(t)]||t}return e}var n="qwertyuiop[]asdfghjkl;'zxcvbnm,./!@#$%^&*()_+QWERTYUIOP{}ASDFGHJKL:\"ZXCVBNM<>?|",t='йцукенгшщзхъфывапролджэячсмитьбю.!"№;%:?*()_+ЙЦУКЕНГШЩЗХЪФЫВАПРОЛДЖЭЯЧСМИТЬБЮ,/',o=Array.from(n+t),u=Array.from(t+n),a=r().toString()||prompt("Ваш текст в неправильной раскладке:"),f=e(a);prompt("Исправленная версия:",f)}eng_to_rus_on_page();



Аватара пользователя
foxss

Админ
Администратор
Сообщения: 1515
Зарегистрирован: 07 мар 2020, 21:29
Награды: 1
Репутация: 189
Страна: Россия
Самозанятость: Нет

Bookmarklets (букмарклеты) - закладки с JavaScript кодом

#1518

Непрочитанное сообщение foxss »

Кнопка "Три в одном".
Яндекс: нумерует результаты поиска; считает количество колдунщиков; считает количество морд в топе; показывает ИКС для каждого сайта; выводит урлы из топа списком, выводит тайтлы из топа списком; подсвечивает "колдунщики"; показывает дату копии страницы, используемой яндексом при ранжировании.
Гугл: нумерует результаты поиска; считает количество морд в топе; выводит урлы из топа списком, выводит тайтлы из топа списком.
Остальные страницы: выводит блок, в котором показывается тайтл, метатеги, заголовки H1-H6, внешние и внутренние ссылки страницы, проверяет долю видимого контента и прочие полезные мелочи.

Код: Выделить всё

javascript:(function(){var $fullDomen=top.location.hostname.toString();if($fullDomen.indexOf('www.')==0){$fullDomen=$fullDomen.replace('www.','')}var $current_url=top.location.href;var $jQ=(typeof jQuery!='undefined')?true:false;var $coolBlock=document.getElementById('coolBlockHead');if($coolBlock){coolClose()}$cbh=document.createElement('div');$cbh.setAttribute('id','coolBlockHead');$cbh.setAttribute('data-coolbm','1');$cbh.innerHTML=$fullDomen;$cbb=document.createElement('div');$cbb.setAttribute('id','coolBlockBody');$cbb.setAttribute('data-coolbm','1');$cbb.className='coolCollapse';$cbb.innerHTML=$fullDomen;switch($fullDomen){case'yandex.ru':case'yandex.by':case'yandex.ua':case'yandex.kz':$cbh.className+='coolGray';var yaClass='.serp-item:not(.serp-adv-item) .organic H2 A, .serp-item:not(.serp-adv-item) .Organic H2 A';$numPage=$_GET('p')?$_GET('p'):0;var morda=0,top10=1;serpList='<ol id=\'coolYaUrl\' class=\'coolCollapse\'>';serpTitle='<ol id=\'coolYaTitle\' class=\'coolCollapse\'>';$countSerp=($(yaClass).length==50)?50:(($(yaClass).length==15)?15:10);$numCounter=0;$countPodmes=0;var patternClass='/class=\'(.*?)\'/g';$(yaClass+' ').each(function(index,element){$isPodmes=false;$isContext=false;$a=$(this).parent().parent().parent().data('fast-wzrd');if(typeof $a!="undefined"){$isPodmes=true}$a=$(this).closest('.serp-item').data('fast-wzrd');if(typeof $a!="undefined"){$isPodmes=true}if($(this).parent().parent().parent().hasClass('card__narrow')){$isPodmes=true}if($(this).parent().parent().parent().hasClass('composite')){$isPodmes=true}$a=element.href.match(new RegExp('=wizard'));if($a!==null){$isPodmes=true}$a=element.href.match(new RegExp('utm_source=yandex'));if($a!==null){$isPodmes=true}$a=element.href.match(new RegExp('=wiz'));if($a!==null){$isPodmes=true}$a=element.href.match(new RegExp('https://yandex.ru/search/ads'));if($a!==null){$isPodmes=true}$a=element.href.match(new RegExp('yandex.ru/search/ads'));if($a!==null){$isPodmes=true}if(element.href.match(new RegExp('yabs.yandex.ru'))!==null){$isContext=true}if($isPodmes){$(this).parent().parent().css('background-color','#ffe5e0');$countPodmes++}else if($isContext){}else{$numCounter++;num=($numPage*$countSerp)+$numCounter;$(this).parent().before('<span class=\'coolNumber\' data-coolbm=1>'+num+'</span><img src=\'https://yandex.ru/cycounter?'+element.href+'\' class=\'coolSqi\' data-coolbm=1 />');serpList+='<li>'+element+'</li>';serpTitle+='<li>'+element.innerHTML.replace(patternClass,'')+'</li>';if(top10<=10){if(get_hostname(element.toString())==element){morda++}top10++}}});serpList+='</ol>';serpTitle+='</ol>';var $yaClassHghltd=$('.serp-item div.organic__subtitle .extralinks');$yaClassHghltd.each(function(k,v){var $la=v.outerHTML.match(new RegExp('la=([^&=]+)'));var $ft=v.outerHTML.match(new RegExp('src=FT'));if($la!==null){myDate=new Date($la[1]*1000);day=('0'+myDate.getDate()).slice(-2);month=('0'+(myDate.getMonth()+1)).slice(-2);year=myDate.getFullYear(),$date=day+'.'+month+'.'+year}else{$date=''}if($ft!==null){$date=$date+' %D0%91%D0%AB%D0%A1%D0%A2%D0%A0%D0%9E%D0%A0%D0%9E%D0%91%D0%9E%D0%A2'}$(this).parent().after('<span class=\'coolDate\' data-coolbm=1>'+$date+'</span>')});$outputHead='<span class=\'coolLine\'>%D0%9C%D0%BE%D1%80%D0%B4 %D0%B2 %D1%82%D0%BE%D0%BF10: <b>'+morda+'</b></span>';$outputHead+='<span class=\'coolLine\'>%D0%9A%D0%BE%D0%BB%D0%B4%D1%83%D0%BD%D1%89%D0%B8%D0%BA%D0%BE%D0%B2: <b>'+$countPodmes+'</b></span>';$outputHead+='<b class=\'coolBtn showList coolYaUrl\' data-target=\'coolYaUrl\'>%D0%9F%D0%BE%D0%BA%D0%B0%D0%B7%D0%B0%D1%82%D1%8C %D1%82%D0%BE%D0%BF %D1%81%D0%BF%D0%B8%D1%81%D0%BA%D0%BE%D0%BC</b>';$outputHead+='<b class=\'coolBtn showList coolYaTitle\' data-target=\'coolYaTitle\'>%D0%9F%D0%BE%D0%BA%D0%B0%D0%B7%D0%B0%D1%82%D1%8C %D1%82%D0%B0%D0%B9%D1%82%D0%BB%D1%8B %D1%81%D0%BF%D0%B8%D1%81%D0%BA%D0%BE%D0%BC</b>';$outputBody=serpList;$outputBody+=serpTitle;$('A.link_theme_normal').click(function(){coolClose()});break;case'google.ru':case'google.com':case'google.com.ua':case'google.by':$cbh.className+='coolGray';document.getElementsByTagName('body')[0].style.marginTop='23px';var $morda=0;var $top10=1;var list=document.getElementById('search').getElementsByClassName('r');if(getHashGoogle('start'))var $numPage=parseInt(getHashGoogle('start'));else var $numPage=$_GET('start')?parseInt($_GET('start')):0;var $listUrl='<ol start=\''+($numPage+1)+'\'>';var $listTitle='<ol start=\''+($numPage+1)+'\'>';for(i=0;i<list.length;i++){num=$numPage+i+1;num='<span style=\'color: #777;float: left;margin:5px 0 0 -20px; \' data-coolbm=1>'+num+'</span>';list[i].insertAdjacentHTML('beforeBegin',num);$url=list[i].firstElementChild.href;$ankor=list[i].firstElementChild.getElementsByTagName('H3')[0].innerHTML;$listUrl+='<li style=\'list-style: unset\'>'+$url+'</li>';$listTitle+='<li style=\'list-style: unset\'>'+$ankor+'</li>';if($top10<=10){if(get_hostname($url.toString())==$url){$morda++}$top10++}}$listUrl+='</ol>';$listTitle+='</ol>';var $outputBody='<div id=\'coolGoogleUrl\'>'+$listUrl+'</div><div id=\'coolGoogleTitle\'>'+$listTitle+'</div>';var $outputHead='<span class=\'coolLine\'>%D0%9C%D0%BE%D1%80%D0%B4 %D0%B2 %D1%82%D0%BE%D0%BF10: <b>'+$morda+'</b></span> ';$outputHead+='<span>';$outputHead+='<b class=\'coolBtn showList\' data-target=\'coolGoogleTitle\'>%D0%9F%D0%BE%D0%BA%D0%B0%D0%B7%D0%B0%D1%82%D1%8C %D1%82%D0%B0%D0%B9%D1%82%D0%BB%D1%8B %D1%81%D0%BF%D0%B8%D1%81%D0%BA%D0%BE%D0%BC</b>';$outputHead+='<b class=\'coolBtn showList\' data-target=\'coolGoogleUrl\'>%D0%9F%D0%BE%D0%BA%D0%B0%D0%B7%D0%B0%D1%82%D1%8C %D1%82%D0%BE%D0%BF %D1%81%D0%BF%D0%B8%D1%81%D0%BA%D0%BE%D0%BC</b>';$outputHead+='</span>';break;default:var $outputBody='',$outputHead='';var $head=document.getElementsByTagName('head');for(i=0;i<$head.length;i++){for(j=0;j<$head[i].getElementsByTagName('title').length;j++){var $textTitle=$head[i].getElementsByTagName('title')[j].innerHTML;var $lenTitle=countWords($textTitle);if(j>0){$outputHead+='<b class=\'red\' title=\'%D0%9D%D0%B0 %D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B5 %D0%B1%D0%BE%D0%BB%D1%8C%D1%88%D0%B5 %D0%BE%D0%B4%D0%BD%D0%BE%D0%B3%D0%BE %D1%82%D0%B0%D0%B9%D1%82%D0%BB%D0%B0\'>Title</b> ('+$lenTitle+'): '+$textTitle+'<br>'}else{$outputHead+='<b>Title</b> ('+$lenTitle+'): '+$textTitle+'<br>'}}}var metas=document.getElementsByTagName('meta');var h1s=document.getElementsByTagName('h1');var bs=document.getElementsByTagName('b');var strong=document.getElementsByTagName('strong');var tagLink=document.getElementsByTagName('link');var noindex=document.getElementsByTagName('noindex');var allTags=document.body.getElementsByTagName('*');$outputHead+='<div class=\'coolleft\'>';var pattern1=/style=[\"|\'](.*?)[\"|\']/g;var pattern2=/class=[\"|\'](.*?)[\"|\']/g;dopMeta='';for(var i=0;i<metas.length;i++){if(metas[i].getAttribute('name')){nameMeta=metas[i].getAttribute('name');nameMetaLowerCase=nameMeta.toLowerCase();txtMeta=EscapeHtml(metas[i].getAttribute('content'));if((nameMetaLowerCase=='description')||(nameMetaLowerCase=='keywords')||(nameMetaLowerCase=='robots')||(nameMetaLowerCase=='yandex')||(nameMetaLowerCase=='googlebot')){lenMeta=countWords(txtMeta);if((nameMetaLowerCase=='robots'||nameMetaLowerCase=='yandex'||nameMetaLowerCase=='googlebot')&&(txtMeta.indexOf('noindex')!=-1||txtMeta.indexOf('none')!=-1)){txtMeta='<span class=\'red\'>'+txtMeta+'</span>'}$outputHead+='<b>'+nameMeta+'</b> ('+lenMeta+'): '+txtMeta+'<br>'}}}$outputHead+='<div class=\'coolCollapse\'>'+dopMeta+'</div>';$outputHead+='<div class=\'coolHeadlines\'>';for(var i=0;i<h1s.length;i++){if(h1s[i]){hh=escapeBR(h1s[i].innerHTML).replace(pattern1,'').replace(pattern2,'');if(isHidden(h1s[i])){hh='<span class=\'coolHidAlert\' title=\'%D0%BD%D0%B5%D0%B2%D0%B8%D0%B4%D0%B8%D0%BC%D1%8B%D0%B9\'>'+hh+'</span>'}$outputHead+='<b>H1</b>: <span class=\'coolHs\'>'+hh+'</span><br>'}}$part_vis=0;$part_hidden=0;$text_hidden='';for(var i=0;i<allTags.length;i++){if(allTags[i]){if(allTags[i].getElementsByTagName('*')[0]){continue}if(allTags[i].tagName=='SCRIPT'||allTags[i].tagName=='STYLE'||allTags[i].tagName=='style'||allTags[i].tagName=='NOSCRIPT'||allTags[i].tagName=='BR'||allTags[i].tagName=='IMG'||allTags[i].tagName=='TEXTAREA'||allTags[i].tagName=='INPUT'||allTags[i].tagName=='META'||allTags[i].tagName=='IFRAME')continue;if(allTags[i].textContent.replace(/\s+/g,'').length==0)continue;$tag=allTags[i].textContent.replace(/\s+/g,' ').trim();if(isHidden(allTags[i])){$part_hidden+=$tag.length;$text_hidden+='&lt;'+allTags[i].tagName+'&gt: '+$tag+"\r\n"}else{$part_vis+=$tag.length}}}var nl=false;for(var j=2;j<=6;j++){var hs=document.getElementsByTagName('h'+j);if(hs[0]){hh=escapeBR(hs[0].innerHTML).replace(pattern1,'').replace(pattern2,'');if(isHidden(hs[0]))hh='<span class=\'coolHidAlert\' title=\'%D0%BD%D0%B5%D0%B2%D0%B8%D0%B4%D0%B8%D0%BC%D1%8B%D0%B9\'>'+hh+'</span>';$outputHead+='<b>H'+j+'</b> ('+hs.length+' %D1%88%D1%82.): <span class=\'coolHs\'>'+hh;nl=true}for(var i=1;i<hs.length;i++){if(hs[i]){hh=escapeBR(hs[i].innerHTML).replace(pattern1,'').replace(pattern2,'');if(isHidden(hs[i]))hh='<span class=\'coolHidAlert\' title=\'%D0%BD%D0%B5%D0%B2%D0%B8%D0%B4%D0%B8%D0%BC%D1%8B%D0%B9\'>'+hh+'</span>';$outputHead+=' || '+hh}}if(nl)$outputHead+='</span><br>';nl=false}$outputHead+='</div>';if(tagLink){for(var i=0;i<tagLink.length;i++){if(tagLink[i].getAttribute('rel')&&(tagLink[i].getAttribute('rel').toLowerCase()=='canonical')){var $coolCan=EscapeHtml(tagLink[i].getAttribute('href'));if(EscapeHtml($current_url)==$coolCan)$outputHead+='<b>Canonical</b>: <span class=\'coolGreenBg\'>'+$coolCan+'</span>';else $outputHead+='<b>Canonical</b>: '+$coolCan+'';$outputHead+='<br>'}if(tagLink[i].getAttribute('rel')&&(tagLink[i].getAttribute('rel').toLowerCase()=='prev')){var coolPrev=EscapeHtml(tagLink[i].getAttribute('href'));$outputHead+='<b>prev</b>: '+coolPrev+'<br>'}if(tagLink[i].getAttribute('rel')&&(tagLink[i].getAttribute('rel').toLowerCase()=='next')){var coolNext=EscapeHtml(tagLink[i].getAttribute('href'));$outputHead+='<b>next</b>: '+coolNext+'<br>'}if(tagLink[i].getAttribute('rel')&&(tagLink[i].getAttribute('rel').toLowerCase()=='amphtml')){var coolAmp=EscapeHtml(tagLink[i].getAttribute('href'));$outputHead+='<b>AMPhtml</b>: '+coolAmp+'<br>'}}}$ratioHidden=Math.round(100*$part_hidden/($part_vis+$part_hidden))/100;$outputHead+='<b>%D0%A2%D0%B5%D0%BA%D1%81%D1%82</b>: %D0%B2%D0%B8%D0%B4%D0%B8%D0%BC%D1%8B%D0%B9 - '+$part_vis+' %D0%B7%D0%BD%D0%B0%D0%BA%D0%BE%D0%B2; %D0%BD%D0%B5%D0%B2%D0%B8%D0%B4%D0%B8%D0%BC%D1%8B%D0%B9 - '+$part_hidden+' (<i title=\'%D0%9E%D1%82%D0%BD%D0%BE%D1%88%D0%B5%D0%BD%D0%B8%D0%B5 %D0%BD%D0%B5%D0%B2%D0%B8%D0%B4%D0%B8%D0%BC%D0%BE%D0%B3%D0%BE %D1%82%D0%B5%D0%BA%D1%81%D1%82%D0%B0 %D0%BA %D0%BE%D0%B1%D1%89%D0%B5%D0%BC%D1%83 %D0%BA%D0%BE%D0%BB%D0%B8%D1%87%D0%B5%D1%81%D1%82%D0%B2%D1%83\'>'+$ratioHidden+'</i>)<br>';$httpRequest=getHttpRequest();if($httpRequest['status']!==200)$httpRequest['status']='<span class=\'red\'>'+$httpRequest['status']+'</span>';if($httpRequest['robots'].indexOf('noindex')!=-1)$httpRequest['robots']='<span class=\'red\'>'+$httpRequest['robots']+'</span>';$outputHead+='<b>%D0%9E%D1%82%D0%B2%D0%B5%D1%82 %D1%81%D0%B5%D1%80%D0%B2%D0%B5%D1%80%D0%B0</b>: '+$httpRequest['status']+'; ';if($httpRequest['robots']){$outputHead+='X-Robots-Tag: '+$httpRequest['robots']+'; '}Domen=get_hostname(top.location.toString()).replace('www.','');$links=document.querySelectorAll('a');$links_int=[];$links_ext=[];for($l of $links){$href=$l.getAttribute('href');if($href&&($href.startsWith('http://')||$href.startsWith('https://'))&&get_hostname($href).replace('www.','')!==Domen){$links_ext.push($l)}else{$links_int.push($l)}}var coolInL=$links_int.length;var coolExL=$links_ext.length;var $imgs=document.getElementsByTagName('img');var $countImg=$imgs.length;var $countSmall=0,$countMid=0,$countBig=0;var $listBig=$listMid=$listSmall='';for(var i=0;i<$countImg;i++){if($imgs[i].width>1024&&$imgs[i].height>768){$countBig++;$listBig+='<img src=\''+$imgs[i].src+'\' />'}else if($imgs[i].width>400&&$imgs[i].height>300){$countMid++;$listMid+='<img src=\''+$imgs[i].src+'\' />'}else{$countSmall++;$listSmall+='<img src=\''+$imgs[i].src+'\' />'}}$outputHead+='</div>';$outputHead+='<div class=\'coolright\'>';$outputHead+='<a href=\'https://ahrefs.com/site-explorer/overview/v2/subdomains/fresh?target='+$fullDomen+'\' target=\'_blank\'>ahref</a> ';$outputHead+='<a href=\'https://www.nic.ru/whois/?query='+$fullDomen+'\' target=\'_blank\'>whois</a> ';$outputHead+='<a href=\'https://www.similarweb.com/website/'+$fullDomen+'\' target=\'_blank\'>smlrweb</a> ';$outputHead+='<a href=\'https://web.archive.org/web/*/'+$current_url+'\' target=\'_blank\'>web.arch</a> ';$outputHead+='<a href=\'https://webmaster.yandex.ru/siteinfo/?site='+$fullDomen+'\' target=\'_blank\'>ya.siteinfo</a> ';$outputHead+='<a href=\'https://search.google.com/test/rich-results?url='+$current_url+'\' target=\'_blank\'>rich-rslt</a> ';$outputHead+='</div>';$outputHead+='<div class=\'coolButtons\'>';$outputHead+='<span>';$outputHead+='<b class=\'coolBtn showList\' data-target=\'coolLinksEx\'> %D0%92%D0%BD%D0%B5%D1%88%D0%BD%D0%B8%D0%B5 %D1%81%D1%81%D1%8B%D0%BB%D0%BA%D0%B8('+coolExL+') </b>';$outputHead+='<b class=\'coolBtn showList\' data-target=\'coolLinksIn\'> %D0%92%D0%BD%D1%83%D1%82%D1%80%D0%B5%D0%BD%D0%BD%D0%B8%D0%B5 %D1%81%D1%81%D1%8B%D0%BB%D0%BA%D0%B8 ('+coolInL+') </b>';$outputHead+='<b class=\'coolBtn showList\' data-target=\'coolImg\'> %D0%9A%D0%B0%D1%80%D1%82%D0%B8%D0%BD%D0%BA%D0%B8 ('+$countImg+') </b>';$outputHead+='<b class=\'coolBtn showList\' data-target=\'coolHiddenText\'> %D0%A1%D0%BA%D1%80%D1%8B%D1%82%D1%8B%D0%B9 %D1%82%D0%B5%D0%BA%D1%81%D1%82 </b>';$outputHead+='</span>';$outputHead+='<a href=\'http://coolakov.ru\' class=\'cool%D0%A1prt\' target=\'_blank\'>%C2%A9 coolakov</a>';$outputHead+='</div>';$outputBody+='<table id=\'coolLinksIn\' class=\'coolCollapse\'>';for(var j=0;j<$links_int.length;j++){$outputBody+='<tr><td><span class=\'coolTdUrl\'>'+$links_int[j]+'</span></td><td>'+$links_int[j].innerHTML.replace(pattern1,'').replace(pattern2,'')+'</td></tr>'}$outputBody+='</table>';$outputBody+='<table id=\'coolLinksEx\' class=\'coolCollapse\'>';for(var j=0;j<$links_ext.length;j++){$outputBody+='<tr><td><div class=\'coolTdUrl\'>'+$links_ext[j]+'</div></td><td>'+$links_ext[j].innerHTML+'</td></tr>'}$outputBody+='</table>';$outputBody+='<div id=\'coolImg\' class=\'coolCollapse\'>';if($countBig!==0){$outputBody+='<div><b>%D0%91%D0%BE%D0%BB%D1%8C%D1%88%D0%B8%D0%B5</b> (> 1024%C3%97768): '+$countBig+' %D1%88%D1%82.<br> '+$listBig+'</div>'}if($countMid!==0){$outputBody+='<div><b>%D0%A1%D1%80%D0%B5%D0%B4%D0%BD%D0%B8%D0%B5</b> (400%C3%97300 - 1024%C3%97768): '+$countMid+' %D1%88%D1%82.<br> '+$listMid+'</div>'}if($countSmall!==0){$outputBody+='<div><b>%D0%9C%D0%B0%D0%BB%D0%B5%D0%BD%D1%8C%D0%BA%D0%B8%D0%B5</b> (< 400%C3%97300) '+$countSmall+' %D1%88%D1%82. <br> '+$listSmall+'</div>'}$outputBody+='</div>';$outputBody+='<div id=\'coolHiddenText\' class=\'coolCollapse\'>';$outputBody+='<pre>'+$text_hidden+'</pre>';$outputBody+='</div>';document.body.innerHTML=document.body.innerHTML.replace(/<!--noindex/g,'<span class=\'coolnoindex\'><!--noindex');document.body.innerHTML=document.body.innerHTML.replace(/\/noindex-->/g,'noindex--></span>');break}$cbh.innerHTML='<div class=\'coolHeadInner\'><b id=\'coolclose\'>%C3%97</b>'+$outputHead+'</div>';$cbb.innerHTML='<div id=\'coolBodyInner\'>'+$outputBody+'</div>';addMmyCss();document.getElementsByTagName('body')[0].appendChild($cbh);document.getElementsByTagName('body')[0].appendChild($cbb);document.getElementsByTagName('body')[0].classList.add('coolRelative');$myHeight=$cbh.offsetHeight+'px';document.getElementsByTagName('body')[0].style.marginTop=$myHeight;document.getElementById('coolclose').onclick=function(){coolClose()};function coolClose(){var elements=document.querySelectorAll('*[data-coolbm=\'1\'');for($i=0;$i<elements.length;$i++){elements[$i].parentNode.removeChild(elements[$i])}document.getElementsByTagName('body')[0].style.marginTop='0'}for($i=0;$i<document.getElementsByClassName('showList').length;$i++){document.getElementsByClassName('showList')[$i].onclick=function(e){if(document.getElementById('coolBlockBody').className=='coolCollapse'){e.target.classList.add('coolActive');$all_children=document.getElementById('coolBodyInner').children;for($j=0;$j<$all_children.length;$j++){$all_children[$j].classList.add('coolCollapse')}$current_target_id=e.target.getAttribute('data-target');document.getElementById($current_target_id).classList.remove('coolCollapse');document.getElementById('coolBlockBody').classList.remove('coolCollapse');if($jQ){(function($){$('html, body').animate({scrollTop:0},'fast')})(jQuery)}else{window.scrollTo(0,0)}}else{document.getElementById('coolBlockBody').classList.add('coolCollapse');for($j=0;$j<document.getElementsByClassName('showList').length;$j++){document.getElementsByClassName('showList')[$j].classList.remove('coolActive')}}}}if($jQ){(function($){$('#coolBlockHead .showList').click(function(){});$('title').bind('DOMSubtreeModified',function(){coolClose()})})(jQuery)}function addMmyCss(){var $addCSS='';$addCSS+='.coolRelative{position: relative !important;}';$addCSS+='#coolBlockHead {position:fixed;width:100%;max-height:50%;top:0;left:0;line-height:1.3em; text-align:left;z-index:2147483649;color:#000;font-family:arial;overflow-y:auto;background:#f8f8f8;}';$addCSS+='.coolHeadInner{padding:4px 10px 0;border-bottom:1px solid #9D9DA1;}';$addCSS+='.coolHeadInner SPAN {float:none; position: relative;background-color:inherit;color:#000 !important;font-size: 14px;}';$addCSS+='.coolButtons {padding-top:5px;text-align:center;clear:both;}';$addCSS+='.coolBtn:first-child  {border-top-left-radius: 3px}';$addCSS+='.coolBtn:last-child  {border-top-right-radius: 3px}';$addCSS+='.coolBtn {padding:0 3px;border:1px solid #9D9DA1;border-bottom:none;font-weight:400;cursor: pointer;}';$addCSS+='.coolShowEx{border-radius:4px 0 0;}';$addCSS+='.coolShowIn{border-radius:0 4px 0 0;}';$addCSS+='.coolActive{background:#fff;border-color:#444;}';$addCSS+='#coolBlockBody{position:absolute;top:0;width:100%;left:0;z-index:999997;}';$addCSS+='#coolBodyInner, #coolBodyInner * {background:#fff !important;color:#000 !important;}';$addCSS+='#coolBodyInner{position:absolute;top:-1px;width:70%;left:15%;padding-top:2px;font-size:14px; z-index:999998;box-shadow:0 3px 10px #000;color:#000;}';$addCSS+='#coolBodyInner OL {padding: 10px 40px;}';$addCSS+='#coolBlockHead, .coolHeadInner, .coolHeadlines, .coolButtons, .coolTdUrl {font-size:14px !important;color: #000 !important;}';$addCSS+='#coolclose {float:right;cursor:pointer;color:#000;font-size: 24px;line-height: 0;padding: 8px 0 0;}';$addCSS+='.coolGray{background:#f0f0f0;box-shadow:0 -3px 5px #fff inset;}';$addCSS+='.coolGray .coolHeadInner {padding-left:140px;}';$addCSS+='.coolLine{margin: 0 10px 0 0;}';$addCSS+='.coolCollapse{display:none;}';$addCSS+='.coolHidAlert {background: #F6CECE !important;}';$addCSS+='.coolHs {max-height: 40px; overflow:hidden;}';$addCSS+='.coolHs A {font-size: 13px; border-bottom: 1px solid #F9939A !important;}';$addCSS+='.coolHs IMG {max-height: 50px;max-width: 100px; border: 1px solid #F9939A !important;}';$addCSS+='.coolHs * {width: auto !important;display:inline !important;max-height: 35px; color:#000}';$addCSS+='#coolBodyInner TABLE{margin: 3px;border-collapse:collapse;border-spacing: 0;}';$addCSS+='#coolBodyInner IMG, #coolBodyInner svg {max-height: 50px;max-width: 100px; overflow:hidden;}';$addCSS+='#coolBodyInner TD{max-width: 50%; border: 1px solid #aaa; padding: 2px;color:#000}';$addCSS+='#coolBodyInner TD DIV, #coolBodyInner TD SPAN {position: relative !important;height: auto !important;line-height: normal;text-align:left;}';$addCSS+='.coolTdUrl {max-width: 50vw;overflow: hidden;white-space: nowrap;display: block;}';$addCSS+='.coolHeadlines {display: block;max-height: 86px; overflow: auto;} .coolHeadlines:hover{max-height:auto;}';$addCSS+='#coolBlockHead b {color:#000}';$addCSS+='.coolNumber {padding:3px;margin: 0 0 0 -45px;float:left;color:#777;}';$addCSS+='.cool%D0%A1prt {float:right; color:#999 !important;font-size:10px;}';$addCSS+='.coolDate {float:right;color: #777;font-size: 12px;margin-top: -1em;}';$addCSS+='.coolleft {float:left;width: 100%;margin-left:-70px;padding-left:70px;box-sizing: border-box}';$addCSS+='.coolright {float:right;width: 70px}';$addCSS+='.coolright A {padding: 2px;line-height: 21px;}';$addCSS+='#coolImg IMG {margin: 1px; max-height: 200px;max-width: 200px; outline: 1px dotted #999; background: repeating-linear-gradient(135deg, #e8e8e8, #fff 7px)}';$addCSS+='.coolGreenBg {background-color:#e6ffe6 !important;}';$addCSS+='.coolSqi {width: 75px;left: -103px;position: absolute;top: 1.5em; clip: rect(0, auto, auto, 25px);}';$addCSS+='.red {background: #F08080 !important}';$addCSS+='.coolnoindex {background: #DAA520 !important;}';$addCSS+='.coolnoindex * {background: #DAA520 !important;}';$stl=document.createElement('style');$stl.setAttribute('type','text/css');$stl.setAttribute('data-coolbm','1');$stl.setAttribute('id','coolStyle');$stl.innerHTML=$addCSS;document.getElementsByTagName('body')[0].appendChild($stl)}function get_hostname(url){var m=url.match(/^(http|https):\/\/[^/]+/);return m?m[0]+'/':null}function $_GET(key){var s=window.location.search;s=s.match(new RegExp(key+'=([^&=]+)'));return s?s[1]:false}function getHashGoogle(key){var s=window.location.hash;s=s.match(new RegExp(key+'=([^&=]+)'));return s?s[1]:false}function countWords(a){var count=0;a=a.split('-').join('').split('%E2%80%94').join('').split('|').join('');a=a.replace(/^\s\s*/,'').replace(/\s\s*$/,'').replace(/\s+/g,' ');if(a=='')return 0;pos=a.indexOf(' ',0);while(pos!=-1){count++;pos=a.indexOf(' ',pos+1)}return count+1}function isHidden(el){var width=el.offsetWidth,height=el.offsetHeight,tr=el.nodeName.toLowerCase()==='tr';return width===0&&height===0&&!tr?true:width>0&&height>0&&!tr?false:getRealDisplay(el)}function getRealDisplay(elem){if(elem.currentStyle){return elem.currentStyle.display}else if(window.getComputedStyle){var computedStyle=window.getComputedStyle(elem,null);return computedStyle.getPropertyValue('display')}}function EscapeHtml(html){if(html){return html.split('&').join('&amp;').split('<').join('&lt;').split('>').join('&gt;')}return''}function escapeBR(html){return html.split('<br>').join('<b class=\'red\'>&lt;BR&gt;</b>').split('<br />').join('<b class=\'red\'>&lt;BR&gt;</b>')}function getHttpRequest(){var $r=new XMLHttpRequest();var $out=[];$r.open('HEAD',window.location,false);$r.send();$out['status']=$r.status;$out['robots']=($r.getResponseHeader('X-Robots-Tag')!==null)?$r.getResponseHeader('X-Robots-Tag'):'';$out['content-type']=$r.getResponseHeader('Content-Type');return $out}function alertObj(obj){var str='';for(k in obj){str+=k+': '+obj[k]+'\r\n'}alert(str)}})();



Ответить

Вернуться в «Дополнения, Приложения, Расширения и др. тех. вопросы»

Зарегистрируйтесь или войдите в свой аккаунт чтобы иметь доступ к настройкам.