diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-01-09 16:36:08 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-01-09 16:36:08 +0100 |
commit | fa2e7494ce8d023a51d888263f3027c5722037f6 (patch) | |
tree | 702e5c282041194ac7ff95cb0378f67223f9074d /src/prefs.c | |
parent | df991c605ff706874363aa4fd103801a502addcc (diff) |
add load_stylesheets option
Setting load_stylesheets=NO will disable loading of remote CSS
stylesheets.
CSS style information embedded in the page with <style></style> elements
will still be used.
Diffstat (limited to 'src/prefs.c')
-rw-r--r-- | src/prefs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/prefs.c b/src/prefs.c index d7042924..2c8ec5df 100644 --- a/src/prefs.c +++ b/src/prefs.c @@ -73,6 +73,7 @@ typedef enum { DRC_TOKEN_LIMIT_TEXT_WIDTH, DRC_TOKEN_LINK_COLOR, DRC_TOKEN_LOAD_IMAGES, + DRC_TOKEN_LOAD_STYLESHEETS, DRC_TOKEN_BUFFERED_DRAWING, DRC_TOKEN_MIDDLE_CLICK_OPENS_NEW_TAB, DRC_TOKEN_NOPROXY, @@ -138,6 +139,7 @@ static const SymNode_t symbols[] = { { "limit_text_width", DRC_TOKEN_LIMIT_TEXT_WIDTH }, { "link_color", DRC_TOKEN_LINK_COLOR }, { "load_images", DRC_TOKEN_LOAD_IMAGES }, + { "load_stylesheets", DRC_TOKEN_LOAD_STYLESHEETS }, { "middle_click_drags_page", DRC_TOKEN_MIDDLE_CLICK_DRAGS_PAGE }, { "middle_click_opens_new_tab", DRC_TOKEN_MIDDLE_CLICK_OPENS_NEW_TAB }, { "no_proxy", DRC_TOKEN_NOPROXY }, @@ -324,6 +326,9 @@ static int Prefs_parse_pair(char *name, char *value) case DRC_TOKEN_LOAD_IMAGES: prefs.load_images = (strcmp(value, "YES") == 0); break; + case DRC_TOKEN_LOAD_STYLESHEETS: + prefs.load_stylesheets = (strcmp(value, "YES") == 0); + break; case DRC_TOKEN_BUFFERED_DRAWING: prefs.buffered_drawing = atoi(value); break; @@ -450,6 +455,7 @@ void a_Prefs_init(void) prefs.show_progress_box=TRUE; prefs.fullwindow_start=FALSE; prefs.load_images=TRUE; + prefs.load_stylesheets=TRUE; prefs.buffered_drawing=1; prefs.vw_fontname = dStrdup(D_VW_FONTNAME); prefs.fw_fontname = dStrdup(D_FW_FONTNAME); |