move js hooks into separate js files
velocityzen opened this issue · 2 comments
velocityzen commented
Also it can be a folder, jshooks
for example, to inject all *.js to a webview from.
0xWDG commented
Sorry, but I don't think that is an enhancement, that only makes the injecting and the interaction more difficult than needed.
In a while we'll support custom JavaScript, and maybe custom css. (See #36 )
0xWDG commented
It is a folder now.
If you open the app and make a folder in Contents/Resources
called JavaScript
(so: WebShell.app/Contents/Resources/JavaScript
)
and put there the JavaScript files WebShell will load it
If you open the app and make a folder in Contents/Resources
called CSS
(so: WebShell.app/Contents/Resources/CSS
)
and put there the CSS files WebShell will load it