-1
Is it possible to hide the source code from the page? I wonder why Twitter seems to use this technique. Look:
<!DOCTYPE html>
<html lang="pt">
<head>
<meta charset="utf-8" />
<title>Twitter</title>
<style>
body {
background-color: #ffffff;
font-family: sans-serif;
}
a {
color: #1da1f2;
}
svg {
color: #1da1f2;
display: block;
fill: currentcolor;
height: 21px;
margin: 13px auto;
width: 24px;
}
</style>
</head>
<body>
<noscript>
<center>Se você não for redirecionado em breve, <a href="/">use este link</a>.</center>
</noscript>
<script nonce="+S++B3GsGLtBoFsjmI2+Pg==">
document.cookie = "app_shell_visited=1;path=/;max-age=5";
location.replace(location.href.split("#")[0]);
</script>
</body>
</html>
I can normally see the twitter source code when using the developer tool, but when viewing the source code of the page
CTRL+U
the whole code does not appear because the twitter elements are loaded after loading the page, you can notice this when givingF5
(reload the page)– Mark Vaaz
Possible duplicate of Hide JS code
– Wallace Maxters
Mate, it’s not duplicate. The other colleague’s question is to hide JS and in mine is the entire HTML as it occurs on Twitter (without the developer tool) and yes seeing directly the source code.
– user24136