17 lines
303 B
JavaScript
17 lines
303 B
JavaScript
const { writeFileSync, readFileSync } = require('fs')
|
|
|
|
writeFileSync(
|
|
'kriptoptlet'
|
|
, `javascript:win=window.open('','','titlebar=no,location=no');win.document.write(\`${
|
|
readFileSync('kriptopter', 'utf8')
|
|
.replace(/`/g,'\\`')
|
|
.replace(/\$\{/g,'\\${')
|
|
.replace(/\n/g,'\\n')
|
|
}\`)`
|
|
, 'utf8'
|
|
)
|
|
|
|
|
|
|
|
|