Obtuse

Developer

Isaac Raway - Airways

3rd Party (Free)

1 downloads (last 90 days)

Download

EE Version Support

  • ExpressionEngine 2

Compatibility

If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Webservice
  • Publisher

Requirements

  • jQuery for the Control Panel

Add-On Type(s)

Plugin

Tags

Obtuse finds all email addresses in a block of markup and turns them into obfuscated/obscured javascript links.

The tag takes no parameters, just the incoming HTML from inside it’s tag pair. Any mailto: links with labels should also be preserved.

Example

{exp:obtuse}
    test1@example.com
    test2@example.com
    <a href="mailto:test3@example.com">Test 3</a>
{/exp:obtuse}

Output

Note: Output varies on each execution.

<span data-eeEncEmail_unDEtUnOxI='1'>.(JavaScript must be enabled to view this email address)</span><script type="text/javascript">/*<![CDATA[*/var out = '',el = document.getElementsByTagName('span'),l = ['>','a','/','<',' 109',' 111',' 99',' 46',' 101',' 108',' 112',' 109',' 97',' 120',' 101',' 64',' 49',' 116',' 115',' 101',' 116','>','\"',' 109',' 111',' 99',' 46',' 101',' 108',' 112',' 109',' 97',' 120',' 101',' 64',' 49',' 116',' 115',' 101',' 116',':','o','t','l','i','a','m','\"','=','f','e','r','h','a ','<'],i = l.length,j = el.length;while (--i >= 0){out += unescape(l.replace(/^\s\s*/, '&#'));}while (--j >= 0){/**/if (el[j].getAttribute('data-eeEncEmail_unDEtUnOxI')){el[j].innerHTML = out;}}/*]]>*/</script>
<span data-eeEncEmail_KJDdpakIqb='1'>.(JavaScript must be enabled to view this email address)</span><script type="text/javascript">/*<![CDATA[*/var out = '',el = document.getElementsByTagName('span'),l = ['>','a','/','<',' 109',' 111',' 99',' 46',' 101',' 108',' 112',' 109',' 97',' 120',' 101',' 64',' 50',' 116',' 115',' 101',' 116','>','\"',' 109',' 111',' 99',' 46',' 101',' 108',' 112',' 109',' 97',' 120',' 101',' 64',' 50',' 116',' 115',' 101',' 116',':','o','t','l','i','a','m','\"','=','f','e','r','h','a ','<'],i = l.length,j = el.length;while (--i >= 0){out += unescape(l.replace(/^\s\s*/, '&#'));}while (--j >= 0){/**/if (el[j].getAttribute('data-eeEncEmail_KJDdpakIqb')){el[j].innerHTML = out;}}/*]]>*/</script>
    <span data-eeEncEmail_tFhyNviIYd='1'>.(JavaScript must be enabled to view this email address)</span><script type="text/javascript">/*<![CDATA[*/var out = '',el = document.getElementsByTagName('span'),l = ['>','a','/','<',' 51',' 32',' 116',' 115',' 101',' 84','>','\"',' 109',' 111',' 99',' 46',' 101',' 108',' 112',' 109',' 97',' 120',' 101',' 64',' 51',' 116',' 115',' 101',' 116',':','o','t','l','i','a','m','\"','=','f','e','r','h','a ','<'],i = l.length,j = el.length;while (--i >= 0){out += unescape(l.replace(/^\s\s*/, '&#'));}while (--j >= 0){/**/if (el[j].getAttribute('data-eeEncEmail_tFhyNviIYd')){el[j].innerHTML = out;}}/*]]>*/</script>

If the user has JavaScript enabled, they will see what appear to be normal mailto: href links:

test1@example.com
test2@example.com
Test 3

If the user has JavaScript disabled, they will be presented with the standard ExpressionEngine notice that they need to have JavaScript enabled to view each email address:

.(JavaScript must be enabled to view this email address)

 

Download Obtuse

EE Support Downloads Add-On Version Release Date
Not Specified Download

This entry was created February 4, 2013, 10:32 am.
This entry was last updated February 7, 2013, 8:55 pm.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through devot-ee.com. If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at https://devot-ee.com/returns to initiate your return. If you have questions, email support@devot-ee.com.

2 Reviews:

seeingis 11.18.13

Rating - {addon_rating_average}

This works great! Supper easy and it works. Check the source code and no mailto tag to show email address.

Jules6120 10.19.13

Jules6120
Rating - {addon_rating_average}

This is another auto install for us now. Wrapping our content blocks with Obtuse - easy and done. Great stuff - thanks for giving this to the community.