Skip to content

Instantly share code, notes, and snippets.

View bKNN's full-sized avatar
:atom:
<3

Pierrick bKNN

:atom:
<3
View GitHub Profile
@bKNN
bKNN / Responsinator.js
Last active November 12, 2018 10:31
BOOKMARKLET - test responsive websites on different device resolutions.
javascript:(function(w){var Y=w.open("https://www.responsinator.com/?scroll=ext&url="+document.location.href);Y.focus()})(window);
@bKNN
bKNN / Heading-verificator.js
Last active November 12, 2018 10:32
BOOKMARKLET - Show H1, H2, H3... instantly on the page
javascript:void((function(){var a,b,c,d,e,f;f=new Array('pink','orange','yellow','aquamarine','lightskyblue','plum');for(a=1;a<=6;a++){b=document.getElementsByTagName('h'+a);for(c=0;c<b.length;c++){d=b[c];e=d.style;e.backgroundColor=f[a-1];e.border='solid';e.padding='2px';e.color='black';d.innerHTML='H'+a+' - '+d.innerHTML;}}})())
@bKNN
bKNN / Cmd-Link.js
Last active November 12, 2018 10:32
BOOKMARKLET - CMD Google link:
@bKNN
bKNN / Webarchive.js
Last active November 12, 2018 10:33
BOOKMARKLET - Open the website on Webarchive
javascript:location.href='http://web.archive.org/web/*/'+window.location.href;
@bKNN
bKNN / BackTweet.js
Last active November 12, 2018 10:33
BOOKMARKLET - Twitter history of the URL
javascript:location.href='http://backtweets.com/search?q='+window.location.href;
@bKNN
bKNN / Robots-txt.js
Last active November 12, 2018 10:33
BOOKMARKLET - Find robots.txt of the website
javascript:void(location.href='http://' + location.host + '/robots.txt')
@bKNN
bKNN / MajesticSEO-Domain.js
Last active November 12, 2018 10:33
BOOKMARKLET - MajecticSEO Search
javascript:(function(){ window.open('http://www.majesticseo.com/reports/site-explorer?folder=&q='+encodeURIComponent(location.href))})();
@bKNN
bKNN / AHREF-Domain-Checker.js
Last active November 12, 2018 10:33
BOOKMARKLET - AHREF Domain Checker
javascript:(function(){ window.open('https://ahrefs.com/site-explorer/overview/subdomains/'+location.host)})();
@bKNN
bKNN / On-Site-SEO.js
Last active November 12, 2018 10:33
BOOKMARKLET - On Site SEO fast checker
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','025');b.appendChild(z);}}catch(e){alert('Please wait until the page has loaded.');}}run();void(0)
@bKNN
bKNN / Wordcount.js
Last active November 12, 2018 10:34
BOOKMARKLET - Wordcount
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('Chars: '+t.toString().length+'\nWords: '+t.toString().match(/(\S+)/g).length);})()