#include <webkit2/webkit-web-extension.h>
-static GSList *adblock_patterns = NULL;
+GSList *adblock_patterns = NULL;
-static void
+void
adblock_load(void)
{
GRegex *re = NULL;
GIOChannel *channel = NULL;
gchar *path = NULL, *buf = NULL;
- path = g_build_filename(g_get_user_config_dir(), __NAME__, "adblock.black",
+ path = g_build_filename(g_get_user_config_dir(), __NAME__, "adblock",
NULL);
channel = g_io_channel_new_file(path, "r", &err);
if (channel != NULL)
g_free(path);
}
-static gboolean
+gboolean
web_page_send_request(WebKitWebPage *web_page, WebKitURIRequest *request,
WebKitURIResponse *redirected_response, gpointer user_data)
{
return FALSE;
}
-static void
+void
web_page_created_callback(WebKitWebExtension *extension, WebKitWebPage *web_page,
gpointer user_data)
{