Unbreak Snapchat web. Disable focus tracking and screenshot prevention

This userscript improves the Snapchat web experience by disabling screenshot prevention features which don't prevent screenshots but do actively harm the usability.

ของเมื่อวันที่ 08-06-2023 ดู เวอร์ชันล่าสุด

ผู้เขียน
varenc
คะแนน
0 0 0
เวอร์ชัน
0.1
สร้างเมื่อ
08-06-2023
อัปเดตเมื่อ
08-06-2023
Size
2.18 กิโลไบต์
สัญญาอนุญาต
MIT
ปรับใช้กับ

This userscript makes Snapchat web more usable by disabling the their 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.