look for and modify item in all inventories

So I have an item that when it's no longer in the main hand a funciton is run. I'd like this function to find the item wherever it may be and modify it, for now let's say change it's enchantment_glint_override to false.

What would be the best way to do this? At the moment I guess i'm going to write a command for every inventory slot (along the lines of item modify entity @s hotbar.0 etc). A list of what all the inventories are would be helpful. I remember seeing one on the wiki but can't find the page anymore 🤦‍♂️

Continue to help post