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

< 腳本Unbreak Snapchat web. Disable focus tracking, screenshot prevention, and enable video downloads的回應

提問/評論

§
發表於: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或关注我们的公众号极客氢云获取最新地址