🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

Greasy Fork is available in English.

📂 缓存分发状态(共享加速已生效)
🕒 页面同步时间:2026/01/07 00:55:36
🔄 下次更新时间:2026/01/07 01:55:36
手动刷新缓存

Screen Resolution Spoof

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

Tendrás que instalar una extensión para tu navegador como Tampermonkey, Greasemonkey o Violentmonkey si quieres utilizar este script.

You will need to install an extension such as Tampermonkey to install this script.

Necesitarás instalar una extensión como Tampermonkey o Violentmonkey para instalar este script.

Necesitarás instalar una extensión como Tampermonkey o Userscripts para instalar este script.

Necesitará instalar una extensión como Tampermonkey para instalar este script.

Necesitarás instalar una extensión para administrar scripts de usuario si quieres instalar este script.

(Ya tengo un administrador de scripts de usuario, déjame instalarlo)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

Necesitará instalar una extensión como Stylus para instalar este estilo.

Necesitará instalar una extensión como Stylus para instalar este estilo.

Necesitará instalar una extensión como Stylus para instalar este estilo.

Necesitará instalar una extensión del gestor de estilos de usuario para instalar este estilo.

Necesitará instalar una extensión del gestor de estilos de usuario para instalar este estilo.

Necesitará instalar una extensión del gestor de estilos de usuario para instalar este estilo.

(Ya tengo un administrador de estilos de usuario, déjame instalarlo)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

Autor
r-a-y
Instalaciones diarias
1
Instalaciones totales
1.210
Calificaciones
5 1 0
Versión
1.1.4
Creado
29/4/2017
Actualizado
26/11/2017
Tamaño
1,04 KB
Licencia
Desconocida
Funciona en
Todos los sitios

Update - If you're using Firefox, instead of using this userscript, I recommend setting privacy.resistFingerprinting and privacy.resistFingerprinting.letterboxing to true.

This works way better than spoofing these screen values.


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.