JS букмарклеты для SEO-специалиста
Cherepynets Illia
24 апреля, 2019     4 737     0

JS букмарклеты для SEO-специалиста


Букмарклет(bookmarklet) — это javascript-код, который сохраняется как закладка в браузере. Он работает за счет использования протокола ahref=javascript

В свое время увидел видео на канале SEO-шмео про букмарклеты (js скрипты в закладках браузера), мне понравился данный метод оптимизации рабочего времени. После этого сделал небольшую подборку своих SEO букмарклетов, которыми пользуюсь и по сей день.

Как сохранить букмарклет

  • Сохраняем или создаем новую закладку.
  • В поле «url» добавляем код скопированный ниже.
  • В поле «Название» пишем произвольное название нашей закладки.
  • Сохраняем.

Как применить букмарклет

  • Заходим на любую страницу сайта.
  • Нажимаем на букмарклет в наших закладках.
  • Радуемся 😊
  • Аналогично все букмарклеты можно применять через Console нашего браузера

Шутка дня: Напиши две строчки кода, почувствуй себя программистом 🤦‍♀️

Моя подборка JS букмарклетов

Ответ от сервера

Проверка ответа от сервера станицы на которой вы находитесь.

1
javascript:(function(){window.open('https://httpstatus.io/?url='+encodeURIComponent(location.href))})();
1
javascript:(function() {var validator='http://www.bertal.ru/index.php?a',randKey=Math.floor(Math.random()*(-2e5+1))+21e5;validator=validator+randKey+'/',uri=window.location.href,window.open(validator+uri+'#h');})();

PageSpeed Insights

Узнайть, как ускорить загрузку своего сайта на любых устройствах.

1
javascript:(function(){window.open('https://developers.google.com/speed/pagespeed/insights/?url='+encodeURIComponent(location.href))})();

Mobile check

Оптимизирована ли ваша страница для мобильных устройств?

1
javascript:(function(){window.open('https://search.google.com/test/mobile-friendly?utm_source=gws&utm_medium=onebox&utm_campaign=suit&url='+encodeURIComponent(location.href))})();

Инструмент проверки структурированных данных

1
javascript:(function(){window.open('https://search.google.com/structured-data/testing-tool?hl=ru#url='+encodeURIComponent(location.href))})();

Проверка AMP

Есть ли ошибки на вашей AMP-странице?

1
javascript:(function(){window.open('https://search.google.com/test/amp?hl=ru&url='+encodeURIComponent(location.href))})();

Noindex&Nofollow

Проверка страницы на Noindex&Nofollow

1
javascript:(function(){var s=document.createElement('script');s.type='text/javascript';s.src='https://php.in.ua/robots.js';s.setAttribute('charset','utf-8');document.getElementsByTagName('body')[0].appendChild(s)})();void(0);

site:

1
javascript:void((function(){window.open('https://www.google.com.ua/search?hl=ru&nfpr=1&num=10&q='+'site:'+window.location.href+'%'+'26','_blank')})());

inurl:

1
javascript:void((function(){window.open('https://www.google.com.ua/search?hl=ru&nfpr=1&num=10&q='+'inurl:'+window.location.href,'_blank')})());

cache:

1
javascript:void((function(){var a=location.href.replace(/^http%5C:%5C/%5C/(.*)$/,"$1");location.href="http://webcache.googleusercontent.com/search?q=cache%3A"+escape(a);})())

Поиск PDF

Поиск PDF файлов на сайте.

1
javascript:(function(){ var url = document.location.hostname; var newwin = 'https://www.google.com.ua/search?hl=ru&ei=jmayWvPmMYPTkwWq2pyIBQ&q=filetype:pdf+site:' + url; window.open(newwin); })();

pr-cy

Проверка сайта в сервисе pr-cy

1
javascript:(function(){ var url = document.location.hostname; var newwin = 'https://a.pr-cy.ru/' + url; window.open(newwin); })();

Доступность сайта с разных серверов

1
javascript:(function(){ var url = document.location.hostname; var newwin = 'https://dnschecker.org/#SOA/' + url; window.open(newwin); })();

Статус сайта

С помощью Безопасного просмотра мы ежедневно проверяем миллиарды URL и находим тысячи вредоносных веб-ресурсов, многие из которых создавались отнюдь не злоумышленниками, но потом были взломаны. Для таких сайтов Google показывает предупреждения в результатах поиска или в браузере, чтобы защитить пользователей.

