summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-06-06 16:43:02 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-06-06 16:43:02 +0200
commit2ef255ced8a965e27d63889fe96914b7c03eb3eb (patch)
treee322b870ec8d293c484eeaf5ec3a49a0afea237c /bin
parentbfa6b5980df11f95cf5f62b891d5755c9056d89e (diff)
downloadsurf-display-2ef255ced8a965e27d63889fe96914b7c03eb3eb.tar.gz
surf-display-2ef255ced8a965e27d63889fe96914b7c03eb3eb.tar.bz2
surf-display-2ef255ced8a965e27d63889fe96914b7c03eb3eb.zip
surf-display: surf does not support filtering natively in the current upstream release. Using a local tinyproxy might be more effective anyway.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/surf-display17
1 files changed, 0 insertions, 17 deletions
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