Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 1.26 KB

README.md

File metadata and controls

23 lines (15 loc) · 1.26 KB

js-invisible

Make your JS invisible

Hide your code by invisible characters

Guess what the output is?

	Function('​​​​‌‍​​​​​‌‍​​​​‌‍‍​​​​​​​​​‌‍​​​​‌‍​​​​​‌‍​​​​​‍‍​​​​‌‍​​​​​‌‍​​​​‌‍​​​​​‍‍‍​​​​​​‍​‍​​​​‌‍​​​​‌‍​​​​​​​​​‍​​​​​​‌‍​​​​​‌‍​​​​​‌‍‍​​​​​‍​​​​​​​​​​‍​​​​​​​​​​​‌‍​​​​‌‍​​​​​‍​​​​​​‌‍​​​​‌‍​​​​​‍​‍​​​​​‍‍‍'.replace(/......../g, function($) {         return String.fromCharCode(parseInt($.replace(/./g, function($) {                return {                    '​': '00',                    '': '01',                    '‍': '10',                    '': '11'                }[$]            }), 2))        }))()

Why?

vim temp

Display invisible characters through vim.