Post Reply 
GM_function (+example) - Run Greasemonkey script on ALL browser with Privoxy
Feb. 29, 2016, 02:24 PM (This post was last modified: Feb. 29, 2016 02:29 PM by cattleyavns.)
Post: #8
RE: GM_function (+example) - Run Greasemonkey script on ALL browser with Privoxy
(Feb. 28, 2016 10:10 PM)kik0s Wrote:  hey guys,

is it possible that adding .js files with privoxy does break some sites? i am using safari on os x and sometimes the sites are a bit different or the browser does not load the full site?!

I don't think .js file can break websites unless it causes connection problem, for example it redownload .js file but the server that serve that .js file is overloaded. You can fix this problem easily by forcing web browser store .js file in disk/memory but never redownload it.

This filter, BetterCache:

Code:
SERVER-HEADER-FILTER: bettercache
#Remove Cache-Control header
s†^Cache-Control:.*††i
#Re-Add Cache-Control header, but max-age=7777777,s-maxage=7777777 will make web browser cache contents forever
s†^HTTP.*†$0\r\nCache-Control: no-transform,public,max-age=7777777,s-maxage=7777777†i

Very easy to use, just:

Code:
{+server-header-filter{bettercache}}
.greasyfork.org/.*?\.user.js$
.userscripts-mirror.org/.*?\.js$
Add Thank You Quote this message in a reply
[-] The following 1 user says Thank You to cattleyavns for this post:
Faxopita
Post Reply 


Messages In This Thread
RE: GM_function (+example) - Run Greasemonkey script on ALL browser with Privoxy - cattleyavns - Feb. 29, 2016 02:24 PM

Forum Jump: