Last active
May 11, 2024 09:01
-
-
Save dobesv/68bf7039e6e3c2b750739593646baa3b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Make this into a bookmark, and clicking it while you have a task selected in Asana will copy a markdown | |
// formatting link to that task with title and text. This can then be pasted into some markdown-friendly | |
// location like a github comment. | |
javascript: void (function() { var textArea = document.createElement("textarea"); textArea.value = `[${(document.querySelector('.SingleTaskTitleRow-taskName textarea') || document.querySelector('textarea#details_property_sheet_title') || {value: document.title.replace(' - Asana', '')}).value}](${location.href})`; document.body.append(textArea); textArea.select(); document.execCommand('copy'); document.body.removeChild(textArea); })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment