简体   繁体   中英

Why `inject.js loaded` messeage is printed when I turn on Developer Tool - Console Tab on Chrome

I found that whenever I turn on the Developer tool and see Console Tab, inject.js loaded message is printed.

For example, I opened the following code using Chrome:

<!DOCTYPE html>
<html>
    <head>
        <script>
            for (let i = 0; i < 5; i++) {  
                console.log(i);
            }
        </script>
    </head>
    <body>
        for statement
    </body>
</html>

0, 1, 2, 3, and 4 are printed and inject.js loaded messeage is also printed at the end, as follows: 在此处输入图像描述

However, I found that the inject.js loaded messeage is not printed when I run the same code in private mode of Chrome follows:

在此处输入图像描述

The message is printed because inject.js includes the code console.log('inject.js loaded') . Is there any reason the inject.js is run although I did not create the file? and why the messeage is not printed in a private mode?

I guess the inject.js is loaded by one of your browser plugins, and in private mode, all plugins are default to disabled.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM