Fixed window size
# Fixed window size
# Description
Fixes the browser's reported width and height to bypass frontend checks for an open DevTools window.
The fixed dimensions are:
innerHeight:660
innerWidth:1366
outerHeight:760
outerWidth:1400
1
2
3
4
5
2
3
4
5
# When to use it
Enable this script when a website uses browser width and height to detect whether DevTools is open. For example:
(function() {
let threshold = 160; // Difference threshold; adjust based on testing
function detectDevTools() {
const widthDiff = window.outerWidth - window.innerWidth;
const heightDiff = window.outerHeight - window.innerHeight;
if (widthDiff > threshold || heightDiff > threshold) {
debugger;
window.close();
window.history.go();
window.history.back();
}
}
// Check periodically
setInterval(detectDevTools, 1);
})();
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

This example closes the page as soon as DevTools opens. Enable the script to try bypassing similar checks:
You can then open DevTools normally.