-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbytes.js
1 lines (1 loc) · 1018 Bytes
/
bytes.js
1
javascript:void%20function(){WebFontConfig={google:{families:[%22Quicksand::latin%22]}};var%20e=document.createElement(%22script%22);e.src=%22https://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js%22,e.type=%22text/javascript%22,e.async=%22true%22;var%20t=document.getElementsByTagName(%22script%22)[0];t.parentNode.insertBefore(e,t);var%20n=document.createElement(%22div%22),a=document.createElement(%22textarea%22);a.id=%22output%22,n.style.right=%225%25%22,n.style.top=%225%25%22,n.style.zIndex=%2210000%22,n.style.position=%22fixed%22,n.style.fontFamily=%22Quicksand%22,n.style.fontWeight=%22bolder%22,n.style.background=%22black%22,n.style.color=%22white%22,n.style.padding=%2230px%22,n.appendChild(a);var%20o=document.createElement(%22p%22);o.innerHTML='%3Cspan%20id=%22count%22%3E%3Cem%3E0%3C/em%3E%3C/span%3E%20Bytes',n.appendChild(o),document.body.appendChild(n),a.addEventListener(%22keyup%22,function(){var%20e=a.value,t=e.split(%22%22),n=t.length;document.getElementById(%22count%22).innerHTML=n})}();