Índice
Navegando por Twitter nos hemos encontrado con esta maravilla de Bookmarklets SEO recopilada por Alfonso Ojeda (os recomendamos seguir su cuenta de twitter: @aro_mdz), y hemos querido añadir lo que ya conocíamos de SEMRush y CognitiveSEO.
Para lo que nos conocéis o no habéis trabajado con los Bookmarklets SEO, os vamos a explicar un poco qué son, para qué sirven y cómo podemos utilizarlos en nuestros navegadores. No son muy complicados de utilizar y nos pueden ayudar a nuestras Auditorías SEO o búsquedas.
¿Qué es un Bookmarklets?
Un Bookmarklet es algo similar a lo que conocemos como marcador o bookmark que añadimos sin parar a nuestra barra de marcadores de nuestro navegador web. Su principal diferencia es que en vez de apuntar hacia una página web, este tiene una función creada con Javascript que realiza alguna función específica.
Existen cientos de Bookmarklets con distintas funciones, incluso si tienes conocimientos de Javascript puedes crearte los tuyos propios. En este artículo vamos a enfocarnos los que nos vendrán bien para trabajar en nuestro Posicionamiento SEO.
¿Cómo se utilizan los Bookmarklets?
Es muy sencillo, y si tenemos el enlace o el código en Javascript, nos bastará con arrastar ese código a la barra de marcadores. Si os da problemas podéis seguir estos pasos:
Hacemos clic con el botón derecho en la barra de marcadores
Bookmarklets SEO
Vamos a poneros una lista muy extensa recopilados para que los tengáis a mano:
Revisar Canonical
javascript: (function () { var url = document.location; var links = document.getElementsByTagName('link'); var found = 'none'; for (var i = 0, l; l = links[i]; i++) { if (l.getAttribute('rel') == 'canonical') { found = l.getAttribute('href'); break; } } alert(found); })();
Revisar Meta Robots
javascript: (function () { var url = document.location; var links = document.getElementsByTagName('meta'); var found = 'none'; for (var i = 0, l; l = links[i]; i++) { if (l.getAttribute('name') == 'robots') { found = l.getAttribute('content'); break; } } alert(found); })();
Revisar Robots.txt
javascript:(function(){var body=document.getElementsByTagName('body')[0];var d = new Date();var s=document.createElement('script');s.src='http://www.jeffbail.com/robots-bookmarklet/robots.js?ts=' + d.getTime();body.appendChild(s)})();
Ver Meta Datos
javascript:(function(){var url = document.location; var meta = document.getElementsByTagName('meta'); var found = 'Not Found'; var title = document.title;var output = '';output = '\n\n#####%20Titulo%20de%20la%20pagina%20#####\n\n'+title+'\n\n\n####Meta%20Datos####\n\n';if(meta.length>0){%20}for%20(i=0;%20i<meta%20.length;%20i++)%20{if(meta[i].getAttribute('name')!=null){output%20+=%20'\''+meta[i].getAttribute('name')+'\''+'\n'+meta[i].getAttribute('content')+'\n\n';}else%20if(meta[i].getAttribute('property')!=null){output%20+=%20'\''+meta[i].getAttribute('property')+'\''+'\n'+meta[i].getAttribute('content')+'\n\n';}}alert(output)})();
Análisis On-page
Este Bookmarklet es brutal, creado por Troy Meier, el cual nos permite ver el estado actual de la página en la que estamos y un listado de herramientas precargadas, que con un clic nos permite acceder a toda la información:
javascript:function run(){var d=document,da=new Date(),b=d.body,p=('https:' == document.location.protocol ? 'https://' : 'http://'),ex=d.getElementById('twkmSEOScript');try{if(!b)throw(0);if(!ex){z=d.createElement('scr'+'ipt');z.setAttribute('src',p+'twkm.ca/min/f=gadgets/resources/seo-bookmarklet/seo-stable.js?ts='+da.getTime());z.setAttribute('id','twkmSEOScript');z.setAttribute('class','03');b.appendChild(z);}else{twkm_closeThisBox();}}catch(e){alert('Espera hasta que la pagina haya cargado.');}}run();void(0)
Testear una web con GTMetrix
javascript:(function(d){var%20f=d.createElement('form');f.action='http://gtmetrix.com/analyze.html?bm';f.method='post';f.target='_blank';var%20i=d.createElement('input');i.type='hidden';i.name='url';i.value=document.location.href;f.appendChild(i);d.body.appendChild(f);f.submit();})(document);
Testear una web con PageSpeed
javascript:window.open('https://developers.google.com/speed/pagespeed/insights/?url='+encodeURIComponent(location.href))
Ver Caché de Texto
javascript:window.open('http://www.google.com/search?q=cache:'+window.location.href+'&strip=1');
Búsqueda Site
javascript:q=""+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);if(!q)q=prompt("Ingresa tu busqueda %5BDeja en blanco para enlistar todas las paginas%5D ...").replace(/%5Cs%5C+/g,"%252B");if(q!=null)window.open("http://www.google.com/search?q="+q.replace(/%5Cs+/g,"+")+"+site:"+location.hostname);void(0);
Herramienta de Datos Estructurados
javascript:void(window.open(%27https://developers.google.com/webmasters/structured-data/testing-tool/?url=%27+window.location.href,%27_blank%27));
Google SERP Scraper
javascript:(function()%7Bfunction%20getParameterByName(e%2Ct)%7Be%3De.replace(%2F%5B%5C%5B%5D%2F%2C%22%5C%5C%5B%22).replace(%2F%5B%5C%5D%5D%2F%2C%22%5C%5C%5D%22)%3Bvar%20n%3Dnew%20RegExp(%22%5B%5C%5C%3F%26%5D%22%2Be%2B%22%3D(%5B%5E%26%23%5D*)%22)%2Cr%3Dn.exec(t%3D%3Dtrue%3Flocation.hash.replace(%22%23%22%2C%22%3F%22)%3Alocation.search)%3Bif(r%3D%3Dnull%26%26t%3D%3Dfalse)%7Breturn%20getParameterByName(e%2Ctrue)%7Delse%7Breturn%20r%3D%3Dnull%3F%22%22%3AdecodeURIComponent(r%5B1%5D.replace(%2F%5C%2B%2Fg%2C%22%20%22))%7D%7Dstr%3D%22%3Cstyle%20type%3D%27text%2Fcss%27%3Ebody%7Bcolor%3A%23000%3Bbackground-color%3A%23fff%3Bmargin%3A0%3Bpadding%3A0%3Bfont-family%3Aarial%2Chelvetica%2Csans-serif%3Bfont-size%3A82%25%7D*%7Bfont-weight%3A400%3Bcolor%3A%23000%7Dh3%2Ch4%2Ch5%2Ch6%7Bmargin%3A0%200%2015px%3Bpadding%3A0%7D%23rt%7Bfont-size%3A12px%3Bwidth%3A500px%7Dtable%2Ctd%2Cth%2Ctr%7Bfont-size%3A1em%3Boverflow%3Ahidden%3Btext-overflow%3Aellipsis%3Bword-wrap%3Abreak-word%7Dtextarea%7Bwidth%3A100%25%7Dth%7Bbackground-color%3A%23eee%3Bcolor%3A%23000%3Bfont-weight%3A700%7Dtd%20a%7Bwidth%3A446px%3Bdisplay%3Ablock%7D.id%7Bbackground%3A%23eee%3Bcolor%3A%23000%3Btext-align%3Acenter%7D.g%7Bfont-family%3Aarial%2Csans-serif%3Bcolor%3A%23000%3Bmargin%3A1em%200%3Bfont-size%3A122%25%7D.g%20h2%7Bfont-family%3Aarial%2Csans-serif%3Bmargin%3A0%7D.r%7Bdisplay%3Ainline%3Bfont-weight%3A400%3Bmargin%3A10%7D.j%7Bwidth%3A34em%7D.std%7Bfont-size%3A82%25%7D.a%7Bcolor%3Agreen%7D.fl%7Bcolor%3A%2377c%7D.bl%7Bdisplay%3Ainline%7Da%7Bcolor%3A%2300c%7Da%3Avisited%7Bcolor%3A%23551a8b%7Da%3Aactive%7Bcolor%3Ared%7D.twitter-share-button%7Bmargin-bottom%3A-5px%7Dp.b%7Bline-height%3A22px%3Btext-align%3Acenter%7D%3C%2Fstyle%3E%5Cn%22%3Banchors%3Ddocument.getElementsByTagName(%22a%22)%3Bvar%20all%3D%5B%5D%3Bvar%20keyword%3DgetParameterByName(%22q%22%2Cfalse)%3Bstr%2B%3D%22%3Ctitle%3EGoogle%20SERP%20Scraper%20Bookmarklet%3C%2Ftitle%3E%22%3Bstr%2B%3D%22%3Cdiv%20style%3D%27width%3A%20900px%3B%20margin%3A%200%20auto%3B%27%3E%22%3Bstr%2B%3D%22%3Ch1%20style%3D%27margin%3A%201em%200em%200em%200em%3B%20text-align%3A%20center%3B%27%3EGoogle%20SERP%20Scraper%20Bookmarklet%3C%2Fh1%3E%22%3Bstr%2B%3D%22%3Ch2%20style%3D%27text-align%3A%20center%3B%27%3EKeyword%20-%20%22%2Bkeyword%2B%22%3C%2Fh2%3E%22%3Bstr%2B%3D%22%3Ctable%20width%3D%27100%25%27%3E%22%3Bstr%2B%3D%22%3Ctr%3E%3Cth%20width%3D%275%25%27%3EResult%3C%2Fth%3E%3Cth%20width%3D%2750%25%27%3ELink%3C%2Fth%3E%3Cth%20width%3D%2745%25%27%3EAnchor%20Text%3C%2Fth%3E%3C%2Ftr%3E%5Cn%22%3Bvar%20tweetText%3D%27%3Cp%20class%3D%22b%22%3EIf%20you%20use%20and%20like%20this%2C%20please%20%3Ca%20href%3D%22https%3A%2F%2Ftwitter.com%2Fshare%22%20class%3D%22twitter-share-button%22%20data-count%3D%22none%22%20data-lang%3D%22en%22%20data-url%3D%22http%3A%2F%2Fcognitiveseo.com%2Fblog%2F5714%2F69-amazing-seo-bookmarklets-to-supercharge-your-internet-marketing%2F%22%20data-text%3D%22%2F*Google%20SERP%20Scraper*%2F%20Bookmarklet%20%2B%2068%20Other%20Uber%20Amazing%20Bookmarklets%22%3ETweet%3C%2Fa%3E%20about%20it%20and%20help%20us%20spread%20the%20word.%3Cbr%20%2F%3E%20Happy%20SCRAPing%20and%20thanks%20for%20sharing!%3Cbr%20%2F%3E%20Coded%20by%20%3Ca%20href%3D%22http%3A%2F%2Fcognitiveseo.com%2F%22%20target%3D%22_blank%22%3EcognitiveSEO%3C%2Fa%3E.%3C%2Fp%3E%27%3Bvar%20tweetScript%3D%27%3Cscript%3E!function(d%2Cs%2Cid)%7Bvar%20js%2Cfjs%3Dd.getElementsByTagName(s)%5B0%5D%3Bif(!d.getElementById(id))%7Bjs%3Dd.createElement(s)%3Bjs.id%3Did%3Bjs.src%3D%22https%3A%2F%2Fplatform.twitter.com%2Fwidgets.js%22%3Bfjs.parentNode.insertBefore(js%2Cfjs)%3B%7D%7D(document%2C%22script%22%2C%22twitter-wjs%22)%3B%3C%2Fscript%3E%27%3Bvar%20k%3D0%3Bvar%20listing%3D%22%22%3Bvar%20links%3D%22%22%3Bvar%20anchorTexts%3D%22%22%3Bvar%20linksAnchors%3D%22%22%3Bfor(i%3D0%3Bi%3Canchors.length%3Bi%2B%2B)%7Bvar%20anchorText%3Danchors%5Bi%5D.textContent%3Bvar%20anchorLink%3Danchors%5Bi%5D.href%3Bvar%20linkAnchor%3D%22%22%3Bif(anchorLink.match(%2F%5E((%3F!google%5C.%7Ccache%7C%5C.yahoo%5C.%7Cyoutube%5C.com%5C%2Fresults%7Cjavascript%3A%7B%7D%7Cjavascript%3Avoid%7Cjavascript%3A%5C%3B%7Capi%5C.technorati%5C.com%7Cbotw%5C.org%5C%2Fsearch%7Cdel%5C.icio%5C.us%5C%2Furl%5C%2Fcheck%7Cdigg%5C.com%5C%2Fsearch%7Csearch%5C.twitter%5C.com%5C%2Fsearch%7Csearch%5C.yahoo%5C.com%5C%2Fsearch%7Csiteanalytics%5C.compete%5C.com%7Ctools%5C.seobook%5C.com%5C%2Fgeneral%5C%2Fkeyword%5C%2Fsuggestions%7Cweb%5C.archive%5C.org%5C%2Fweb%5C%2F%7Cwhois%5C.domaintools%5C.com%7Cwww%5C.alexa%5C.com%5C%2Fdata%5C%2Fdetails%5C%2Fmain%7Cwww%5C.bloglines%5C.com%5C%2Fsearch%7Cwww%5C.majesticseo%5C.com%5C%2Fsearch%5C.php%7Cwww%5C.semrush%5C.com%5C%2Finfo%5C%2F%7Cwww%5C.semrush%5C.com%5C%2Fsearch%5C.php%7Cwww%5C.stumbleupon%5C.com%5C%2Furl%7Cwikipedia.org%5C%2Fwiki%5C%2FSpecial%3ASearch).)*%24%2Fi)%26%26anchorLink!%3D%22%22%26%26all.indexOf(anchorLink)%3D%3D-1%26%26anchorText!%3D%22%22%26%26anchors%5Bi%5D.className!%3D%22gb_b%22)%7Ball.push(anchorLink)%3Blisting%2B%3DanchorLink%2B%22%5Cn%22%3BanchorTexts%2B%3DanchorText%2B%22%5Cn%22%3BlinkAnchor%3DanchorLink.replace(%22%2C%22%2C%22%252C%22)%2B%22%2C%09%22%2BanchorText.replace(%22%2C%22%2C%22%22)%3BlinksAnchors%2B%3DlinkAnchor%2B%22%5Cn%22%3Bk%3Dk%2B1%3Bif(anchorText%3D%3D%3Dundefined)anchorText%3Danchors%5Bi%5D.innerText%3Bstr%2B%3D%22%3Ctr%3E%22%3Bstr%2B%3D%22%3Ctd%20class%3D%27id%27%3E%22%2Bk%2B%22%3C%2Ftd%3E%22%3Bstr%2B%3D%22%3Ctd%3E%3Ca%20href%3D%22%2Banchors%5Bi%5D.href%2B%22%20target%3D%27_blank%27%3E%22%2Banchors%5Bi%5D.href%2B%22%3C%2Fa%3E%3C%2Ftd%3E%22%3Bstr%2B%3D%22%3Ctd%3E%22%2BanchorText%2B%22%3C%2Ftd%3E%22%3Bstr%2B%3D%22%3C%2Ftr%3E%5Cn%22%7D%7Dstr%2B%3D%22%3C%2Ftable%3E%3Cbr%2F%3E%3Cbr%2F%3E%3Ctable%20width%3D%27100%25%27%3E%3Ctr%3E%3Ctd%20width%3D%2755%25%27%3E%3Ch2%3ELinks%3C%2Fh2%3E%3Ctextarea%20rows%3D10%20style%3D%27width%3A97%25%27%20readonly%3E%22%3Bstr%2B%3Dlisting%3Bstr%2B%3D%22%3C%2Ftextarea%3E%3C%2Ftd%3E%3Ctd%20width%3D%2745%25%27%3E%3Ch2%3EAnchors%3C%2Fh2%3E%3Ctextarea%20rows%3D10%20readonly%3E%22%3Bstr%2B%3DanchorTexts%3Bstr%2B%3D%22%3C%2Ftextarea%3E%3C%2Ftd%3E%3C%2Ftr%3E%3C%2Ftable%3E%3Cbr%2F%3E%3Cbr%2F%3E%3Ch2%3EAll%20Data%20-%20CSV%3C%2Fh2%3E%3Ctextarea%20rows%3D10%20readonly%3E%22%3Bstr%2B%3D%22Links%2C%20Anchors%5Cn%22%3Bstr%2B%3DlinksAnchors%3Bstr%2B%3D%22%3C%2Ftextarea%3E%3Cbr%20%2F%3E%20%3Cbr%20%2F%3E%22%3Bstr%2B%3DtweetText%3Bstr%2B%3DtweetScript%3Bstr%2B%3D%22%3Cbr%20%2F%3E%3C%2Fdiv%3E%20%3Cbr%20%2F%3E%22%3Bwith(window.open())%7Bdocument.write(str)%3Bdocument.close()%7D%7D)()
Este nos flipa. Si ya habéis visto nuestro artículo y vídeo de cómo Scrapear preguntas de Google y os ha gustado, este os gustará mucho.
Análisis de Enlaces – Open Site Explorer (MOZ) – URL
javascript:window.open('https://moz.com/researchtools/ose/links?site='+location.href)
Análisis de Enlaces – Open Site Explorer (MOZ) – Dominio
javascript:window.open('https://moz.com/researchtools/ose/links?site='+location.host)
Enlaces Externos de la URL actual
javascript:(function(){var url = document.location; var links = document.links;var output = '';var isExternal = function(url) {var domain = function(url) {return url.replace('http://','').replace('https://','').split('/')[0];};return domain(location.href) !== domain(url);};output = '\n\n##### External Links #####\n\n';for (i=0; i<links.length; i++) {var link = new String(links[i]);if(links[i].hostname != window.location.hostname){var pat = /^https?:\/\//i;if(pat.test(links[i])){output += links[i].href+'\n'}}} alert(output);})();
AHrefs – URL
javascript:window.open('https://ahrefs.com/site-explorer/overview/v2/subdomains/live?target='+location.href)
AHrefs – Dominio
javascript:window.open('https://ahrefs.com/site-explorer/overview/v2/subdomains/live?target='+location.host)
Majestic – URL
javascript:(function(){ var url=location.href; var url=url.replace(/^(http|https):\/\//i,''); var url=url.replace(/\/$/i,''); window.open('https://majestic.com/reports/site-explorer?folder=&q='+encodeURIComponent(url)+'&oq='+encodeURIComponent(url)+'&IndexDataSource=F')})();
Majestic – Dominio
javascript:(function(){ var url=location.host; var url=url.replace(/^(http|https):\/\//i,''); var url=url.replace(/\/$/i,''); window.open('https://majestic.com/reports/site-explorer?folder=&q='+encodeURIComponent(url)+'&oq='+encodeURIComponent(url)+'&IndexDataSource=F')})();
Cognitive SEO – Dominio
javascript:window.open('http://explorer.cognitiveseo.com/?u=%27+%20encodeURIComponent(location.host)+%27&m=*U*')
OpenLinkProfiler – Dominio
javascript:window.open('http://www.openlinkprofiler.org/r/'+location.href.replace('http://','').replace('https://','').split(/[/?#]/)[0])
Análisis de Tráfico – Similar Web
javascript:(function(){window.open('http://www.similarweb.com/website/%27+window.location.host);})();
Análisis de Tráfico – SEMrush
javascript:(function(){ window.open('https://www.semrush.com/info/'+location.hostname)})();
Contador Shares Sociales
javascript:window.open('http://sharedcount.com/#url='+escape(location.href))
Contar Palabras
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('Por favor seleccoina un texto');else alert('Caracteres: '+t.toString().length+'\nPalabras: '+t.toString().match(/(\S+)/g).length);})()
Wayback Machine
javascript:window.open('http://web.archive.org/web/*/'+document.location.href);
Archive.Org
javascript:location.href='http://web.archive.org/web/*/'+document.location.href;
Copyscape
javascript:(function(){ window.open('http://www.copyscape.com/?q=' + escape(window.location)); })();
WhoIs
javascript:(function(){ window.open('http://whois.sc/' + escape(window.location)); })();
¡Todo en Uno!
javascript:(function(){var%20domain=encodeURIComponent(window.location.hostname);var%20urlB=encodeURIComponent(window.location.href);window.open(%27https://www.semrush.com/info/%27+domain);window.open(%27https://www.similarweb.com/website/%27+domain);window.open(%27https://majestic.com/reports/site-explorer?folder=&q=%27+domain+%27&IndexDataSource=F%27);window.open(%27https://ahrefs.com/site-explorer/overview/v2/subdomains/live?target=%27+domain);window.open(%27https://moz.com/researchtools/ose/links?site=%27+domain);window.open(%27http://explorer.cognitiveseo.com/?u=%27+domain+%27&m=*U*%27);var%20f=document.createElement(%27form%27);f.target=%27_blank%27;f.action=%27http://gtmetrix.com/analyze.html?bm%27;f.method=%27post%27;var%20i=document.createElement(%27input%27);i.type=%27hidden%27;i.name=%27url%27;i.value=window.location.href;f.appendChild(i);document.body.appendChild(f);f.submit();window.open(%27https://developers.google.com/speed/pagespeed/insights/?url=%27+urlB);window.open(%27https://developers.google.com/webmasters/structured-data/testing-tool/?url=%27+urlB);window.open(%27https://www.google.com/webmasters/tools/mobile-friendly/?url=%27+urlB);%20})();
Extraer los 100 primeros resultados de Google para una query
javascript:var a = document.getElementsByTagName('a'), arr = '';for(var i=0; i<a.length; i++) if (a[i].ping && !a[i].href.includes('google'))arr +=('<p>' + a[i].href + '</p>');var newWindow = window.open();newWindow.document.write(arr);newWindow.document.close();
Desactivar el bloqueo del botón derecho
javascript:void(document.onmousedown=null);void(document.onclick=null);void(document.oncontextmenu=null)
Buscar fragmento de texto seleccionado
javascript:q = %22%22 + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt(%22Search words%22, %22%22); if (q!=null) location=%22http://www.google.com/search?q=%22 + escape(q).replace(/ /g, %22+%22); void 0
Extractor de entidades en Google Images
javascript:(function(){output="<html><head><title>Google Images Entity Extractor</title></head><body>";var imageEntity = document.getElementsByClassName("dtviD");for(var i = 0; i < imageEntity.length; i++){var entity = imageEntity[i].innerText;output+=entity+"<br />";};with(window.open()){document.write(output);document.close();}})();
Saber el CMS de una Web
javascript:(function(){window.open('https://builtwith.com/'+location.hostname.replace('www.',''), '_newtab');}());
Cambiar anchors por la URL
javascript:(function(){var i,c,x,h; for(i=0;x=document.links[i];++i) { h=x.getAttribute("href"); x.title+=" " + x.innerHTML; while(c=x.firstChild)x.removeChild(c); x.appendChild(document.createTextNode(h)); } })()