Skip to content

Instantly share code, notes, and snippets.

@pmarquees
Last active February 26, 2019 09:54
Show Gist options
  • Save pmarquees/75b7c2df5e86d0875c6879af3dfd63b8 to your computer and use it in GitHub Desktop.
Save pmarquees/75b7c2df5e86d0875c6879af3dfd63b8 to your computer and use it in GitHub Desktop.
Open in Figma (bookmarklet)

Open in Figma

Opens the current figma file in Figma's app for desktop.

How to use

  1. Add a new bookmark.
  2. Copy bookmarklet.js and paste it into the URL field of the bookmark.
  3. Save.
  4. Click the bookmark when you open a figma file in the browser.
javascript:(function(){var url=window.location.href;var trimmed=url.slice(21);window.location.href=`figma:/${trimmed}`})()
var url = window.location.href;
var trimmed = url.slice(21);
window.location.href = `figma:/${trimmed}`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment