From 2ef255ced8a965e27d63889fe96914b7c03eb3eb Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 6 Jun 2017 16:43:02 +0200 Subject: surf-display: surf does not support filtering natively in the current upstream release. Using a local tinyproxy might be more effective anyway. --- bin/surf-display | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'bin') diff --git a/bin/surf-display b/bin/surf-display index 47ddc6e..b016e9d 100755 --- a/bin/surf-display +++ b/bin/surf-display @@ -66,9 +66,6 @@ SCREENSAVER_SETTINGS="" # don't use an HTTP proxy by default HTTP_PROXY_URL="" -# URI block list, if any -unset URI_BLOCKLIST - # log to stderr, if not set to "yes" in one of the config files... LOG_TO_SYSLOG=no @@ -176,20 +173,6 @@ if ! echo "$WWW_URI" | grep -q -E "^(file://|http://|https://).*"; then exit -1 fi -# if URI_BLOCKLIST is not set, populate it and limit access to the WWW_SERVER that WWW_URI points to only. -if [ ! -v URI_BLOCKLIST ]; then - URI_TYPE=`echo "$WWW_URI" | sed -r -e 's@(file://|http(|s)://)[^/]+/.*@\1@'` - WWW_SERVER="" - if echo "$URI_TYPE" | grep -q -E "^http(|s)://([^/]+)/.*"; then - WWW_SERVER=`echo "$WWW_URI" | sed -r -e 's@^http(|s)://([^/]+)/.*@\2@'` - fi - URI_BLOCKLIST='^((?!'$URI_TYPE'.*'$WWW_SERVER'/).).*$' -fi - -if [ -n "$URI_BLOCKLIST" ]; then - URI_BLOCKLIST="-b $URI_BLOCKLIST" -fi - if [ -n "${RESOLUTION}" ]; then if type -p xrandr 1>/dev/null; then xrandr -d :0 --output "$(echo $currentOutput)" --mode $RESOLUTION -- cgit v1.2.3