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

A friendly tip: switch to enable/disable-javascript-markup instead of enable/disable-javascript #734

Open
z0noxz opened this issue Apr 7, 2023 · 1 comment

Comments

@z0noxz
Copy link

z0noxz commented Apr 7, 2023

g_object_set(G_OBJECT(setting), "enable-javascript", TRUE, NULL);

I see that you are using the "enable/disable javascript" setting, which can cause issues when using features that rely on JavaScript. In WebKit, there is an intermediate alternative that allows JavaScript to be enabled for the browser, while removing it from the markup. This effectively prevents websites from accessing JavaScript, while still allowing users to use its functionality for user scripts.

I use this feature for that exact reason in adji. This is how I have implemented it: https://noxz.tech/git/adji.git/commit/530a167cb57cf089f2b235dec08bbd817c6bf7df.html

Of course, you will have to change this throughout the entire source.

@z0noxz
Copy link
Author

z0noxz commented Apr 7, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant