Introduction to Asana bookmarklets

@ShunS ,

Great job!

It is a pleasure working with you, and I am grateful for the solution you provided me.
I hope this helps others and that Asana eventually uses this as inspiration to implement natively in the system for everyone to use.

Thank you :orange_heart:

2 Likes

Super tips, @ShunS! :star_struck: Thanks for putting this together!

1 Like

Yes, bravo, @ShunS , really nice!!

1 Like

Amazing tips! Thank you so much for sharing, @ShunS! :clap:

1 Like

these are so helpful and working great for me! thank you!

1 Like

Super cool. A lecture on Asana Customization

1 Like

Thank you for the feedback :slight_smile:

Update:

Please keep requests and ideas coming :bulb:

1 Like

This is amazing!
I only wish there was some way to use these in the desktop app… :frowning:

1 Like

Update:

It’s great to see new bookmarklets created by other users and helping teams :slight_smile:

2 Likes

I just stumbled upon this… this is gold :coin: great stuff @ShunS :slight_smile:

2 Likes

Update:

3 Likes

A bookmarklet for showing “Just my tasks” would be great to add. I made one a few months back, but recent changes to the UI broke it. If I get it working again, can we include it in your collection?

Here was the previous version’s code (it looks like the easily identifiable classnames are now gone… so this might be more brittle going forward):

javascript: (() => {
    const filterMenu = document.querySelector('.FilterMenu');
    filterMenu.click();
    setTimeout(() => {
        const filterMenuContents = document.querySelector('.FilterMenuContents');
        if (filterMenuContents) {
            const removeButton = filterMenuContents.querySelector('.RemoveButton');
            removeButton.click();
        } else {
            const justMyTasks = document.getElementById('view_options_filter_Just my tasks');
            if (justMyTasks) {
                justMyTasks.click();
            }
        }
    }, 250);
})()

Here is a fixed version (works on the project view, only if there isn’t a task open)

javascript: (() => {
    const filterMenu = [...document.querySelectorAll('.PageToolbarStructure-rightChildren div')]
        .find((node) => node.innerText.startsWith('Filter'));
    filterMenu.click();
    setTimeout(() => {
        const filterMenuContents = document.querySelector('.FilterMenuContents');
        if (filterMenuContents) {
            const removeButton = filterMenuContents.querySelector('.RemoveButton');
            removeButton.click();
        } else {
            const justMyTasks = document.getElementById('view_options_filter_Just my tasks');
            if (justMyTasks) {
                justMyTasks.click();
            }
        }
    }, 250);
})()

1 Like

Hi @John_Pope , thank you for the offer :slight_smile:
I confirm it’s working:

Clicking the boommark folder > bookmarklet is almost the same effort as using the official feature, but I see the benefit in being able to undo the filter by the click of the bookmarklet.

I’ll add yours as “2-2-5. :bust_in_silhouette: Just My Tasks:raised_hands:
Please forgive me for making a little changes to fit my style.

1 Like

Thanks! I usually just have this one outside of any bookmark folders since I use it everyday. I appreciate you including this in your collection as it has been a great resource for Asana bookmarklets.

Update:

3 Likes

Very nice, @ShunS; thanks!!!

Larry

1 Like

Update:

1 Like

Update:

2 Likes

Hi! Is there any way to toggle subtasks in timeline view? I don’t find the option allows me to do so when in that view currently.

Thanks in advance :slight_smile: