Add the bookmarklet compiler
This commit is contained in:
parent
b6530b7ace
commit
8e012b4cfd
|
@ -0,0 +1,16 @@
|
|||
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'
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue