Post

玩坏console

好吧,发现了几个公司都在cosole里加了招聘信息,我也跟风瞅了一下。下列代码从百度网盘里扣出来的

略去大量数据

1
2
3
4
5
6
7
8
try {
    if (window.console && window.console.log && top === self) {
    console.log("\n\n\n%c", 'font-size:0;margin-top:20px;line-height:36px;padding-top:50px;padding-left:158px;background:url("data:image/png;base64,...");background-repeat:no-repeat;');
    console.log("...");
    console.log("...", "color:red");
}
} catch (e) {
}

这是另一份,感觉可以玩玩的,哈哈

1
console.log("%c  ", "font-size:200px;background:url(https://png);");
This post is licensed under CC BY 4.0 by the author.