Post Reply 
Something like “decentraleyes” for Privoxy…
Jan. 16, 2017, 01:02 PM (This post was last modified: Jan. 17, 2017 12:22 PM by Faxopita.)
Post: #6
RE: Something like “decentraleyes” for Privoxy…
(Jan. 14, 2017 11:48 PM)kik0s Wrote:  @faxtopia so i can use that commonJS file for every site?! why is it always the same?

CommonJS is a folder that contains most common used libraries. Privoxy will query the corresponding local versions—inside folder CommonJS—to the remote ones. Web pages will load faster.


If you are not inclined to enable your local web server…

You can copy the content of CommonJS folder to…
Code:
/usr/local/share/doc/privoxy/user-manual/

-–—
I tried copying the folder CommonJS itself, but Privoxy does not, for example, allow access to…
Code:
https://config.privoxy.org/user-manual/CommonJS/angular.js

It doesn't like the folder CommonJS in-between… Banging Head
—–-

Then, you can replace…
Code:
http://localhost/~Your_Path_to/CommonJS/$2.js
by…
Code:
https://config.privoxy.org/user-manual/$2.js
in the redirect action.

As an example, you can access angular.js by typing
Code:
https://config.privoxy.org/user-manual/angular.js

Notes:
  1. I suggest you update the libraries once in a while… A bit tedious, but with a small script it is feasible…
  2. If you upgrade Privoxy, be sure to backup your changes, since folder user-manual will likely be overwritten.
Add Thank You Quote this message in a reply
[-] The following 2 users say Thank You to Faxopita for this post:
cattleyavns, kik0s
Post Reply 


Messages In This Thread
RE: Something like “decentraleyes” for Privoxy… - Faxopita - Jan. 16, 2017 01:02 PM

Forum Jump: