Question about detecting browser size

karupoiss

Elite Member
Joined
May 16, 2012
Messages
3,204
Reaction score
1,306
If I use programs that fake my browser parameters and my computers.. for example the bot says my screen resolution is 1024x768 but then I put my browser window to "maximize".. will the site then know that I have maximized my browser and thus the provided screen resolution is actually fake?
 
JS can detect window resize (thus, the website you are botting can detect the size change), if that's what you are asking. But I am not sure what you are trying to achieve. Perhaps some more info would help. Do you want to randomize the screen resolution? If so, maximizing the browser window won't help (as your machine's screen always has a particular resolution)
 
JS can detect window resize (thus, the website you are botting can detect the size change), if that's what you are asking. But I am not sure what you are trying to achieve. Perhaps some more info would help. Do you want to randomize the screen resolution? If so, maximizing the browser window won't help (as your machine's screen always has a particular resolution)
Basically the bot gives info to the site that the screen resolution is x. However, when I open the browser and click "maximize" button then my actual screen size is different to the screen resolution my bot said it is to the website. Can the website see that I clicked the "maximize" button or not? I am afraid of leaving a footprint if my bot says that all the screen sizes for accs are different but when the browser window is maximized the sizes are all the same.
 
Basically the bot gives info to the site that the screen resolution is x. However, when I open the browser and click "maximize" button then my actual screen size is different to the screen resolution my bot said it is to the website. Can the website see that I clicked the "maximize" button or not? I am afraid of leaving a footprint if my bot says that all the screen sizes for accs are different but when the browser window is maximized the sizes are all the same.
They cannot see you pressed "maximize" button because the button is outside the scope of window. However, they can see your updated window size as soon as you click on the button. For example we have this event in JS

Code:
window.onresize = function(event) {
    // code for getting the new resolution.
};

This will fire when you press on maximize, minimize (not actually sure about minimize although I think it will fire) etc as well as you change the window size by dragging your mouse pointer. The same event will be fired for all three.. so yea, you are leaving footprint there.
 
In addition to actual resolution, you can also obtain an available area (remove the start bar size).
Check carefully when using browser parameters.

JavaScript:
console.log(window.screen.availHeight);
 
Back
Top