News for hackers. Stuff that matters.
Re:Font-Face Toggler Bookmarklet by madeofpalk on Monday January 15, 2024 @07:28AM (#39000075)
> An even bigger WTF, though, is that the server gets to control through CSP which off-site style sheets the user can link against and even whether use of the style attribute is permitted.

I don't understand the problem. This is exactly the use case for CSP - allow the server to lock down to a more restricted, and safer subset of the web platform. It plays an important part in providing a failsafe for displaying untrusted/user content on the web (and elsewhere).

I know of one podcast client that uses CSP to safely render HTML podcast notes, blocking the loading of images and any external assets. Pretty neat if you ask me.

Why do you think CSP is user hostile?

Re:Font-Face Toggler Bookmarklet by hahn-kev on Monday January 15, 2024 @08:14AM (#39000564)
There's a difference between user content, which could include injection attacks. And what might be called operator content (operator of the browser in this case, which could also be considered a user), sure I want to be protected against hostile injection, but I should be able to inject code into my own browser without any issue.
Re:Font-Face Toggler Bookmarklet by crtasm on Monday January 15, 2024 @08:37AM (#39000805)
Would a userscript running in Greasemonkey/Violentmonkey help in this case?

I inject code into every site I visit.