vimb icon indicating copy to clipboard operation
vimb copied to clipboard

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

Open z0noxz opened this issue 1 year ago • 1 comments

https://github.com/fanglingsu/vimb/blob/8b85f9856797a6f8a0ba9817489bb4e185849b29/src/hints.c#L149

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 avatar Apr 07 '23 16:04 z0noxz