{TametheBots}

Testing to see what user agent is rendering this JavaScript, the time stamp and a random number

The Result:

User Agent:
It fails

There is a script just before the closing </body> tag

<script>
const agent = navigator.userAgent;
document.querySelector('meta[name="description"]').setAttribute("content", "Rendered with: " + agent);
// get current time including timezone offset
const now = new Date();
const offset = now.getTimezoneOffset();
// create a string with the time and offset
const time = now.toISOString() + " " + offset;
// get a random number
const random = Math.random();
// join the agent, time and random number
const output = `<b>Agent:</b> ${agent}<br/><b>Time:</b> ${time}<br /><b>Random:</b> ${random}`;
document.getElementById("result").innerHTML = output;
</script>

< Back