Privoxy fix for notarget blank

UFOs, lost socks, discuss whatever you like here.

Moderators: Master_Kale, TNM Team

Post Reply
justanotherfan
Illuminati
Posts: 2285
Joined: Sun Feb 27, 2005 11:28 pm

Privoxy fix for notarget blank

Post by justanotherfan »

I had this figured out on an old privoxy.org install, but I can't find how I did it, so here's my new one.

If you have Privoxy, and you're tired of the Forums link opening in a new tab/window, here's the filter for you. It's taken from the All-Popups filter, but without the Javascript part that breaks all JS-popup based websites. Just paste this into the default.filter somewhere, and enable it in the p.p configuration editor under user.action.


##########################################################
#
# HTMLPopups: Kill HTML link popups
#
##########################################################

s/\starget\s*=\s*(['"]?)_?(blank|new)\1?/ notarget/ig # HTML
Post Reply