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

Greasy fork 爱吃馍镜像

Unbreak Snapchat web. Disable focus tracking, screenshot prevention, and enable video downloads

Improve the Snapchat web experience by disabling screenshot prevention features which don't prevent screenshots but do actively harm the usability. And enabling video downloads

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

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

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

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

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

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

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

公众号二维码

扫码关注【爱吃馍】

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

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

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

公众号二维码

扫码关注【爱吃馍】

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

Autor
varenc
Installationen heute
3
Installationen gesamt
1.022
Bewertungen
1 1 0
Version
0.1.4.1
Erstellt am
08.06.2023
Letzte Aktualisierung
31.03.2025
Größe
6,78 KB
Lizenz
MIT
Wird angewandt auf

Update 2025-03-31

Added new functionality to allow you to download videos and have full control over videos. Also updated script to work on the new snapchat web domain (https://www.snapchat.com/web/*)

Update 2024-10-24

If you like this script, check out ExamV1's fork of it here. The code there has been cleaned up a bit and it causes "you are no longer present" to appear a bit less. Kudos to @ExamV1 ! Also if anyone has insights on how to further prevent Snapchat from detecting a lack of focus/visibility change, let me know. Chrome Dev Tools's "Emulate a Focused Page" works quite well but haven't yet figured out how to replicate that in JS.

Description

This userscript makes Snapchat web more usable by disabling its ill-guided attempts to prevent screenshots by monitoring control keys and tracking focus. These attempts by Snapchat do nothing to actually prevent screenshots, which they document as not being prevented, but they do actively harm the user experience. For example, say I want to reference my friend's trip info while in another browser window. When the page isn't focused, the content is hidden.

This userscript just disables all that. It intercepts and blocks modifier keypress events and sets document.hasFocus() to always be true. This makes Snapchat web much more usable.

NOTE: I've just updated this so it also prevents right-clicking from making Snapchat think you've lost focus. This also disables the ability to right-click on a message to react, but I think that's a fair tradeoff since you can do that in other ways. If you feel otherwise, let me know! I love feedback in general.