BASEDIR=..
include $(BASEDIR)/config.mk
-SUBDIRS = webextension
-OBJ = $(patsubst %.c, %.o, $(wildcard *.c))
-JSFILES = $(wildcard scripts/*.js)
+SUBDIRS = webextension
+OBJ = $(patsubst %.c, %.o, $(wildcard *.c))
+JSFILES = $(wildcard scripts/*.js)
all: vimb $(SUBDIRS:%=%.subdir-all)
char *js;
int count = info->count ? info->count : 1;
- js = g_strdup_printf(INCREMENT_URI_NUMBER, info->key == CTRL('A') ? count : -count);
+ js = g_strdup_printf(JS_INCREMENT_URI_NUMBER, info->key == CTRL('A') ? count : -count);
ext_proxy_eval_script(c, js, NULL);
g_free(js);
# Remove the path and .js file extension and turn all chars to upper case to
# get the constant name.
-CONSTANT=$(echo "$FILE" | sed 's:.*/::g' | sed 's:.js$::g' | tr a-z A-Z)
+CONSTANT=$(echo "$FILE" | sed 's:.*/::g' | sed 's:^\(.*\).\(js\):\2_\1:g' | tr a-z A-Z)
# minify the script
cat $FILE | \
}
/* Inject the global hints script. */
- script = webkit_user_script_new(HINTS,
+ script = webkit_user_script_new(JS_HINTS,
WEBKIT_USER_CONTENT_INJECT_TOP_FRAME,
WEBKIT_USER_SCRIPT_INJECT_AT_DOCUMENT_END, NULL, NULL);
webkit_user_content_manager_add_script(ucm, script);