dillbyrne / random-agent-spoofer

Firefox addon - Rotates complete browser profiles ( from real browsers / devices ) at a user defined time interval. It includes many extra privacy enhancing options
https://addons.mozilla.org/en-US/firefox/addon/random-agent-spoofer/
GNU General Public License v3.0
615 stars 108 forks source link

help for screen #594

Open umuttekin3349 opened 6 years ago

umuttekin3349 commented 6 years ago

hi dillbryne i need your help. i want to spoof screen resolution on this site 'https://www.whatismyscreenresolution.com/' and 'https://browserleaks.com/javascript (in iframe.contentWindow mode)

but i am using google chorome and your extension is working on firefox i cant porting firefox addon to google chorome extension so i need your help i only want how can i manual set screen resolution on these sites i tried change window.screen object and screen.weight vs. objects in javascprit but not working in these sites my codes is;

Object.defineProperty(window.screen, "height", { get: function(){return 999; }}); Object.defineProperty(window.screen, "width", { get: function(){return 999; }});

screen = new function() { this.width = 777; this.height = 575 }

these codes is not working on 'https://www.whatismyscreenresolution.com/' and 'https://browserleaks.com/javascript (in iframe.contentWindow mode)

please give me javascript codes that I can change to manual thread and working on these sites i dont know coding and I did not understand anything in \lib\modifiedAPIs\screen.js

please help me