From b48c504871c4732895b00ae6c2a87c97a63ad3d8 Mon Sep 17 00:00:00 2001 From: NunoSempere 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') 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