Skip to content

Instantly share code, notes, and snippets.

@h4rm0n1c
Last active December 21, 2015 21:08
Show Gist options
  • Save h4rm0n1c/6365740 to your computer and use it in GitHub Desktop.
Save h4rm0n1c/6365740 to your computer and use it in GitHub Desktop.
Just some cool privoxy stuff I hacked together, some are useful, others are just meant to annoy end users.
# Redirect bing search to google, fuck IE's default search!
{+redirect{s@^http://[^/]*/search\?q=([^&]*).*@http://google.com/search?q=$1@}}
.bing.com/search
#redirect msn search to google, once again, fuck IE's default search!
{+redirect{s@^http://[^/]*/results\.aspx\?q=([^&]*).*@http://google.com/search?q=$1@}}
search.msn.com//results\.aspx\?q=
# Redirect search requests on www.google.com to the same URL with "&safe=active" appended
{+redirect{s@$@&safe=active@}}
.google.com/s(earch)?\?
# Make an exception for the URLs that already have it at the end to prevent redirection loops.
{-redirect}
.google.com/s(earch)?\?.*&safe=active$
#The useless but nonetheless hilarious stuff starts here, so far this will flip all pages completely upside down for most browsers.
#The above stuff has been tested, anything below this line has not been tested yet, it may have bugs.
#put me in a filter file
FILTER: upsidedowncss Insert CSS for flipping the page upside down,
s|<body|<style type="text/css">body {filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2); ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)"; -moz-transform: rotate(-180deg); -o-transform: rotate(-180deg); -webkit-transform: rotate(-180deg); position: absolute; }</style><body|
#put me in an action file
{ +filter{upsidedowncss} }
/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment