diff options
author | Urbain Vaes <urbain@vaes.uk> | 2017-06-02 15:52:22 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2017-06-02 15:52:22 +0100 |
commit | f95228386a99b792f1af386e5e2055ba56042cbb (patch) | |
tree | b981b7d48fb2012caf9a884756438eb4ab6b14ea /qutebrowser | |
parent | ab40b0d0bd02834507622951f33431329e20e456 (diff) |
Add various changes
Diffstat (limited to 'qutebrowser')
-rw-r--r-- | qutebrowser/.config/qutebrowser/qutebrowser.conf | 2 | ||||
-rwxr-xr-x | qutebrowser/.local/share/qutebrowser/userscripts/url-from-surfraw | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/qutebrowser/.config/qutebrowser/qutebrowser.conf b/qutebrowser/.config/qutebrowser/qutebrowser.conf index e8c00a3..e352b29 100644 --- a/qutebrowser/.config/qutebrowser/qutebrowser.conf +++ b/qutebrowser/.config/qutebrowser/qutebrowser.conf @@ -399,7 +399,7 @@ prompt-filebrowser = true do-not-track = true accept-language = en-US,en referer-header = same-domain -user-agent = +user-agent = Mozilla/5.0 (X11; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0 proxy = system proxy-dns-requests = true ssl-strict = ask diff --git a/qutebrowser/.local/share/qutebrowser/userscripts/url-from-surfraw b/qutebrowser/.local/share/qutebrowser/userscripts/url-from-surfraw index 9bd6795..87ee28b 100755 --- a/qutebrowser/.local/share/qutebrowser/userscripts/url-from-surfraw +++ b/qutebrowser/.local/share/qutebrowser/userscripts/url-from-surfraw @@ -2,17 +2,17 @@ DEFAULT_SEARCH=startpage -if [[ $1 =~ ^-.$ ]]; then +if [[ "$1" =~ ^-.$ ]]; then option="$1" shift 1 fi is_elvi=$(surfraw -elvi | grep -c "^$1\s") -nbr_words=$(echo $1 | wc -w) +nbr_words=$(echo "$1" | wc -w) -if [[ $is_elvi -eq 0 && $nbr_words -eq 1 && ($1 == *.* || $1 == *:*) ]]; then +if [[ $is_elvi -eq 0 && $nbr_words -eq 1 && ("$1" == *.* || "$1" == *:*) ]]; then url="$1" -else +else [[ $is_elvi -eq 0 ]] && sr="$DEFAULT_SEARCH $*" || sr=$* url=$(surfraw -print $sr) fi |