1
javascript:(function(){ var url = document.location.hostname; var newwin = 'https://transparencyreport.google.com/safe-browsing/search?url=' + url; window.open(newwin); })();

WebArchive

1
javascript:location.href='http://web.archive.org/web/*/'+window.location.href;

Serpstat

1
javascript:(function(){ var url = document.location.hostname; var newwin = 'https://serpstat.com/domains/?query=' + url; window.open(newwin); })();

SimilarWeb

1
javascript:(function(){ var url = document.location.hostname; var newwin = 'http://www.similarweb.com/website/' + url; window.open(newwin); })();

SpyMetrics

Аналог сервиса SimilarWeb.

1
javascript:(function(){ var url = document.location.hostname; var newwin = 'http://spymetrics.ru/ru/website/' + url; window.open(newwin); })();

Whois Reg.ru

1
javascript:(function(){window.open('https://www.reg.ru/whois/?dname='+location.host)})();

DMCA — Lumen

База данных Lumen собирает и анализирует юридические жалобы и запросы на удаление онлайн-материалов, помогая пользователям Интернета знать свои права и понимать закон.

1
javascript:(function(){ var url = document.location.hostname; var newwin = 'https://lumendatabase.org/notices/search?utf8=✓&term=' + url; window.open(newwin); })();

Yandex — Роскомнадзор

Проверка сайта в реестре запрещенных сайтов.

1
javascript:(function(){ var url = document.location.hostname; var newwin = 'https://reestr.rublacklist.net/search/?q=' + url; window.open(newwin); })();

Количество символов фрагмента

Подсчитывает колличество символов в выделенном фрагменте.

1
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('Символов: '+t.toString().length+'\nСимволов без пробелов: '+t.toString().replace(/\s+/g, '','').length+'\nСлов: '+t.toString().match(/(\S+)/g).length);})()

Нумерация позиций в google

Присваивает номер в поиске google.

1
javascript:var num=10,start=0,s_num=location.search.match(new RegExp("[\\?|&]num=([^&]*)"));null!==s_num?num=parseInt(s_num[1]):(s_num=document.cookie.match(new RegExp("NR=([^:]*)")),null!==s_num&&(num=parseInt(s_num[1])));var cur=document.getElementsByClassName("cur")[0];if("undefined"!=typeof cur)cur=parseInt(document.all?cur.innerText:cur.textContent),start=(cur-1)*num;else{var s_start=location.search.match(new RegExp("(\\?|&)start=([^&]*)"));null!==s_start&&(start=parseInt(s_start[1]))}[].forEach.call(document.getElementsByClassName("g"),function(t){if(-1==t.parentElement.className.search(/_xse/)&&-1==t.className.search(/tpo|_Nn|no-sep|mnr-c/)){var e=document.createElement("span");e.setAttribute("style","float:left;margin-left:-40px;line-height:21.6px"),e.innerHTML=start+1+".",t.insertBefore(e,t.firstChild),start++}})

Выгрузка ссылок с Google

1
javascript:var b=window.open("","w"+String(Math.random()).slice(-6));b.document.writeln("<pre>");[].forEach.call(document.querySelectorAll(".g:not(#imagebox_bigimages)"),function(a){(a=a.querySelector(".r > a"))&&(a.hasAttribute("data-href")?b.document.writeln(a.getAttribute("data-href")):a.hasAttribute("href")&&b.document.writeln(a.getAttribute("href")))});

Выгрузка ссылок с страницы

1
javascript:var b=location.host.toLowerCase().replace(/^www\./i,""),d={local:[],external:[]},e=window.open("","links_"+String(Math.random()).slice(-6));[].forEach.call(document.getElementsByTagName("a"),function(a){var c=a.host.toLowerCase().replace(/^www\./i,""),c=b==c?"local":"external";a=a.href;-1==d[c].indexOf(a)&&d[c].push(a)});e.document.writeln("<pre>");for(var f in d)e.document.writeln("<br><b>"+f+"</b>"),d[f].forEach(function(a){e.document.writeln(a)});

Какие технологии используются

1
javascript:(function(){ var url = document.location.hostname; var newwin = 'https://www.similartech.com/websites/' + url; window.open(newwin); })();

Копировать title в буфер обмена

