Answer the question
In order to leave comments, you need to log in
How to replace the page content before loading the page?
Hello people! There is an extension, how can I replace the page content with js before it is loaded, for example, just display "hello world" in the body? At the same time, without loading the main content. That is, in fact, kill the previous page and create your own. Thanks.
Answer the question
In order to leave comments, you need to log in
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
content
<script>
document.body.innerHTML = '';
</script>
</body>
</html>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question