Google chrome extension 铬延伸100%不可检测

Google chrome extension 铬延伸100%不可检测,google-chrome-extension,Google Chrome Extension,我正在开发一个Chrome扩展,它绝对不能被某个特定站点检测到 只是检查一下,在2020年,如果我没有向页面中注入任何DOM/JS/内容,站点就没有检测扩展的方法,并且manifest.json中没有定义web_可访问的_资源 据我所知,Chrome正在绕过控制台将“拒绝加载…”错误直接记录到DevTools控制台。*api 测试代码,看看我是否可以钩住抓取触发的“拒绝加载..”错误-看起来你不能 <script> const clog = console.log c

我正在开发一个Chrome扩展,它绝对不能被某个特定站点检测到

只是检查一下,在2020年,如果我没有向页面中注入任何DOM/JS/内容,站点就没有检测扩展的方法,并且manifest.json中没有定义web_可访问的_资源

据我所知,Chrome正在绕过控制台将“拒绝加载…”错误直接记录到DevTools控制台。*api

测试代码,看看我是否可以钩住抓取触发的“拒绝加载..”错误-看起来你不能

<script>
    const clog = console.log
    console.log = function(x) {
        clog('x: ',x)
    }
    const cerror = console.error
    console.error = function(x) {
        cerror('error: ',x)
    }
  window.fetch('chrome-extension://jifpbeccnghkjeaalbbjmodiffmgedin/options.js',{method: 'get'})
    .then(response => response.text()).then(body => console.log(body))
    .catch(err => console.log(err))

</script>

这是行不通的,因为检测错误对你没有任何好处——不管是否安装了扩展都是一样的。另请参见@wOxxOm,这似乎是我想要的最终答案
if (!is_empty_origin && !is_own_resource &&
        !is_dev_tools && !transition_allowed && !is_error_page) {
      std::string message = base::StringPrintf(
          "Denying load of %s. Resources must be listed in the "
          "web_accessible_resources manifest key in order to be loaded by "
          "pages outside the extension.",
          resource_url.spec().c_str());
      frame->addMessageToConsole(
          blink::WebConsoleMessage(blink::WebConsoleMessage::LevelError,
                                    blink::WebString::fromUTF8(message)));
      return false;
    }