1
javascript:(function(){var title=document.title;if(!title||title==''){alert('%D0%9F%D1%83%D1%81%D1%82%D0%BE%D0%B9 Title');return;}if(navigator.userAgent.toLowerCase().indexOf('firefox')+1){var block=document.createElement('div');var first=document.getElementsByTagName('body')[0].childNodes[0];block.style='position:fixed;z-index:999999999;width:auto;top:0px;height:auto;background:#f8f8f8;left:45%;border: 2px solid black;';block.className='pxtblock';block.innerHTML='<p style=\u0022color:#000;text-align:center;margin:10px;\u0022>%D0%A1%D0%BA%D0%BE%D0%BF%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D1%82%D1%8C Title %D0%B2 %D0%B1%D1%83%D1%84%D0%B5%D1%80 %D0%BE%D0%B1%D0%BC%D0%B5%D0%BD%D0%B0?</p><br><p style=\u0022text-align:center;margin:10px;\u0022><button onclick=\u0022javascript:(function(){var title = document.title; var ta = document.createElement(\'textarea\');var body = document.querySelector(\'body\');body.appendChild(ta); ta.innerHTML = title; ta.select(); document.execCommand(\'copy\');body.removeChild(ta); var pxtblock=document.querySelector(\'div.pxtblock\'); body.removeChild(pxtblock);})();\u0022>%D0%A1%D0%BA%D0%BE%D0%BF%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D1%82%D1%8C</button><button onclick=\u0022javascript:(function(){var pxtblock=document.querySelector(\'div.pxtblock\'); document.querySelector(\'body\').removeChild(pxtblock);})();\u0022>%D0%9E%D1%82%D0%BC%D0%B5%D0%BD%D0%B0</button></p>';document.getElementsByTagName('body')[0].insertBefore(block,first);return;}var ta=document.createElement('textarea');var body=document.querySelector('body');body.appendChild(ta);ta.innerHTML=title;ta.select();document.execCommand('copy');body.removeChild(ta);})();

Копировать description в буфер обмена

1
javascript:(function(){var description=document.querySelector('meta[name=description]');if(!description){alert('Description %D0%BE%D1%82%D1%81%D1%83%D1%82%D1%81%D1%82%D0%B2%D1%83%D0%B5%D1%82');return;}var dt=description.content;if(!dt||dt==''){alert('%D0%9F%D1%83%D1%81%D1%82%D0%BE%D0%B9 Description');return;}if(navigator.userAgent.toLowerCase().indexOf('firefox')+1){var block=document.createElement('div');var first=document.getElementsByTagName('body')[0].childNodes[0];block.style='position:fixed;z-index:999999999;width:auto;top:0px;height:auto;background:#f8f8f8;left:45%;border: 2px solid black;';block.className='pxtblock';block.innerHTML='<p style=\u0022color:#000;text-align:center;margin:10px;\u0022>%D0%A1%D0%BA%D0%BE%D0%BF%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D1%82%D1%8C Description %D0%B2 %D0%B1%D1%83%D1%84%D0%B5%D1%80 %D0%BE%D0%B1%D0%BC%D0%B5%D0%BD%D0%B0?</p><br><p style=\u0022text-align:center;margin:10px;\u0022><button onclick=\u0022javascript:(function(){var description = document.querySelector(\'meta[name=description]\').content; var ta = document.createElement(\'textarea\');var body = document.querySelector(\'body\');body.appendChild(ta); ta.innerHTML = description; ta.select(); document.execCommand(\'copy\');body.removeChild(ta); var pxtblock=document.querySelector(\'div.pxtblock\'); body.removeChild(pxtblock);})();\u0022>%D0%A1%D0%BA%D0%BE%D0%BF%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D1%82%D1%8C</button><button onclick=\u0022javascript:(function(){var pxtblock=document.querySelector(\'div.pxtblock\'); document.querySelector(\'body\').removeChild(pxtblock);})();\u0022>%D0%9E%D1%82%D0%BC%D0%B5%D0%BD%D0%B0</button></p>';document.getElementsByTagName('body')[0].insertBefore(block,first);return;}var ta=document.createElement('textarea');var body=document.querySelector('body');body.appendChild(ta);ta.innerHTML=dt;ta.select();document.execCommand('copy');body.removeChild(ta);})();

Оцените статью:

Оцениваю на 1Оцениваю на 2Оцениваю на 3Оцениваю на 4Оцениваю на 5 5,00 из 5 на основе 4 оценок
Загрузка...

РУБРИКИ

НОВОЕ

ТОП

SEO
Location: Roosevelt, NY


SEO Strategist
Location: Eden Prairie, MN


SEO Specialist
Location: Irvine, CA


SEO Analyst
Location: New York, NY


Senior SEO Analyst
Location: Rochester, MN