aboutsummaryrefslogtreecommitdiff
path: root/plugins/readability/README.md
blob: dc9b217a004267e875c903780d86252aac950e6c (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
## Readability

Taken from <https://raw.githubusercontent.com/ushnisha/readability-reader-webextensions/master/content_scripts/tranquilize.js>


## 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            },


```