Google chrome расширение kwift. CHROME .min. js - PullRequest
2 голосов
/ 12 марта 2020

Может кто-нибудь знать, что такое chrome -растяжение, которое вызывается файлом kwift.CHROME.min.js?

Он использует такую ​​ссылку:

chrome-extension://random_string_here/content/contentScripts/kwift.CHROME.min.js

в моем Chrome консоль Я вижу сотни / тысячи журналов, начинающихся с описания isElementCoveringWebui

пример журнала консоли:

isElementCoveringWebui
div.pcaflag

и код, отвечающий за отображение журнала выше:

  t.isWebUIFrameVisible = function (e, t) {
  const a = t.iframe;
  return a && (e => {
    const t = "EDGE" === n.getBrowser() ? ["BODY"] : ["BODY", "HTML"];
    return e.parentElement && t.some(t => t === e.parentElement.tagName)
  }
  )(a) && function () {
    let t;
    try {
      t = e.getCurrentWindow().getComputedStyle(a)
    } catch (e) {
      return !0
    }
    return o(t)
  }() && e.isReallyVisible({
    node: a,
    checkWholeArea: !0
  }) && !function (e, t) {
    const a = e.getCurrentDocument();
    let n = !1;
    const o = a.createTreeWalker(t.parentNode, NodeFilter.SHOW_ELEMENT);
    o.currentNode = t;
    const r = a => {
      console.log("isElementCoveringWebui"),
      console.log(a);
      const n = e.getCurrentWindow().getComputedStyle(a);
      return (() => "none" === n.pointerEvents)() && (() => "2147483647" === n.zIndex)() && (() => {
        const e = a.getBoundingClientRect()
          , n = t.getBoundingClientRect();
        return i.elementsHaveCommonArea(e, n)
      }
      )()
    }
      ;
    for (; o.nextNode() && !n;)
      n = r(o.currentNode);
    return n
  }(e, a)
}
...