-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathWord cloud
1 lines (1 loc) · 2.34 KB
/
Word cloud
1
javascript:!function t(e,r,n)%7Bfunction i(a,c)%7Bif(!r%5Ba%5D)%7Bif(!e%5Ba%5D)%7Bvar d%3D"function"%3D%3Dtypeof require%26%26require%3Bif(!c%26%26d)return d(a,!0)%3Bif(o)return o(a,!0)%3Bvar l%3Dnew Error("Cannot find module %27"%2Ba%2B"%27")%3Bthrow l.code%3D"MODULE_NOT_FOUND",l%7Dvar f%3Dr%5Ba%5D%3D%7Bexports:%7B%7D%7D%3Be%5Ba%5D%5B0%5D.call(f.exports,(function(t)%7Breturn i(e%5Ba%5D%5B1%5D%5Bt%5D%7C%7Ct)%7D),f,f.exports,t,e,r,n)%7Dreturn r%5Ba%5D.exports%7Dfor(var o%3D"function"%3D%3Dtypeof require%26%26require,a%3D0%3Ba<n.length%3Ba%2B%2B)i(n%5Ba%5D)%3Breturn i%7D(%7B1:%5Bfunction(t,e,r)%7B"use strict"%3Be.exports%3D(%7Bbuild:t,append:e%7D,r%3D(()%3D>%7B%7D))%3D>%7Breturn n%3Dt%3D>%7Breturn i%3De%3D>n(r%3D>(e(r,r%3Dt(r)),r)),Object.assign(t,%7B...r(i),add:t%3D>i((r,n)%3D>e(n,t(r))),lift:t%3D>i((r,n)%3D>e(n,t(r)(r))),scope:e%3D>n(r%3D>t(e(r)))%7D)%3Bvar i%7D,new Proxy(n,%7Bget:(e,r)%3D>n(()%3D>t(r))%7D)%3Bvar n%7D%7D,%7B%7D%5D,2:%5Bfunction(t,e,r)%7Bconst n%3Dt("%40chaff/fui-core")%3Be.exports%3Dn(%7Bbuild:t%3D>document.createElement(t),append(t,e)%7Bt.appendChild(e)%7D%7D,t%3D>(%7Btext:e%3D>t((t,r)%3D>r.innerHTML%3De),attr:(e,r)%3D>t((t,n)%3D>n.setAttribute(e,r)),prop:(e,r)%3D>t((t,n)%3D>n%5Be%5D%3Dr)%7D))%7D,%7B"%40chaff/fui-core":1%7D%5D,3:%5Bfunction(t,e,r)%7Bconst%7Bdiv:n,h2:i,span:o%7D%3Dt("%40chaff/fui-html"),a%3Dn.attr("style","display: flex%3B align-items: center%3B justify-content: center%3B position: fixed%3B top: 0%3B left: 0%3B width: 100%25%3B height: 100%25%3B z-index: 999%3B background-color: rgba(0,0,0,0.5)%3B"),c%3Dn.attr("style","width: 480px%3B height: 520px%3B border-radius: 3px%3B background-color: white%3B overflow: scroll%3B padding: 20px%3B"),d%3Di.attr("style","margin-bottom: 8px%3B text-align: center%3B").text(document.title),l%3Dn.lift(t%3D>Object.entries(t).reduce((t,%5Be,r%5D)%3D>t.add(o.attr("style",%60margin: 0 3px%3B line-height: 40px%3B color: black%3B vertical-align: middle%3B font-size: %24%7Br%3D24-24/r%2B8%7Dpx%60).text(e)),n.attr("style","display: flex%3B flex-wrap: wrap%3B"))),f%3Da.add(c.add(d).add(l)),p%3Ddocument.body.innerText.replace(/%5Cs/g," ").replace(/%5B%5E%5Csa-zA-Z0-9%2B%5D/g,"").split(" ").filter(t%3D>t.length>%3D4).map(t%3D>t.toLowerCase()).sort(),u%3D%7B%7D%3Bfor(const t of p)u%5Bt%5D%3D1%2B(0%7Cu%5Bt%5D)%3Bdocument.body.appendChild(f(u))%7D,%7B"%40chaff/fui-html":2%7D%5D%7D,%7B%7D,%5B3%5D)%3B