From be043958f056264788cb92445890337b2674510c Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Sun, 5 Feb 2023 03:11:56 +0100 Subject: feat: add readability mode, and explain how to enable it. --- plugins/readability/README.md | 62 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 plugins/readability/README.md (limited to 'plugins/readability/README.md') diff --git a/plugins/readability/README.md b/plugins/readability/README.md new file mode 100644 index 0000000..dc9b217 --- /dev/null +++ b/plugins/readability/README.md @@ -0,0 +1,62 @@ +## Readability + +Taken from + + +## To enable it + +In rose.c uncomment: + +``` + +// #include "plugins/readability/readability.h" + +/* + case prettify: + { + + char* readability_js = malloc(READABILITY_N+1); + read_readability_js(readability_js); + webkit_web_view_run_javascript(notebook_get_webview(notebook), + readability_js, + NULL, NULL, NULL); + free(readability_js); + + break; + } +*/ + +``` + +In config.h, uncomment: + +``` + +typedef enum { + goback, + goforward, + refresh, + refresh_force, + back_to_home, + toggle_fullscreen, + zoomin, + zoomout, + zoom_reset, + next_tab, + prev_tab, + close_tab, + show_searchbar, + show_finder, + finder_next, + finder_prev, + newtab, + /*prettify,*/ + hidebar +} func; + +... + + // { CTRL, KEY(p), prettify }, + + +``` \ No newline at end of file -- cgit v1.2.3 From 353d0ffad7c1810d2c5a87d73f6649bcbc55aad4 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Sun, 5 Feb 2023 03:21:30 +0100 Subject: feat: add plugin to customize css for individual websites... and how to enable it. Also tweak README.mds --- plugins/readability/README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'plugins/readability/README.md') diff --git a/plugins/readability/README.md b/plugins/readability/README.md index dc9b217..d6c0fe2 100644 --- a/plugins/readability/README.md +++ b/plugins/readability/README.md @@ -5,7 +5,13 @@ Taken from Date: Sun, 5 Feb 2023 03:57:29 +0100 Subject: feat: use flags rather than uncommenting code - Significantly simpler - Easier for me to keep up with upstream - Alternatives: - Comments as before - git patches, as in the suckless community: eventually leads to confusion about conflicting patches. - some other option --- plugins/readability/README.md | 68 +------------------------------------------ 1 file changed, 1 insertion(+), 67 deletions(-) (limited to 'plugins/readability/README.md') diff --git a/plugins/readability/README.md b/plugins/readability/README.md index d6c0fe2..2a19a8e 100644 --- a/plugins/readability/README.md +++ b/plugins/readability/README.md @@ -1,68 +1,2 @@ -## Readability +This code reimplements firefox readability mode. Code taken from -Taken from - - -## To enable it - -In `build.sh`, uncomment this line: - -``` -REQS= #./plugins/*/*.c -``` - -In `rose.c` uncomment: - -``` - -// #include "plugins/readability/readability.h" - -/* - case prettify: - { - - char* readability_js = malloc(READABILITY_N+1); - read_readability_js(readability_js); - webkit_web_view_run_javascript(notebook_get_webview(notebook), - readability_js, - NULL, NULL, NULL); - free(readability_js); - - break; - } -*/ - -``` - -In config.h, uncomment: - -``` - -typedef enum { - goback, - goforward, - refresh, - refresh_force, - back_to_home, - toggle_fullscreen, - zoomin, - zoomout, - zoom_reset, - next_tab, - prev_tab, - close_tab, - show_searchbar, - show_finder, - finder_next, - finder_prev, - newtab, - /*prettify,*/ - hidebar -} func; - -... - - // { CTRL, KEY(p), prettify }, - - -``` -- cgit v1.2.3