浏览器指纹修改之platform指纹平台修改

   浏览器指纹修改之platform修改,并附上浏览器指纹完整查看:http://www.sdfymj.com/ua.php

   代码如下:

    

// get activation setting
chrome.storage.local.get('isActivated', function({isActivated}) {
  if (isActivated === undefined) {
    // set default
    isActivated = true;
    chrome.storage.local.set({isActivated: true});
  }
 
  // inject
  if (isActivated) {
    const actualCode = "Object.defineProperty(navigator,'platform',{get:function(){return 'iPhone';}});";
    let s = document.createElement('script');
    s.textContent = actualCode;
    if(document.body){
        try{
            document.body.appendChild(s);
        }
        catch(e)
        {
            document.documentElement.appendChild(s);
        }
    }else{
        var heads = document.getElementsByTagName("head");
        if(heads.length) heads[0].appendChild(s);
    }
    console.log('PatformNolimit injected');
  }
});

  

posted @ 2020-07-20 13:30  圆柱模板  阅读(1719)  评论(0编辑  收藏  举报