diff options
author | NunoSempere <nuno.sempere@protonmail.com> | 2023-02-05 03:21:30 +0100 |
---|---|---|
committer | NunoSempere <nuno.sempere@protonmail.com> | 2023-02-05 03:21:30 +0100 |
commit | 353d0ffad7c1810d2c5a87d73f6649bcbc55aad4 (patch) | |
tree | 5821596e151ae561c653a3ee5306651fbbf2c5d0 /plugins/style/README.md | |
parent | be043958f056264788cb92445890337b2674510c (diff) |
feat: add plugin to customize css for individual websites...
and how to enable it.
Also tweak README.mds
Diffstat (limited to 'plugins/style/README.md')
-rw-r--r-- | plugins/style/README.md | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/plugins/style/README.md b/plugins/style/README.md new file mode 100644 index 0000000..0d11c54 --- /dev/null +++ b/plugins/style/README.md @@ -0,0 +1,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. |