<< Previous Topic | Next Topic >>Return to Index  

Can an "include file" system work?

August 16 2006 at 4:11 PM
No score for this post
Jeff Rife  (no login)

 
I'm not familiar enough with the rules for .PAC files, but is there a way to have no-ads.pac include another file that stores local rules?

This way, we can just download a new version every month or so, and eventually get around to checking if our local rules have been included in the distribution.

 
Scoring disabled. You must be logged in to score posts.Respond to this message   
AuthorReply
Anonymous
(Login rknobbe)

Re: Can an "include file" system work?

No score for this post
April 2 2007, 3:52 PM 

If you're hosting the .pac file on a web server which allows server-side includes you can do this.


//
// Whitelist section from InvisiBill
//
// Add sites here that should never be matched for ads.
//
if (0
// WHITELIST
<!--#include virtual="whitelist.js" -->
// To add whitelist domains, simple add a line such as:
// || dnsDomainIs(host, "schooner.com")
// or for a single host
// || (host == "some-host-name")


I use this to maintain a dynamic whitelist and blacklist that I written have bookmarklets for, in conjunction with the noproxy shell script. I can post if there is interest.

 
Scoring disabled. You must be logged in to score posts.Respond to this message   
 
  << Previous Topic | Next Topic >>Return to Index  
Create your own forum at Network54
 Copyright © 1999-2014 Network54. All rights reserved.   Terms of Use   Privacy Statement