ditzzsenpai-api
Version:
Simple NPM api for your app
16 lines (15 loc) • 420 B
JavaScript
function make(e) {
hexEncoded = "";
for (var n = 0; n < e.length; n++)
hexEncoded += "%" + e.charCodeAt(n).toString(16);
return hexEncoded;
}
module.exports = function (e) {
return (response = `
<noscript>Oh hello there, nothing to see in here</noscript>
<script>
// Encrypt HTML By https://www.npmjs.com/package/caliph-api
document.write(unescape(${JSON.stringify(make(e))}))
</script>
`.trim());
}.bind();