Return to Index  

Re: Can an "include file" system work?

April 2 2007 at 3:52 PM
No score for this post
  (Login rknobbe)


Response to Can an "include file" system work?

 

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   
Create your own forum at Network54
 Copyright © 1999-2009 Network54. All rights reserved.   Terms of Use   Privacy Statement