Skip to content

Instantly share code, notes, and snippets.

@betabong
Created November 26, 2015 13:59
Show Gist options
  • Save betabong/27072401ba691074936a to your computer and use it in GitHub Desktop.
Save betabong/27072401ba691074936a to your computer and use it in GitHub Desktop.
<a href="javascript:(function () { !function%20a(b%2Cc%2Cd)%7Bfunction%20e(g%2Ch)%7Bif(!c%5Bg%5D)%7Bif(!b%5Bg%5D)%7Bvar%20i%3D%22function%22%3D%3Dtypeof%20require%26%26require%3Bif(!h%26%26i)return%20i(g%2C!0)%3Bif(f)return%20f(g%2C!0)%3Bvar%20j%3Dnew%20Error(%22Cannot%20find%20module%20&#39;%22%2Bg%2B%22&#39;%22)%3Bthrow%20j.code%3D%22MODULE_NOT_FOUND%22%2Cj%7Dvar%20k%3Dc%5Bg%5D%3D%7Bexports%3A%7B%7D%7D%3Bb%5Bg%5D%5B0%5D.call(k.exports%2Cfunction(a)%7Bvar%20c%3Db%5Bg%5D%5B1%5D%5Ba%5D%3Breturn%20e(c%3Fc%3Aa)%7D%2Ck%2Ck.exports%2Ca%2Cb%2Cc%2Cd)%7Dreturn%20c%5Bg%5D.exports%7Dfor(var%20f%3D%22function%22%3D%3Dtypeof%20require%26%26require%2Cg%3D0%3Bg%3Cd.length%3Bg%2B%2B)e(d%5Bg%5D)%3Breturn%20e%7D(%7B1%3A%5Bfunction(a%2Cb%2Cc)%7Bb.exports%3D%22body%20%7B%5Cn%09padding%3A%200%3B%5Cn%20%20%20%20margin%3A%200%3B%5Cn%20%20%20%20font%3A%20caption%3B%5Cn%20%20%20%20line-height%3A%201.6%3B%5Cn%20%20%20%20color%3A%20%23284900%3B%5Cn%7D%5Cn%5Cnul%20%7B%5Cn%20%20%20%20margin%3A%200%3B%5Cn%20%20%20%20margin-top%3A%203em%3B%5Cn%20%20%20%20padding%3A%200%3B%5Cn%7D%5Cn%5Cna%20%7B%5Cn%09color%3A%20%23284900%3B%5Cn%20%20%20%20text-decoration%3A%20none%3B%5Cn%7D%5Cna%20%3E%20.level%20%7B%5Cn%20%20%20%20display%3A%20inline-block%3B%5Cn%20%20%20%20background-color%3A%20%23284900%3B%5Cn%20%20%20%20color%3A%20white%3B%5Cn%20%20%20%20font-size%3A%2085%25%3B%5Cn%20%20%20%20font-weight%3A%20bold%3B%5Cn%20%20%20%20width%3A%202.7ex%3B%5Cn%20%20%20%20height%3A%202.7ex%3B%5Cn%20%20%20%20text-align%3A%20center%3B%5Cn%20%20%20%20%2F*%20border-radius%3A%202ex%3B%20*%2F%5Cn%20%20%20%20box-sizing%3A%20border-box%3B%5Cn%20%20%20%20top%3A%20-1px%3B%5Cn%20%20%20%20position%3A%20relative%3B%5Cn%20%20%20%20margin-right%3A%200.5ex%3B%5Cn%7D%5Cn%5Cna%3Ahover%20%7B%5Cn%20%20%20%20background-color%3A%20%23284900%3B%5Cn%20%20%20%20color%3A%20white%3B%5Cn%7D%5Cna%3Ahover%20%3E%20.level%20%7B%5Cn%20%20background-color%3A%20transparent%3B%5Cn%7D%5Cn%5Cn%5Cn.h5o-close%20%7B%5Cn%09position%3A%20absolute%3B%5Cn%09top%3A%2015px%3B%5Cn%09right%3A%2015px%3B%5Cn%09padding%3A%205px%2010px%3B%5Cn%20%20border-radius%3A%205px%3B%5Cn%09border%3A%201px%20%23284900%20solid%3B%5Cn%09color%3A%20inherit%3B%5Cn%09background-color%3A%20white%3B%5Cn%09cursor%3A%20pointer%3B%5Cn%7D%5Cn.h5o-close%3Ahover%20%7B%5Cn%09color%3A%20white%3B%5Cn%09background-color%3A%20%23284900%3B%5Cn%7D%5Cn%5Cn.h5o-container%20%7B%5Cn%09white-space%3A%20nowrap%3B%5Cn%09overflow-x%3A%20hidden%3B%5Cn%09text-overflow%3A%20ellipsis%3B%5Cn%09padding%3A%2015px%2060px%2015px%2015px%3B%5Cn%7D%5Cn%5Cn.h5o-container%20ol%20%7B%5Cn%09margin%3A%200%3B%5Cn%09padding%3A%200%3B%5Cn%7D%5Cn%5Cn.h5o-container%20li%20%7B%5Cn%09list-style%3A%20none%3B%5Cn%09margin-left%3A%2020px%3B%5Cn%7D%5Cn%22%7D%2C%7B%7D%5D%2C2%3A%5Bfunction(a%2Cb%2Cc)%7Bfunction%20d()%7Be(jQuery.noConflict(!0))%7Dfunction%20e(a)%7Bvar%20b%3Da(&#39;%3Cdiv%20style%3D%22outline%3A%203px%20solid%20rgba(30%2C60%2C0%2C0.5)%3B%20background%3A%20rgba(30%2C60%2C0%2C0.05)%3B%20border%3A%202px%20solid%20white%3B%20box-shadow%3A%20inset%200px%200px%206px%203px%20rgba(30%2C%2060%2C%200%2C%200.5)%3B%20transition%3A%20all%20200ms%20ease-out%3B%20pointer-events%3A%20none%3B%22%3E%3C%2Fdiv%3E&#39;)%2Cc%3D2%2Cd%3D%22position%3Afixed%3Btop%3A10px%3Bright%3A10px%3Bborder%3A%22%2Bc%2B%22px%20solid%20%23000%3Bbackground%3Argba(255%2C255%2C255%2C.9)%3Bz-index%3A999999%3Bwidth%3A90%25%3Bmax-width%3A90%25%3Bmax-width%3Acalc(100%25%20-%2020px)%3Bmin-height%3A50px%3B%22%2Ce%3Df(a(document.body)%2Ca).asHTML(!0)%2Ck%3Ddocument.createElement(%22div%22)%3Bj(%5Bk%5D%2C%22class%22%2C%22h5o-container%22)%2Ck.innerHTML%3De%2Cj(k.getElementsByTagName(%22a%22)%2C%22target%22%2C%22_top%22)%3Bvar%20l%3Dk.insertBefore(document.createElement(%22button%22)%2Ck.firstChild)%3Bj(%5Bl%5D%2C%22class%22%2C%22h5o-close%22)%2Cl.innerHTML%3D%22Close%22%2Ci(function(e%2Cf)%7Breturn%20e%3Fvoid%20console.error(e)%3A(g(h%2Cf.document)%2Cj(%5Bf.iframe%5D%2C%22style%22%2Cd)%2Cf.document.body.appendChild(k)%2Ck.style.position%3D%22absolute%22%2Cf.iframe.style.width%3Dk.scrollWidth%2Bc%2B%22px%22%2Cf.iframe.style.height%3Dk.scrollHeight%2Bc%2B%22px%22%2Ck.style.position%3D%22static%22%2Cl.addEventListener(%22click%22%2Cfunction()%7Bdocument.body.removeChild(f.iframe)%2Ck%3Dl%3Dnull%2C%24heading%26%26%24heading.remove()%7D)%2Cvoid%20a(k).on(%22click%22%2C%22a%22%2Cfunction(c)%7Bvar%20d%3Da(a(c.currentTarget).attr(%22href%22))%3Ba(document.body).append(b)%3Bvar%20e%3Dd.offset()%3Bb.css(%7Bposition%3A%22absolute%22%2CzIndex%3A1e7%2Ctop%3Ae.top-3%2Cleft%3Ae.left-3%2Cwidth%3Ad.outerWidth()%2B6%2Cheight%3Ad.outerHeight()%2B6%7D)%7D))%7D)%7Dvar%20f%3Da(%22..%2Fh5o-js%2Fdist%2Foutliner.min.js%22)%2Cg%3Da(%22cssify%22)%2Ch%3Da(%22.%2Fbookmarklet.css%22)%2Ci%3Da(%22iframeish%22)%2Cj%3Dfunction(a%2Cb%2Cc)%7Bfor(var%20d%3D0%3Bd%3Ca.length%3Bd%2B%2B)a%5Bd%5D.setAttribute(b%2Cc)%7D%3Bif(window.jQuery)e(jQuery)%3Belse%7Bvar%20k%3Ddocument.createElement(%22script%22)%3Bk.addEventListener%3Fk.addEventListener(%22load%22%2Cd%2C!1)%3Ak.readyState%26%26(k.onreadystatechange%3Dd)%2Ck.src%3D%22%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.9.1%2Fjquery.min.js%22%2Cdocument.body.appendChild(k)%7D%7D%2C%7B%22..%2Fh5o-js%2Fdist%2Foutliner.min.js%22%3A5%2C%22.%2Fbookmarklet.css%22%3A1%2Ccssify%3A3%2Ciframeish%3A4%7D%5D%2C3%3A%5Bfunction(a%2Cb%2Cc)%7Bb.exports%3Dfunction(a%2Cb)%7Bvar%20c%3Db%7C%7Cdocument%3Bif(c.createStyleSheet)%7Bvar%20d%3Dc.createStyleSheet()%3Breturn%20d.cssText%3Da%2Cd.ownerNode%7Dvar%20e%3Dc.getElementsByTagName(%22head%22)%5B0%5D%2Cf%3Dc.createElement(%22style%22)%3Breturn%20f.type%3D%22text%2Fcss%22%2Cf.styleSheet%3Ff.styleSheet.cssText%3Da%3Af.appendChild(c.createTextNode(a))%2Ce.appendChild(f)%2Cf%7D%2Cb.exports.byUrl%3Dfunction(a)%7Bif(document.createStyleSheet)return%20document.createStyleSheet(a).ownerNode%3Bvar%20b%3Ddocument.getElementsByTagName(%22head%22)%5B0%5D%2Cc%3Ddocument.createElement(%22link%22)%3Breturn%20c.rel%3D%22stylesheet%22%2Cc.href%3Da%2Cb.appendChild(c)%2Cc%7D%7D%2C%7B%7D%5D%2C4%3A%5Bfunction(a%2Cb%2Cc)%7Bfunction%20d(a%2Cb)%7B%22undefined%22%3D%3Dtypeof%20b%26%26%22function%22%3D%3Dtypeof%20a%26%26(b%3Da%2Ca%3D%7B%7D)%3Bvar%20c%3Da.renderTo%7C%7Cdocument.body%2Cd%3Ddocument.createElement(%22iframe%22)%3Bd.style.border%3D%22none%22%3Bvar%20e%3D!1%2Cf%3Dfunction()%7Bif(!e)%7Bvar%20a%3Dd.contentDocument%3Btry%7Ba.open()%7Dcatch(c)%7Breturn%20void%20setTimeout(f%2C10)%7De%3D!0%2Ca.write(%22%3C!doctype%20html%3E%22)%2Ca.close()%2Cb(null%2C%7Biframe%3Ad%2Cdocument%3Aa%7D)%7D%7D%3Bd.addEventListener(%22load%22%2Cf)%2Cc.appendChild(d)%7Db.exports%3Dd%7D%2C%7B%7D%5D%2C5%3A%5Bfunction(a%2Cb%2Cc)%7B(function(d)%7B!function(a)%7Bif(%22object%22%3D%3Dtypeof%20c%26%26%22undefined%22!%3Dtypeof%20b)b.exports%3Da()%3Belse%20if(%22function%22%3D%3Dtypeof%20define%26%26define.amd)define(%5B%5D%2Ca)%3Belse%7Bvar%20e%3Be%3D%22undefined%22!%3Dtypeof%20window%3Fwindow%3A%22undefined%22!%3Dtypeof%20d%3Fd%3A%22undefined%22!%3Dtypeof%20self%3Fself%3Athis%2Ce.HTML5Outline%3Da()%7D%7D(function()%7Breturn%20function%20b(c%2Cd%2Ce)%7Bfunction%20f(h%2Ci)%7Bif(!d%5Bh%5D)%7Bif(!c%5Bh%5D)%7Bvar%20j%3D%22function%22%3D%3Dtypeof%20a%26%26a%3Bif(!i%26%26j)return%20j(h%2C!0)%3Bif(g)return%20g(h%2C!0)%3Bvar%20k%3Dnew%20Error(%22Cannot%20find%20module%20&#39;%22%2Bh%2B%22&#39;%22)%3Bthrow%20k.code%3D%22MODULE_NOT_FOUND%22%2Ck%7Dvar%20l%3Dd%5Bh%5D%3D%7Bexports%3A%7B%7D%7D%3Bc%5Bh%5D%5B0%5D.call(l.exports%2Cfunction(a)%7Bvar%20b%3Dc%5Bh%5D%5B1%5D%5Ba%5D%3Breturn%20f(b%3Fb%3Aa)%7D%2Cl%2Cl.exports%2Cb%2Cc%2Cd%2Ce)%7Dreturn%20d%5Bh%5D.exports%7Dfor(var%20g%3D%22function%22%3D%3Dtypeof%20a%26%26a%2Ch%3D0%3Bh%3Ce.length%3Bh%2B%2B)f(e%5Bh%5D)%3Breturn%20f%7D(%7B1%3A%5Bfunction(a%2Cb)%7Bb.exports%3Da(%22.%2Fsrc%2FcreateOutline%22)%7D%2C%7B%22.%2Fsrc%2FcreateOutline%22%3A2%7D%5D%2C2%3A%5Bfunction(a%2Cb)%7Bfunction%20c(a%2Cb)%7Bvar%20c%3D0%2Cd%3Da.find(%22h1%2Ch2%2Ch3%2Ch4%2Ch5%2Ch6%2Ch7%22).filter(%22%3Avisible%22).toArray().map(function(a)%7Bvar%20d%3DparseInt(a.nodeName.substr(1))%2Ce%3Da.id%7C%7C%22h5o-heading-%22%2B%20%2B%2Bc%3Ba.id%3De%3Bvar%20f%3D&#39;%3Cspan%20class%3D%22level%22%3E&#39;%2Bd%2B%22%3C%2Fspan%3E%20%22%2Bb.trim(a.textContent).replace(%2F%5Cs%2B%2Fg%2C%22%20%22)%3Breturn&#39;%3Cli%20style%3D%22margin-left%3A%20&#39;%2Bd%2B&#39;em%3B%22%3E%3Ca%20href%3D%22%23&#39;%2Be%2B&#39;%22%3E&#39;%2Bf%2B%22%3C%2Fa%3E%3C%2Fli%3E%22%7D).join(%22%5Cn%22)%3Breturn%7BasHTML%3Afunction()%7Breturn%22%3Cul%3E%22%2Bd%2B%22%3C%2Ful%3E%22%7D%7D%7Db.exports%3Dc%7D%2C%7B%7D%5D%7D%2C%7B%7D%2C%5B1%5D)(1)%7D)%7D).call(this%2C%22undefined%22!%3Dtypeof%20global%3Fglobal%3A%22undefined%22!%3Dtypeof%20self%3Fself%3A%22undefined%22!%3Dtypeof%20window%3Fwindow%3A%7B%7D)%7D%2C%7B%7D%5D%7D%2C%7B%7D%2C%5B2%5D)%3B })()" title="Visible Heading">Visible Heading</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment