diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2023-11-25 20:02:23 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2023-11-25 20:02:23 +0000 |
commit | 4cb38c4704e4ed11cf10fc046b32ef6ef5afa78f (patch) | |
tree | 2815b0f576b192a9bd84d386b6f4c0e0cee38197 /desktop/options.h | |
parent | 41de6cb6f8ee73a712e305f8c1b6d34090a24523 (diff) | |
download | netsurf-4cb38c4704e4ed11cf10fc046b32ef6ef5afa78f.tar.gz netsurf-4cb38c4704e4ed11cf10fc046b32ef6ef5afa78f.tar.bz2 |
css: Add option to ignore author level CSS
This adds a new config option, `author_level_css`.
When it is disabled, NetSurf will ignore all CSS from the web
page. In this case only the default CSS rules from the browser
and user CSS rules will be applied. It is enabled by default.
Tested by running:
./nsgtk3 --author_level_css=0
Diffstat (limited to 'desktop/options.h')
-rw-r--r-- | desktop/options.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/desktop/options.h b/desktop/options.h index a12275ef7..b74fab829 100644 --- a/desktop/options.h +++ b/desktop/options.h @@ -123,6 +123,9 @@ NSOPTION_BOOL(animate_images, true) /** Whether to execute javascript */ NSOPTION_BOOL(enable_javascript, false) +/** Whether to allow Author level CSS. */ +NSOPTION_BOOL(author_level_css, true) + /** Maximum time (in seconds) to wait for a script to run */ NSOPTION_INTEGER(script_timeout, 10) |