Adds userscript support to Epiphany browser (aka GNOME Web).
This is a WebKit2GTK WebExtension which simply reads Javascript files from some directories, and evaluates them for every page.
Being a WebExtension, it is isolated from the GTK UI and thus can't modify it.
Just place your scripts under either:
/usr/local/share/epiphany/userscripts
/usr/share/epiphany/userscripts
~/.local/share/epiphany/userscripts
pkg-config
libwebkit2gtk-4.0-dev
orwebkit2gtk-web-extension-4.0
For Debian-based distributions:
make
sudo make DESTDIR=lib/x86_64-linux-gnu/epiphany-browser install
Otherwise:
make
sudo make install
GPL3