![]() |
|
Filter response content not work! - Printable Version +- The Un-Official Proxomitron Forum (https://www.prxbx.com/forums) +-- Forum: Forum Related (/forumdisplay.php?fid=37) +--- Forum: Privoxy (/forumdisplay.php?fid=49) +--- Thread: Filter response content not work! (/showthread.php?tid=2340) |
Filter response content not work! - bitov27 - Aug. 18, 2018 10:33 AM Hi! I want to modify html response using Privoxy. I decide append <h2> tag with text to <body> tag of response html. I add filter to file default.filter FILTER:html replacements .*?(<\s+body.*?>).*?/$1<h2>My content here!</h2> And add to file default.action: # Content filter everything {+filter{crude-parental}} /.* But it don't work on any site (I check on a lot of http NOt https sites)! Where am I wrong?Can anybody help me!Thanks! RE: Filter response content not work! - referrer - Aug. 19, 2018 08:49 AM http://config.privoxy.org/user-manual/filter-file.html#FILTER-FILE-TUT FILTER:html replacements s|<body>|$0<h2>My content here!</h2>| action: {+filter{html}} / |