diff options
| -rw-r--r-- | Makefile | 9 | ||||
| -rw-r--r-- | config.h | 3 | ||||
| -rw-r--r-- | config.mk | 2 | ||||
| -rw-r--r-- | piper_webext.c | 19 | ||||
| -rw-r--r-- | piper_webext.h | 19 | ||||
| -rw-r--r-- | surf.c | 3 | ||||
| -rw-r--r-- | webext-piper.c | 2 |
7 files changed, 55 insertions, 2 deletions
@@ -1,5 +1,7 @@ # surf - simple browser # See LICENSE file for copyright and license details. + +# Includes some ugly customizations by miguel (to incorporate his webext) .POSIX: include config.mk @@ -93,13 +95,18 @@ webext-clean: -rm webext-piper.o -rm webext-piper.so -superauto: +all-fresh-reinstall: make clean make webext-clean make make webext-build sudo make webext-install +all-clean: + make clean + make webext-clean + + @@ -1,3 +1,6 @@ +// Miguel's customized suckless surf's config + + /* modifier 0 means no modifier */ static int surfuseragent = 1; /* Append Surf version to default WebKit user agent */ static char *fulluseragent = ""; /* Or override the whole user agent string */ @@ -1,3 +1,5 @@ +# surf makefile config, customized by miguel + # surf version VERSION = 2.0 diff --git a/piper_webext.c b/piper_webext.c index 3d0d3c1..72996c8 100644 --- a/piper_webext.c +++ b/piper_webext.c @@ -1,3 +1,22 @@ +// +// !!! THIS IS STILL A CONCEPT/PROTOTYPE. USE AT YOUR OWN RISK !!! +// +// Author: Michal Idziorek <m.i@gmx.at> +// +// Last Update: 16th March 2018 +// +// Last Tested: with surf commit 81f0452bc6c2a110239fa303ad1e72f11c33dc94 +// from htps://git.suckless.org/surf +// +// The following simple Webkit2GTK+ extension was hacked together +// in the sleepless night between 09th and 10th March 2018 (and later +// refined). +// +// The DOM is manipulated,i.e: a <span> with a number added to every +// link encountered. +// +// Named FIFO pipes are used for communication with the ui process. +// #include <sys/types.h> #include <sys/stat.h> #include <glib.h> diff --git a/piper_webext.h b/piper_webext.h index 36d3aec..86d31ef 100644 --- a/piper_webext.h +++ b/piper_webext.h @@ -1,2 +1,21 @@ +// +// !!! THIS IS STILL A CONCEPT/PROTOTYPE. USE AT YOUR OWN RISK !!! +// +// Author: Michal Idziorek <m.i@gmx.at> +// +// Last Update: 16th March 2018 +// +// Last Tested: with surf commit 81f0452bc6c2a110239fa303ad1e72f11c33dc94 +// from htps://git.suckless.org/surf +// +// The following simple Webkit2GTK+ extension was hacked together +// in the sleepless night between 09th and 10th March 2018 (and later +// refined). +// +// The DOM is manipulated,i.e: a <span> with a number added to every +// link encountered. +// +// Named FIFO pipes are used for communication with the ui process. +// void piper_init(char *pipe_in,char *pipe_out,void (*callback_func)(char *msg),char *url); void piper_send(char *msg); @@ -2,6 +2,9 @@ * * To understand surf, start reading main(). */ + +// customizations by miguel. to incorporate his webextension +// #include <sys/file.h> #include <sys/types.h> #include <sys/wait.h> diff --git a/webext-piper.c b/webext-piper.c index 19fd8e9..3435d8f 100644 --- a/webext-piper.c +++ b/webext-piper.c @@ -3,7 +3,7 @@ // // Author: Michal Idziorek <m.i@gmx.at> // -// Last Update: 14th March 2018 +// Last Update: 16th March 2018 // // Last Tested: with surf commit 81f0452bc6c2a110239fa303ad1e72f11c33dc94 // from htps://git.suckless.org/surf |
