diff options
author | NunoSempere <nuno.sempere@protonmail.com> | 2024-02-11 16:58:35 +0100 |
---|---|---|
committer | NunoSempere <nuno.sempere@protonmail.com> | 2024-02-11 16:58:35 +0100 |
commit | 5e42ab4b00f3625b902cc3bfa4ecfbc30bfcaa9f (patch) | |
tree | b73db2e4096cc4d9f2444aee649102da435bcca8 | |
parent | cdf35fa832de83dd2db65b9d8f38600510352389 (diff) |
move plugins code to config.h
-rw-r--r-- | config.h | 17 | ||||
-rw-r--r-- | rose.c | 18 |
2 files changed, 19 insertions, 16 deletions
@@ -16,6 +16,23 @@ #define SEARCH "https://lite.duckduckgo.com/html/?q=%s" // "https://search.nunosempere.com/search?q=%s" #define HOME ROSE_HOMEPAGE ? "file:///home/loki/Documents/core/software/fresh/C/rose-browser/rosenrot/user-scripts/ubuntu-20.04/rose-images/rose-homepage.png" : "https://search.nunosempere.com/" +// Plugins +#define LIBRE_REDIRECT_ENABLED true +#define READABILITY_ENABLED true +#define CUSTOM_STYLE_ENABLED true +#define CUSTOM_USER_AGENT false +/* +To disable plugins: +1. set their corresponding variable to false +2. you could also look into this file at commit afe93518a for an approach using stand-in code. +3. recompile + +To remove plugins completely; +1. Remove the corresponding code in this file by looking for the variables above. +2. Remove PLUGIN and $(PLUGIN) from the makefiel +3. Recompile +*/ + // Webkit settings // See: https://webkitgtk.org/reference/webkit2gtk/stable/class.Settings.html #define WEBKIT_DEFAULT_SETTINGS \ @@ -19,24 +19,10 @@ static struct { enum { _SEARCH, _FIND, _HIDDEN } entry_mode; } bar; -/* Plugins */ -#define LIBRE_REDIRECT_ENABLED true -#define READABILITY_ENABLED true -#define CUSTOM_STYLE_ENABLED true -#define CUSTOM_USER_AGENT false +// Number of open tabs static int num_tabs = 0; -/* -To disable plugins: -1. set their corresponding variable to false -2. you could also look into this file at commit afe93518a for an approach using stand-in code. -3. recompile - -To remove plugins completely; -1. Remove the corresponding code in this file by looking for the variables above. -2. Remove PLUGIN and $(PLUGIN) from the makefiel -3. Recompile -*/ +/* */ WebKitWebView* webview_new() { char* style; |