1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
Miguel's Surfing Quick Links
============================
This repo holds the buggy fruit of my nightly struggle with WebKit2GTK+
and allows me following links quickly, keyboard-only.
The by far biggest limitation by now is, that the shared memory area
only holds the links of the last loaded website, which renders it nearly
useless for multi-tab scenarios or when running multiple instances of
the browser.
 "Screenshot of suckless's surf running quick links"
Contribute
==========
Any contributions or pull requests (from any git repo) are warmly welcome.
Installing this webkit2gtk+ extension
=====================================
* READ surf-webext-dom.c !!
* adapt config.mk
* make
* sudo make install
Example: Using it with suckless.org's surf browser
==================================================
* adapt surf/config.h and surf/surf.c (see below)
* recompile and rerun surf
* have fun!
adapting your surf/config.h
---------------------------
Since I also changed my surf to multi-modal I use the number keys straight
for the quick links like this:
//domlinks (99=magic number / follow link)
{ 0, GDK_KEY_0, domlinks, { .i = 0 } },
{ 0, GDK_KEY_1, domlinks, { .i = 1 } },
{ 0, GDK_KEY_2, domlinks, { .i = 2 } },
{ 0, GDK_KEY_3, domlinks, { .i = 3 } },
{ 0, GDK_KEY_4, domlinks, { .i = 4 } },
{ 0, GDK_KEY_5, domlinks, { .i = 5 } },
{ 0, GDK_KEY_6, domlinks, { .i = 6 } },
{ 0, GDK_KEY_7, domlinks, { .i = 7 } },
{ 0, GDK_KEY_8, domlinks, { .i = 8 } },
{ 0, GDK_KEY_9, domlinks, { .i = 9 } },
{ 0, GDK_KEY_space, domlinks, { .i = 99 } },
adapting your surf/surf.c
---------------------------
surf.c needs an extra function 'domlinks' and two includes for IPC.
Consult the surf.c.diff for details
|