להעניק תג כאשר משתמש מבקר בקישור

how do I add them to a custom group based on them being granted a badge, and then how do I grant them the trust level based on being in the group ?

where can I find this script