diff --git a/GramAddict/core/telepathic_engine.py b/GramAddict/core/telepathic_engine.py index 8594087..47bc262 100644 --- a/GramAddict/core/telepathic_engine.py +++ b/GramAddict/core/telepathic_engine.py @@ -284,6 +284,13 @@ class TelepathicEngine: # Not a grid item return False + # 5.5 Strict Button Guards + if "follow" in intent or "like" in intent or "save" in intent or "comment" in intent: + # It must be an action button/element, not a username or layout container. + res_id = node.get("id", "").lower() + if "profile_name" in res_id or "username" in res_id or "title" in res_id: + return False + # 6. Block massive layout containers UNLESS specifically looking for feed/post MAX_CONTAINER_AREA = 500000 area = node.get("area", 0)