I’m keeping the index numbers for consistency for when I add new ones in the future. The JavaScript code can be referenced in the history of the GitHub repository if needed.
Hello @ShunS . Great work done here, thank you I find one bookmarklet particularly usefull in my case “Toggle subtask” but it does not appear to work anymore. After running it on a list view it just blinks for couple of times and then displays nothing. Occasionaly it manages to display expanded subtask but only as a placeholder “Loading more subtasks” without any content like subtask name loaded. Can you please confirm it is still working?
Thank you @Parker_Aldric_Mar for the contribution!
I confirm the following code works perfectly
I changed the curly quotes to straight ones.
javascript: (async function() {
let button;
while ((button = document.querySelector('.SubtaskGrid-loadMore'))) {
button.click();
await new Promise(resolve => setTimeout(resolve, 500));
}
})();
However, I believe no action is easier than one click, so I’d still recommend the Asana Load More extension (installation steps) rather than adding your code to my bookmarklets list.