Screen Resolution Spoof

Alters attempts at fingerprinting your screen resolution to 1920x1080. Only tested in FIrefox.

目前為 2017-11-26 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
r-a-y
評價
0 0 0
版本
1.1.4
建立日期
2017-04-29
更新日期
2017-11-26
尺寸
1.0 KB
授權條款
未知
腳本執行於
所有網站

This userscript alters the innerWidth and innerHeight, as well as the window.screen width and height properties to prevent attempts at fingerprinting your screen's resolution. The screen resolution is spoofed to 1920x1080, which is one of the most common screen resolutions out there.

Note: The innerHeight uses 974, which is Windows 7's taskbar height (1080 - 106px).

If you want to switch to Windows 10's taskbar height, edit the script and switch 974 to 966 (1080 - 114px).

Note 2: The outerHeight uses 1040, which is the screen resolution - 40px.

Note 3: Both the innerHeight and outerHeight use Chrome's resolutions as a baseline since Firefox is more variable and Chrome is more standardized and in use.

Install this userscript and then check some sites that calculate your screen resolution like:

  • www.screenresolution.org
  • www.whatismyscreenresolution.com
  • dev.jeffersonscher.com/resolution.html
  • resizemybrowser.com

Screen resolution should show 1920x1080.

Only tested in Greasemonkey (pre-Firefox 57 version) and Firefox.

Probably does not work with Chrome or Firefox WebExtension alternatives like Tampermonkey and Violentmonkey. I'll be releasing a WebExtension version for Chrome and Firefox 57+ in the near future.