{"id":22710645,"url":"https://github.com/smallhelm/droideka","last_synced_at":"2025-03-29T21:42:50.815Z","repository":{"id":29366494,"uuid":"32901123","full_name":"smallhelm/droideka","owner":"smallhelm","description":"fight back against email scrapers","archived":false,"fork":false,"pushed_at":"2016-05-14T17:23:28.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-04T22:28:19.812Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smallhelm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-26T01:36:07.000Z","updated_at":"2016-05-14T16:13:51.000Z","dependencies_parsed_at":"2022-08-26T13:31:24.162Z","dependency_job_id":null,"html_url":"https://github.com/smallhelm/droideka","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallhelm%2Fdroideka","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallhelm%2Fdroideka/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallhelm%2Fdroideka/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallhelm%2Fdroideka/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smallhelm","download_url":"https://codeload.github.com/smallhelm/droideka/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246249226,"owners_count":20747167,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-10T12:10:59.078Z","updated_at":"2025-03-29T21:42:50.784Z","avatar_url":"https://github.com/smallhelm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# droideka\n\n[![build status](https://secure.travis-ci.org/smallhelm/droideka.png)](https://travis-ci.org/smallhelm/droideka)\n[![dependency status](https://david-dm.org/smallhelm/droideka.svg)](https://david-dm.org/smallhelm/droideka)\n\nfight back against email scrapers\n\n## What it does\n\n * finds all `\u003ca href=\"mailto:...` email addresses in your html\n * encrypts them\n * appends some JS to your html that decrypts them 1/2 second after the page loads\n\n## How to use it\n\n```js\nvar droideka = require('droideka');\n```\n\n### html = droideka(html[, seed])\n\nYour HTML\n```html\n\u003cp\u003e\n  Here is my email:\n  \u003ca href=\"mailto:some@email\"\u003esome@email.com\u003c/a\u003e\n\u003c/p\u003e\n\u003cp\u003e\n  Here is some more html stuff\n\u003c/p\u003e\n```\n\nIn node run it through droideka\n```js\nhtml = droideka(html);\n```\n\nHere is the output\n```html\n\u003cp\u003e\n  Here is my email:\n  \u003cspan id=\"cihzenf7j0000i4dxll7gftvj\"\u003e\u003cnoscript\u003eYou must enable JavaScript to see the email.\u003c/noscript\u003e\u003c/span\u003e\n\u003c/p\u003e\n\u003cp\u003e\n  Here is some more html stuff\n\u003c/p\u003e\n\u003cscript type=\"application/javascript\"\u003esetTimeout(function(){var d=function(b){var c=b.substring(0,87);b=b.substring(c.length);var e,f,g,h='',d;for(e=0;e\u003cb.length;e++)f=b.charAt(e),g=c.indexOf(f),d=(g-b.length+c.length)%c.length,d=0\u003ed?c.length+d:d,h+=0\u003c=g?c[d]:f;return h};(function(){var a=document.getElementById(\"cihzenf7j0000i4dxll7gftvj\");if(!a)return;a.innerHTML=d(\"eY\\\"1]U.ZbrBtmCh[-:VpK!6WuXx8dlwM2GJ,kfT#(RHD\u00265L}I^o7~F*4S0{qzO%n3\u003egsQPvA'@cyjN\u003c9=)a+iE$Gf S7H9,\u0026*f#AFUq6U*HdH*f#A\u0026K6U*HdH*f#AG/fK\");}());}, 500);\u003c/script\u003e\n```\nTake that spammers!\n\n`seed` can be any string, i.e. your package.json's version string.\n\n### encoded = droideka.encode(text[, seed])\n\nLightly encrypt some text. (not cryptographically secure)\n\n### droideka.js\\_code\\_decode\n\nA string of JS code that creates a local function `d` that can be used for decoding.\n\n```js\nhaml += '\u003cscript\u003e';\nhtml += droideka.js_code_decode;//insert the decoding function\nhtml += 'var email = d(' + JSON.stringify(encoded) + ');';//call it\nhtml += '\u003c/script\u003e';\n```\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmallhelm%2Fdroideka","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmallhelm%2Fdroideka","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmallhelm%2Fdroideka/lists"}