The Un-Official Proxomitron Forum
Convert Proxomitron Filters to Glimmerblocker - Printable Version

+- The Un-Official Proxomitron Forum (https://www.prxbx.com/forums)
+-- Forum: Proxomitron Filters (/forumdisplay.php?fid=38)
+--- Forum: Filter Help/Request (/forumdisplay.php?fid=31)
+--- Thread: Convert Proxomitron Filters to Glimmerblocker (/showthread.php?tid=1615)



Convert Proxomitron Filters to Glimmerblocker - Khaine - May. 14, 2010 11:34 AM

Hi,

I'm looking to convert proxomitron filters to work with GlimmerBlocker however I don't have much experience writing proxomitron filters and I was hoping that I could get some assistance with this task.

GlimmerBlocker uses xml to describe its rules like so

Quote:<?xml version="1.0" encoding="UTF-8"?>
<glimmerblocker-rules>
<rule priority="2" host="img169.imagevenue.com" host-type="is" path="/img.php" path-type="is" query="image=" query-type="contains" type="modify" whitelist="1">
<comments><![CDATA[Skip "TOS" dialog.]]></comments>
<transform language="js" version="1" content-type="html"><![CDATA[replace(/checkSurfBegin\(\);/g, ";");]]></transform>
</rule>
<rule priority="2" host="interfacelift.com" host-type="is" path="/inc_NEW/style.css" path-type="is" type="modify" whitelist="1">
<comments><![CDATA[Hide ads]]></comments>
<transform language="js" version="1" content-type="css"><![CDATA[t += "\n/* GlimmerBlocker: */\n" +
"div.ad\n" + // ads are inline, and not loaded using JS.
"{ display: none; }\n";]]></transform>
</rule>
</glimmerblocker-rules>

I hope to create a mapping between Proxomitron actions and GlimmerBlocker so I can write a converter program. Any assistance would be greatly appreciated