zoukankan      html  css  js  c++  java
  • xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

    chrome-extension & inject.js

    chrome-extension://gppongmhjkpfnbhagpmjfkannfbllamg/js/inject.js

    inject.js

    /* eslint-env browser */
    
    (() => {
      try {
        const detectJs = (chain) => {
          const properties = chain.split('.');
    
          let value = properties.length ? window : null;
    
          for (let i = 0; i < properties.length; i++) {
            const property = properties[i];
    
            if (value && value.hasOwnProperty(property)) {
              value = value[property];
            } else {
              value = null;
    
              break;
            }
          }
    
          return typeof value === 'string' || typeof value === 'number' ? value : !!value;
        };
    
        const onMessage = (event) => {
          if (event.data.id !== 'patterns') {
            return;
          }
    
          removeEventListener('message', onMessage);
    
          const patterns = event.data.patterns || {};
    
          const js = {};
    
          for (const appName in patterns) {
            if (patterns.hasOwnProperty(appName)) {
              js[appName] = {};
    
              for (const chain in patterns[appName]) {
                if (patterns[appName].hasOwnProperty(chain)) {
                  js[appName][chain] = {};
    
                  for (const index in patterns[appName][chain]) {
                    const value = detectJs(chain);
    
                    if (value && patterns[appName][chain].hasOwnProperty(index)) {
                      js[appName][chain][index] = value;
                    }
                  }
                }
              }
            }
          }
    
          postMessage({ id: 'js', js }, '*');
        };
    
        addEventListener('message', onMessage);
      } catch (e) {
        // Fail quietly
      }
    })();
    
    

    https://www.base64-image.de/

  • 相关阅读:
    特征方程
    鸽巢原理
    Python列表与字典
    布尔型
    python字符串
    Python小笔记
    IntelliJ 中Maven pom.xml依赖不生效解决
    IDEA创建servlet,篇末有找不到servlet报404的原因
    jQuery的ajax之验证用户名是否被注册
    jquery之Validata表单验证
  • 原文地址:https://www.cnblogs.com/xgqfrms/p/10487883.html
Copyright © 2011-2022 走看看