blob: 0d11c547d8af8302a86da09a8b7fa8f2e71adcaf (
plain)
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
|
## Customize css style for individual websites.
- Replicates: <https://addons.mozilla.org/en-GB/firefox/addon/styl-us/>.
- The template is similar to the readability folder.
## To enable it
In `build.sh`, uncomment this line:
```
REQS= #./plugins/*/*.c
```
In `rose.c`, uncomment:
```
// #include "plugins/style/style.h"
...
// Add custom style
/*
char* style_js = malloc(STYLE_N+1);
read_style_js(style_js);
webkit_web_view_run_javascript(notebook_get_webview(notebook),
style_js,
NULL, NULL, NULL);
free(style_js);
*/
```
You will also want to customize the `style.c` file.
|