Skip to content

Instantly share code, notes, and snippets.

@allquixotic
Forked from appel/bookmarklet.js
Last active February 2, 2017 22:59
Show Gist options
  • Save allquixotic/9b5d13b221d85f7aef0fdb2158e8b2e3 to your computer and use it in GitHub Desktop.
Save allquixotic/9b5d13b221d85f7aef0fdb2158e8b2e3 to your computer and use it in GitHub Desktop.
Turbolinks.js bookmarklet (via CDNJS)
javascript:(function()%7Bfunction callback()%7BTurbolinks.start()%7Dvar s%3Ddocument.createElement("script")%3Bs.src%3D"https%3A%2F%2Fcdnjs.cloudflare.com%2Fajax%2Flibs%2Fturbolinks%2F5.0.0%2Fturbolinks.min.js"%3Bif(s.addEventListener)%7Bs.addEventListener("load"%2Ccallback%2Cfalse)%7Delse if(s.readyState)%7Bs.onreadystatechange%3Dcallback%7Ddocument.body.appendChild(s)%3B%7D)()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment