You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 17, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Jun 17, 2026. It is now read-only.
Can the Subresource Integrity issue be solved by implementing it on the userscript itself? #1
Oh, this is the first time I see the results of the "users no longer watch repositories automatically" change I was against affecting negatively a project. Glad to see you here!
I have to admit that I know very little about writing userscripts and web security. As I mentioned in the README, the code itself was put together through vibe coding (with only my basic auditing). My concerns about dependency and rendering security mainly come from experience in other fields.
With my current knowledge, I can’t give a solid answer on the implementation or security points you raised. I'll try to understand them and give them a try.
EvalError: call to eval() blocked by CSP
Content-Security-Policy: The page’s settings blocked a JavaScript eval (script-src) from being executed because it violates the following directive: “script-src https://github.githubassets.com/” (Missing 'unsafe-eval')
Source: true
Or implement a simple bundler that just removes the @require statements and inlines the source code directly into the final user.js, thereby avoiding the need to bring in additional toolchain dependencies for something so simple.
To be fair, I guess that's not hard to implement. At it simplest, run the code using esbuild, prepend the user-script, using GitHub Actions for CI and (maybe) GitHub Pages for deployment. Since you vibe coded this, here's an idea: https://claude.ai/public/artifacts/6ec04593-ebba-4fc4-a488-fa08e7470f54 (by the way, there are lots of issues with this generated code, but I guess you can work with that as a starting point)
Activity
qgustavor commentedon Sep 27, 2025
I guess this project is abandoned, no?
hellodword commentedon Sep 28, 2025
I’m still using it—I just forgot to watch it, so I didn’t get the issue-related emails. Sorry about that.
qgustavor commentedon Sep 28, 2025
Oh, this is the first time I see the results of the "users no longer watch repositories automatically" change I was against affecting negatively a project. Glad to see you here!
hellodword commentedon Sep 28, 2025
I have to admit that I know very little about writing userscripts and web security. As I mentioned in the README, the code itself was put together through vibe coding (with only my basic auditing). My concerns about dependency and rendering security mainly come from experience in other fields.
With my current knowledge, I can’t give a solid answer on the implementation or security points you raised. I'll try to understand them and give them a try.
hellodword commentedon Sep 29, 2025
Failed in firefox:
https://github.com/violentmonkey/violentmonkey/issues?q=is%3Aissue%20firefox%20CSP
Any idea?
qgustavor commentedon Sep 29, 2025
No, I don't have any. I guess this idea wouldn't work. But thanks for checking it anyway.
hellodword commentedon Sep 29, 2025
How about using a bundler instead of
@requirehttps://www.npmjs.com/package/bundlemonkey
Or implement a simple bundler that just removes the
@requirestatements and inlines the source code directly into the finaluser.js, thereby avoiding the need to bring in additional toolchain dependencies for something so simple.qgustavor commentedon Sep 29, 2025
To be fair, I guess that's not hard to implement. At it simplest, run the code using esbuild, prepend the user-script, using GitHub Actions for CI and (maybe) GitHub Pages for deployment. Since you vibe coded this, here's an idea: https://claude.ai/public/artifacts/6ec04593-ebba-4fc4-a488-fa08e7470f54 (by the way, there are lots of issues with this generated code, but I guess you can work with that as a starting point)
feat: add bundler for @require
hellodword commentedon Sep 29, 2025
I took a quick look at
npm --verbose i foo, found the.tgzfile and the.min.jsfiles inside it, and wrote a very simple bundler.