Skip to content

Instantly share code, notes, and snippets.

@thenoseman
Last active June 27, 2017 09:00
Show Gist options
  • Save thenoseman/8ed5db88c6f21e5e40d7a53c356ee8e7 to your computer and use it in GitHub Desktop.
Save thenoseman/8ed5db88c6f21e5e40d7a53c356ee8e7 to your computer and use it in GitHub Desktop.
// Paste this into the URL of a created bookmark:
// Go to your leankit board and klick the link.
javascript:(function()%7Bvar%20body%20%3D%20document.querySelector(%22body%22)%3Bvar%20addStyle%20%3D%20function(css)%20%7Bvar%20style%20%3D%20document.createElement(%22style%22)%3Bstyle.innerText%20%3D%20css%3Bbody.appendChild(style)%3B%7D%3Bvar%20cookies%20%3D%20%5B%22https%3A%2F%2Fpicload.org%2Fimage%2Frprprwdi%2Fcookie.png%22%2C%22https%3A%2F%2Fpicload.org%2Fimage%2Frprpordi%2Fcookie2.png%22%5D%3Bvar%20chooser%20%3D%20document.createElement(%22div%22)%3Bchooser.className%20%3D%20%22cookie%22%3Bchooser.innerHTML%20%3D%20%22%3Cimg%20class%3D'cookie-use'%20src%3D'%22%20%2B%20cookies.join(%22'%2F%3E%3Cimg%20class%3D'cookie-use'%20src%3D'%22)%20%2B%20%22'%2F%3E%22%3Bbody.appendChild(chooser)%3Bcss%20%3D%20%22.cookie%20%7B%20padding%3A%205px%3B%20border%3A%201px%20solid%20%23000%3B%20position%3A%20absolute%3B%20bottom%3A%200%3B%20right%3A%200%3B%20width%3A%22%20%2B%20cookies.length%20*%2060%20%2B%20%22px%3B%20cursor%3A%20pointer%3B%7D%22%3Bcss%20%2B%3D%20%22.cookie-use%20%7B%20width%3A%2050px%3B%20%7D%22%3BaddStyle(css)%3Bchooser.addEventListener(%22click%22%2C%20function(e)%20%7Bif%20(typeof%20window.cookieDone%20%3D%3D%3D%20%22undefined%22)%20%7BaddStyle(%22.card-background%20%7B%20background-size%3A%20100%25%3B%20box-shadow%3A%20none%20!important%3B%20background-color%3A%20transparent%20!important%3B%20background-position%3A%20bottom%3B%20%7D%22)%3Bwindow.cookieDone%20%3D%20true%3B%7DaddStyle(%22.card-background%20%7B%20background-image%3A%20url(%22%20%2B%20e.target.src%20%2B%20%22)%20!important%3B%22)%3B%7D)%7D)()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment