Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GM.addElement support #627

Open
UtterDonkey opened this issue Feb 14, 2024 · 5 comments
Open

GM.addElement support #627

UtterDonkey opened this issue Feb 14, 2024 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@UtterDonkey
Copy link

Could the GM.addElement API be added which would allow elements such as script elements to be added into the page bypassing CSP?

@ACTCD
Copy link
Collaborator

ACTCD commented Feb 14, 2024

Referring to #106, there currently seems to be no feasible way to bypass the severely restricted CSP in Safari.

@UtterDonkey
Copy link
Author

Isn't it done in the iOS version of tampermonkey?

@ACTCD
Copy link
Collaborator

ACTCD commented Feb 14, 2024

Have you actually tested this on your own?

We don't have access to the extension, and it's not open source, so we don't know in what way it bypasses CSP if it's implemented.

If you know, new knowledge is always welcome.

@UtterDonkey
Copy link
Author

Would the way it bypasses CSP in safari be different from how it does it in other browsers?

@ACTCD
Copy link
Collaborator

ACTCD commented Feb 14, 2024

Yes, it's not the same, the relevant APIs are lacking in Safari and have tighter restrictions.

@ACTCD ACTCD added the help wanted Extra attention is needed label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants