Skip to content

Conversation

@7408647n
Copy link
Contributor

The shortcode allows you to mask sensitive information such as email addresses, phone numbers, or text, for example, an address.

Usable Parameters

When using the shortcode, the following parameters must be specified: mail: The email address to be obfuscated.
tel: The phone number to be obfuscated.
text: The text, for example, an address, to be obfuscated. title: The title to be displayed as text on the button. class: (optional) CSS class to customize the button.

Example Usage

To use the shortcode, it should be entered as follows:

[obfuscate mail="[email protected]" title="Show Mail" class="myClass"]

Important Notes

Required Parameters: At least one of the parameters mail, tel, or text must be specified. The title is always required.
Optional Customization: The class parameter is optional and allows you to customize the button using CSS.

The shortcode allows you to mask sensitive information such as email addresses, phone numbers, or text, for example, an address.

Usable Parameters

When using the shortcode, the following parameters must be specified:
mail: The email address to be obfuscated.
tel: The phone number to be obfuscated.
text: The text, for example, an address, to be obfuscated.
title: The title to be displayed as text on the button.
class: (optional) CSS class to customize the button.

Example Usage

To use the shortcode, it should be entered as follows:

[obfuscation mail="[email protected]" title="Show Mail" class="myClass"]

Important Notes

Required Parameters: At least one of the parameters mail, tel, or text must be specified. The title is always required.
Optional Customization: The class parameter is optional and allows you to customize the button using CSS.
@ovx ovx changed the base branch from main to next November 22, 2025 00:16
@ovx ovx merged commit 3778906 into altcha-org:next Nov 22, 2025
@ovx
Copy link
Contributor

ovx commented Nov 22, 2025

Hi, thanks for the PR, very much appreciated. I had to make some changes:

  • Load js script only when the shortcode is rendered
  • Support obfuscated attribute (for performance reasons, so that the encryption does not need to happen on every render)
  • Remove similar attribute names - it's better to have only attribute for one thing
  • Overall code cleanup

It's currently in the next branch, will be released soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants