浏览器指纹修改之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'); } });