Skip to content

Instantly share code, notes, and snippets.

@ZSendokame
Last active February 20, 2023 14:24
Show Gist options
  • Select an option

  • Save ZSendokame/494d8d31e5c945f39ff58eb04da502e8 to your computer and use it in GitHub Desktop.

Select an option

Save ZSendokame/494d8d31e5c945f39ff58eb04da502e8 to your computer and use it in GitHub Desktop.
NoSpam jQuery plugin bypass
def bypass(mail: str, mode='normal') -> str:
if mode == 'normal':
mail = mail[::-1]
mail = mail.replace('//', '@')
mail = mail.replace('/', '.')
return mail
# moc/elpmaxe//oof -> normal mode
# foo//example/com -> low mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment