Skip to content

Instantly share code, notes, and snippets.

@ap1969
Created February 7, 2024 21:41
Show Gist options
  • Save ap1969/2e6e922d7d988847eb094a2dd1e2c865 to your computer and use it in GitHub Desktop.
Save ap1969/2e6e922d7d988847eb094a2dd1e2c865 to your computer and use it in GitHub Desktop.
Bookmarklet to automatically click on Asana's "Show More"
javascript:(function clickElementWithDelay() { var targetElement = document.querySelector('#asana_sidebar > div.SidebarResizableContainer-sidebarWrapper > div > div.CustomScrollbarScrollable.Sidebar-customScrollbarScrollable > div.Scrollable--withCompositingLayer.Scrollable.Scrollable--vertical.CustomScrollbarScrollable-scrollable > div.CustomScrollbarScrollable-content > div > div:nth-child(3) > nav > div:nth-child(2) > div > div.ThemeableRectangularButtonPresentation--isEnabled.ThemeableRectangularButtonPresentation.ThemeableRectangularButtonPresentation--medium.SubtleButton--inverseTheme.SubtleButton.SidebarProjectsSectionProjectList-showMoreButton'); if (targetElement) { targetElement.click(); setTimeout(clickElementWithDelay, 250); } })();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment