From 164ea98a5b51a58f86780a4d232978b116405696 Mon Sep 17 00:00:00 2001 From: Jimmy Date: Tue, 3 Apr 2018 20:11:15 +1200 Subject: [PATCH] Greasemonkey: fix default include value Greasemonkey scripts are supposed to default to running on all pages. @jgkamat and @nemanjan00 repurted some script not running on all pages unless they either removed (or broke) the metadata block or added an include directive. Indeed I had a logic error when it only defaulted to being included on all pages when no metadata block at all was included. Whoops. --- qutebrowser/browser/greasemonkey.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/browser/greasemonkey.py b/qutebrowser/browser/greasemonkey.py index 41e4a1ed4..a43644bf6 100644 --- a/qutebrowser/browser/greasemonkey.py +++ b/qutebrowser/browser/greasemonkey.py @@ -92,7 +92,7 @@ class GreasemonkeyScript: props = "" script = cls(re.findall(cls.PROPS_REGEX, props), source) script.script_meta = props - if not props: + if not script.includes: script.includes = ['*'] return script