Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

unobfuscatejs

atk1411MIT1.0.2

jQuery plugin for defuscating obfuscated email addressess.

readme

Project Status: Inactive - The project has reached a stable, usable state but is no longer being actively developed; support/maintenance will be provided as time allows.

UnobfuscateJs

jQuery plugin for defuscating obfuscated email addressess.

Usage in a ATK14 project

UnobfuscateJs was originally developed for ATK14 Framework. In the ATK14 Framework there is a helper no_spam for distorting email addresses to prevents robotic scraping. The ObfuscateJs normalizes their appearance again.

Package installation:

npm install --save unobfuscatejs

Include source file among vendor scripts in the project, e.g. using Gulp in gulpfile.js:

var vendorScripts = [
  "node_modules/jquery/dist/jquery.js",
  "node_modules/bootstrap/dist/js/bootstrap.js",
  "node_modules/atk14js/src/atk14.js",
  "node_modules/unobfuscatejs/src/jquery.unobfuscate.js"
];

In the application script this should be added for every page:

$( ".atk14_no_spam" ).unobfuscate( {
  atstring: "[at-sign]",
  dotstring: "[dot-sign]"
} );

changelog

Change Log

All notable changes to UnobfuscateJs will be documented in this file.

[1.0.2] 2021-07-29

  • Attributes and text for a link can be set in data attributes

[1.0.1] 2018-11-11

  • README updated

[1.0.0] 2018-11-11