修复Snapchat网络版:禁用焦点追踪、屏幕截图防护,并启用视频下载

通过禁用防护功能并启用视频下载,改善Snapchat网络版的体验。

< 脚本修复Snapchat网络版:禁用焦点追踪、屏幕截图防护,并启用视频下载的反馈

提问/评论

§
发表于:2023-11-09

I'm running this on Firefox along with a User-Agent switcher extension so Snapchat thinks it's on Chrome. The script isn't loading and I'm getting errors in the javascript console:

Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). content.js:64:260
Content-Security-Policy: The page’s settings blocked the loading of a resource at eval (“script-src”).
Source: window["__f__lorux7o9.n8l"] = function()… c8a79fb5-71a2-5f1d-a01b-a75ac5350744
Content-Security-Policy: The page’s settings blocked the loading of a 

Looking into this, the recommendation is to use GM_addElement but I'm not sure how that should be applied.

varenc作者
§
发表于:2023-12-07
编辑于:2023-12-07

Thanks for reporting this bug! I admit I haven't tested in Firefox at all.

I think this is happening because of Firefox's Content-Security-Policy forbiddening external scripts. Chrome+Tampermonkey (at least with manifest v2) makes it easier for extension injected JS to bypass the CSP but I guess not so with Firefox. If I have time I'll look into this!


(though also you should confirm that vanilla Snapchat web works for you in Firefox even with this script disabled. Pretty mean of them to block Firefox even if it works)

发表回复

登录(不可用)以发表回复。

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址