Merge pull request #61 from everywall/proxy_v2/cleanup-main
cleanup main
This commit is contained in:
@@ -3,6 +3,7 @@ package ruleset_v2
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
|
||||
"gopkg.in/yaml.v3"
|
||||
"ladder/proxychain"
|
||||
)
|
||||
@@ -84,7 +85,6 @@ func (rule *Rule) MarshalJSON() ([]byte, error) {
|
||||
|
||||
// implement type yaml marshaller
|
||||
func (rule *Rule) UnmarshalYAML(unmarshal func(interface{}) error) error {
|
||||
|
||||
type Aux struct {
|
||||
Domains []string `yaml:"domains"`
|
||||
RequestModifications []_rqm `yaml:"requestmodifications"`
|
||||
@@ -122,7 +122,6 @@ func (rule *Rule) UnmarshalYAML(unmarshal func(interface{}) error) error {
|
||||
}
|
||||
|
||||
func (rule *Rule) MarshalYAML() (interface{}, error) {
|
||||
|
||||
type Aux struct {
|
||||
Domains []string `yaml:"domains"`
|
||||
RequestModifications []_rqm `yaml:"requestmodifications"`
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
package ruleset_v2
|
||||
|
||||
// DO NOT EDIT THIS FILE. It is automatically generated by ladder/proxychain/codegen/codegen.go
|
||||
// The purpose of this is serialization of rulesets from JSON or YAML into functional options suitable
|
||||
// for use in proxychains.
|
||||
@@ -16,168 +16,167 @@ var rqmModMap map[string]RequestModifierFactory
|
||||
func init() {
|
||||
rqmModMap = make(map[string]RequestModifierFactory)
|
||||
|
||||
rqmModMap["ForwardRequestHeaders"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.ForwardRequestHeaders()
|
||||
}
|
||||
rqmModMap["ForwardRequestHeaders"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.ForwardRequestHeaders()
|
||||
}
|
||||
|
||||
rqmModMap["MasqueradeAsGoogleBot"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.MasqueradeAsGoogleBot()
|
||||
}
|
||||
rqmModMap["MasqueradeAsGoogleBot"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.MasqueradeAsGoogleBot()
|
||||
}
|
||||
|
||||
rqmModMap["MasqueradeAsBingBot"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.MasqueradeAsBingBot()
|
||||
}
|
||||
rqmModMap["MasqueradeAsBingBot"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.MasqueradeAsBingBot()
|
||||
}
|
||||
|
||||
rqmModMap["MasqueradeAsWaybackMachineBot"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.MasqueradeAsWaybackMachineBot()
|
||||
}
|
||||
rqmModMap["MasqueradeAsWaybackMachineBot"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.MasqueradeAsWaybackMachineBot()
|
||||
}
|
||||
|
||||
rqmModMap["MasqueradeAsFacebookBot"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.MasqueradeAsFacebookBot()
|
||||
}
|
||||
rqmModMap["MasqueradeAsFacebookBot"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.MasqueradeAsFacebookBot()
|
||||
}
|
||||
|
||||
rqmModMap["MasqueradeAsYandexBot"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.MasqueradeAsYandexBot()
|
||||
}
|
||||
rqmModMap["MasqueradeAsYandexBot"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.MasqueradeAsYandexBot()
|
||||
}
|
||||
|
||||
rqmModMap["MasqueradeAsBaiduBot"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.MasqueradeAsBaiduBot()
|
||||
}
|
||||
rqmModMap["MasqueradeAsBaiduBot"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.MasqueradeAsBaiduBot()
|
||||
}
|
||||
|
||||
rqmModMap["MasqueradeAsDuckDuckBot"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.MasqueradeAsDuckDuckBot()
|
||||
}
|
||||
rqmModMap["MasqueradeAsDuckDuckBot"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.MasqueradeAsDuckDuckBot()
|
||||
}
|
||||
|
||||
rqmModMap["MasqueradeAsYahooBot"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.MasqueradeAsYahooBot()
|
||||
}
|
||||
rqmModMap["MasqueradeAsYahooBot"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.MasqueradeAsYahooBot()
|
||||
}
|
||||
|
||||
rqmModMap["ModifyDomainWithRegex"] = func(params ...string) proxychain.RequestModification {
|
||||
return rx.ModifyDomainWithRegex(params[0], params[1])
|
||||
}
|
||||
rqmModMap["ModifyDomainWithRegex"] = func(params ...string) proxychain.RequestModification {
|
||||
return rx.ModifyDomainWithRegex(params[0], params[1])
|
||||
}
|
||||
|
||||
rqmModMap["SetOutgoingCookie"] = func(params ...string) proxychain.RequestModification {
|
||||
return rx.SetOutgoingCookie(params[0], params[1])
|
||||
}
|
||||
rqmModMap["SetOutgoingCookie"] = func(params ...string) proxychain.RequestModification {
|
||||
return rx.SetOutgoingCookie(params[0], params[1])
|
||||
}
|
||||
|
||||
rqmModMap["SetOutgoingCookies"] = func(params ...string) proxychain.RequestModification {
|
||||
return rx.SetOutgoingCookies(params[0])
|
||||
}
|
||||
rqmModMap["SetOutgoingCookies"] = func(params ...string) proxychain.RequestModification {
|
||||
return rx.SetOutgoingCookies(params[0])
|
||||
}
|
||||
|
||||
rqmModMap["DeleteOutgoingCookie"] = func(params ...string) proxychain.RequestModification {
|
||||
return rx.DeleteOutgoingCookie(params[0])
|
||||
}
|
||||
rqmModMap["DeleteOutgoingCookie"] = func(params ...string) proxychain.RequestModification {
|
||||
return rx.DeleteOutgoingCookie(params[0])
|
||||
}
|
||||
|
||||
rqmModMap["DeleteOutgoingCookies"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.DeleteOutgoingCookies()
|
||||
}
|
||||
rqmModMap["DeleteOutgoingCookies"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.DeleteOutgoingCookies()
|
||||
}
|
||||
|
||||
rqmModMap["DeleteOutgoingCookiesExcept"] = func(params ...string) proxychain.RequestModification {
|
||||
return rx.DeleteOutgoingCookiesExcept(params[0])
|
||||
}
|
||||
rqmModMap["DeleteOutgoingCookiesExcept"] = func(params ...string) proxychain.RequestModification {
|
||||
return rx.DeleteOutgoingCookiesExcept(params[0])
|
||||
}
|
||||
|
||||
rqmModMap["ModifyPathWithRegex"] = func(params ...string) proxychain.RequestModification {
|
||||
return rx.ModifyPathWithRegex(params[0], params[1])
|
||||
}
|
||||
rqmModMap["ModifyPathWithRegex"] = func(params ...string) proxychain.RequestModification {
|
||||
return rx.ModifyPathWithRegex(params[0], params[1])
|
||||
}
|
||||
|
||||
rqmModMap["ModifyQueryParams"] = func(params ...string) proxychain.RequestModification {
|
||||
return rx.ModifyQueryParams(params[0], params[1])
|
||||
}
|
||||
rqmModMap["ModifyQueryParams"] = func(params ...string) proxychain.RequestModification {
|
||||
return rx.ModifyQueryParams(params[0], params[1])
|
||||
}
|
||||
|
||||
rqmModMap["SetRequestHeader"] = func(params ...string) proxychain.RequestModification {
|
||||
return rx.SetRequestHeader(params[0], params[1])
|
||||
}
|
||||
rqmModMap["SetRequestHeader"] = func(params ...string) proxychain.RequestModification {
|
||||
return rx.SetRequestHeader(params[0], params[1])
|
||||
}
|
||||
|
||||
rqmModMap["DeleteRequestHeader"] = func(params ...string) proxychain.RequestModification {
|
||||
return rx.DeleteRequestHeader(params[0])
|
||||
}
|
||||
rqmModMap["DeleteRequestHeader"] = func(params ...string) proxychain.RequestModification {
|
||||
return rx.DeleteRequestHeader(params[0])
|
||||
}
|
||||
|
||||
rqmModMap["RequestArchiveIs"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.RequestArchiveIs()
|
||||
}
|
||||
rqmModMap["RequestArchiveIs"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.RequestArchiveIs()
|
||||
}
|
||||
|
||||
rqmModMap["RequestGoogleCache"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.RequestGoogleCache()
|
||||
}
|
||||
rqmModMap["RequestGoogleCache"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.RequestGoogleCache()
|
||||
}
|
||||
|
||||
rqmModMap["RequestWaybackMachine"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.RequestWaybackMachine()
|
||||
}
|
||||
rqmModMap["RequestWaybackMachine"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.RequestWaybackMachine()
|
||||
}
|
||||
|
||||
rqmModMap["ResolveWithGoogleDoH"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.ResolveWithGoogleDoH()
|
||||
}
|
||||
rqmModMap["ResolveWithGoogleDoH"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.ResolveWithGoogleDoH()
|
||||
}
|
||||
|
||||
rqmModMap["SpoofOrigin"] = func(params ...string) proxychain.RequestModification {
|
||||
return rx.SpoofOrigin(params[0])
|
||||
}
|
||||
rqmModMap["SpoofOrigin"] = func(params ...string) proxychain.RequestModification {
|
||||
return rx.SpoofOrigin(params[0])
|
||||
}
|
||||
|
||||
rqmModMap["HideOrigin"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.HideOrigin()
|
||||
}
|
||||
rqmModMap["HideOrigin"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.HideOrigin()
|
||||
}
|
||||
|
||||
rqmModMap["SpoofReferrer"] = func(params ...string) proxychain.RequestModification {
|
||||
return rx.SpoofReferrer(params[0])
|
||||
}
|
||||
rqmModMap["SpoofReferrer"] = func(params ...string) proxychain.RequestModification {
|
||||
return rx.SpoofReferrer(params[0])
|
||||
}
|
||||
|
||||
rqmModMap["HideReferrer"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.HideReferrer()
|
||||
}
|
||||
rqmModMap["HideReferrer"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.HideReferrer()
|
||||
}
|
||||
|
||||
rqmModMap["SpoofReferrerFromBaiduSearch"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.SpoofReferrerFromBaiduSearch()
|
||||
}
|
||||
rqmModMap["SpoofReferrerFromBaiduSearch"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.SpoofReferrerFromBaiduSearch()
|
||||
}
|
||||
|
||||
rqmModMap["SpoofReferrerFromBingSearch"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.SpoofReferrerFromBingSearch()
|
||||
}
|
||||
rqmModMap["SpoofReferrerFromBingSearch"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.SpoofReferrerFromBingSearch()
|
||||
}
|
||||
|
||||
rqmModMap["SpoofReferrerFromGoogleSearch"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.SpoofReferrerFromGoogleSearch()
|
||||
}
|
||||
rqmModMap["SpoofReferrerFromGoogleSearch"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.SpoofReferrerFromGoogleSearch()
|
||||
}
|
||||
|
||||
rqmModMap["SpoofReferrerFromLinkedInPost"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.SpoofReferrerFromLinkedInPost()
|
||||
}
|
||||
rqmModMap["SpoofReferrerFromLinkedInPost"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.SpoofReferrerFromLinkedInPost()
|
||||
}
|
||||
|
||||
rqmModMap["SpoofReferrerFromNaverSearch"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.SpoofReferrerFromNaverSearch()
|
||||
}
|
||||
rqmModMap["SpoofReferrerFromNaverSearch"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.SpoofReferrerFromNaverSearch()
|
||||
}
|
||||
|
||||
rqmModMap["SpoofReferrerFromPinterestPost"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.SpoofReferrerFromPinterestPost()
|
||||
}
|
||||
rqmModMap["SpoofReferrerFromPinterestPost"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.SpoofReferrerFromPinterestPost()
|
||||
}
|
||||
|
||||
rqmModMap["SpoofReferrerFromQQPost"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.SpoofReferrerFromQQPost()
|
||||
}
|
||||
rqmModMap["SpoofReferrerFromQQPost"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.SpoofReferrerFromQQPost()
|
||||
}
|
||||
|
||||
rqmModMap["SpoofReferrerFromRedditPost"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.SpoofReferrerFromRedditPost()
|
||||
}
|
||||
rqmModMap["SpoofReferrerFromRedditPost"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.SpoofReferrerFromRedditPost()
|
||||
}
|
||||
|
||||
rqmModMap["SpoofReferrerFromTumblrPost"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.SpoofReferrerFromTumblrPost()
|
||||
}
|
||||
rqmModMap["SpoofReferrerFromTumblrPost"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.SpoofReferrerFromTumblrPost()
|
||||
}
|
||||
|
||||
rqmModMap["SpoofReferrerFromTwitterPost"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.SpoofReferrerFromTwitterPost()
|
||||
}
|
||||
rqmModMap["SpoofReferrerFromTwitterPost"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.SpoofReferrerFromTwitterPost()
|
||||
}
|
||||
|
||||
rqmModMap["SpoofReferrerFromVkontaktePost"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.SpoofReferrerFromVkontaktePost()
|
||||
}
|
||||
rqmModMap["SpoofReferrerFromVkontaktePost"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.SpoofReferrerFromVkontaktePost()
|
||||
}
|
||||
|
||||
rqmModMap["SpoofReferrerFromWeiboPost"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.SpoofReferrerFromWeiboPost()
|
||||
}
|
||||
rqmModMap["SpoofReferrerFromWeiboPost"] = func(_ ...string) proxychain.RequestModification {
|
||||
return rx.SpoofReferrerFromWeiboPost()
|
||||
}
|
||||
|
||||
rqmModMap["SpoofUserAgent"] = func(params ...string) proxychain.RequestModification {
|
||||
return rx.SpoofUserAgent(params[0])
|
||||
}
|
||||
rqmModMap["SpoofUserAgent"] = func(params ...string) proxychain.RequestModification {
|
||||
return rx.SpoofUserAgent(params[0])
|
||||
}
|
||||
|
||||
rqmModMap["SpoofXForwardedFor"] = func(params ...string) proxychain.RequestModification {
|
||||
return rx.SpoofXForwardedFor(params[0])
|
||||
}
|
||||
|
||||
}
|
||||
rqmModMap["SpoofXForwardedFor"] = func(params ...string) proxychain.RequestModification {
|
||||
return rx.SpoofXForwardedFor(params[0])
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
package ruleset_v2
|
||||
|
||||
// DO NOT EDIT THIS FILE. It is automatically generated by ladder/proxychain/codegen/codegen.go
|
||||
// The purpose of this is serialization of rulesets from JSON or YAML into functional options suitable
|
||||
// for use in proxychains.
|
||||
@@ -16,84 +16,83 @@ var rsmModMap map[string]ResponseModifierFactory
|
||||
func init() {
|
||||
rsmModMap = make(map[string]ResponseModifierFactory)
|
||||
|
||||
rsmModMap["APIContent"] = func(_ ...string) proxychain.ResponseModification {
|
||||
return tx.APIContent()
|
||||
}
|
||||
rsmModMap["APIContent"] = func(_ ...string) proxychain.ResponseModification {
|
||||
return tx.APIContent()
|
||||
}
|
||||
|
||||
rsmModMap["BlockElementRemoval"] = func(params ...string) proxychain.ResponseModification {
|
||||
return tx.BlockElementRemoval(params[0])
|
||||
}
|
||||
rsmModMap["BlockElementRemoval"] = func(params ...string) proxychain.ResponseModification {
|
||||
return tx.BlockElementRemoval(params[0])
|
||||
}
|
||||
|
||||
rsmModMap["BypassCORS"] = func(_ ...string) proxychain.ResponseModification {
|
||||
return tx.BypassCORS()
|
||||
}
|
||||
rsmModMap["BypassCORS"] = func(_ ...string) proxychain.ResponseModification {
|
||||
return tx.BypassCORS()
|
||||
}
|
||||
|
||||
rsmModMap["BypassContentSecurityPolicy"] = func(_ ...string) proxychain.ResponseModification {
|
||||
return tx.BypassContentSecurityPolicy()
|
||||
}
|
||||
rsmModMap["BypassContentSecurityPolicy"] = func(_ ...string) proxychain.ResponseModification {
|
||||
return tx.BypassContentSecurityPolicy()
|
||||
}
|
||||
|
||||
rsmModMap["SetContentSecurityPolicy"] = func(params ...string) proxychain.ResponseModification {
|
||||
return tx.SetContentSecurityPolicy(params[0])
|
||||
}
|
||||
rsmModMap["SetContentSecurityPolicy"] = func(params ...string) proxychain.ResponseModification {
|
||||
return tx.SetContentSecurityPolicy(params[0])
|
||||
}
|
||||
|
||||
rsmModMap["ForwardResponseHeaders"] = func(_ ...string) proxychain.ResponseModification {
|
||||
return tx.ForwardResponseHeaders()
|
||||
}
|
||||
rsmModMap["ForwardResponseHeaders"] = func(_ ...string) proxychain.ResponseModification {
|
||||
return tx.ForwardResponseHeaders()
|
||||
}
|
||||
|
||||
rsmModMap["GenerateReadableOutline"] = func(_ ...string) proxychain.ResponseModification {
|
||||
return tx.GenerateReadableOutline()
|
||||
}
|
||||
rsmModMap["GenerateReadableOutline"] = func(_ ...string) proxychain.ResponseModification {
|
||||
return tx.GenerateReadableOutline()
|
||||
}
|
||||
|
||||
rsmModMap["InjectScriptBeforeDOMContentLoaded"] = func(params ...string) proxychain.ResponseModification {
|
||||
return tx.InjectScriptBeforeDOMContentLoaded(params[0])
|
||||
}
|
||||
rsmModMap["InjectScriptBeforeDOMContentLoaded"] = func(params ...string) proxychain.ResponseModification {
|
||||
return tx.InjectScriptBeforeDOMContentLoaded(params[0])
|
||||
}
|
||||
|
||||
rsmModMap["InjectScriptAfterDOMContentLoaded"] = func(params ...string) proxychain.ResponseModification {
|
||||
return tx.InjectScriptAfterDOMContentLoaded(params[0])
|
||||
}
|
||||
rsmModMap["InjectScriptAfterDOMContentLoaded"] = func(params ...string) proxychain.ResponseModification {
|
||||
return tx.InjectScriptAfterDOMContentLoaded(params[0])
|
||||
}
|
||||
|
||||
rsmModMap["InjectScriptAfterDOMIdle"] = func(params ...string) proxychain.ResponseModification {
|
||||
return tx.InjectScriptAfterDOMIdle(params[0])
|
||||
}
|
||||
rsmModMap["InjectScriptAfterDOMIdle"] = func(params ...string) proxychain.ResponseModification {
|
||||
return tx.InjectScriptAfterDOMIdle(params[0])
|
||||
}
|
||||
|
||||
rsmModMap["DeleteIncomingCookies"] = func(params ...string) proxychain.ResponseModification {
|
||||
return tx.DeleteIncomingCookies(params[0])
|
||||
}
|
||||
rsmModMap["DeleteIncomingCookies"] = func(params ...string) proxychain.ResponseModification {
|
||||
return tx.DeleteIncomingCookies(params[0])
|
||||
}
|
||||
|
||||
rsmModMap["DeleteIncomingCookiesExcept"] = func(params ...string) proxychain.ResponseModification {
|
||||
return tx.DeleteIncomingCookiesExcept(params[0])
|
||||
}
|
||||
rsmModMap["DeleteIncomingCookiesExcept"] = func(params ...string) proxychain.ResponseModification {
|
||||
return tx.DeleteIncomingCookiesExcept(params[0])
|
||||
}
|
||||
|
||||
rsmModMap["SetIncomingCookies"] = func(params ...string) proxychain.ResponseModification {
|
||||
return tx.SetIncomingCookies(params[0])
|
||||
}
|
||||
rsmModMap["SetIncomingCookies"] = func(params ...string) proxychain.ResponseModification {
|
||||
return tx.SetIncomingCookies(params[0])
|
||||
}
|
||||
|
||||
rsmModMap["SetIncomingCookie"] = func(params ...string) proxychain.ResponseModification {
|
||||
return tx.SetIncomingCookie(params[0], params[1])
|
||||
}
|
||||
rsmModMap["SetIncomingCookie"] = func(params ...string) proxychain.ResponseModification {
|
||||
return tx.SetIncomingCookie(params[0], params[1])
|
||||
}
|
||||
|
||||
rsmModMap["SetResponseHeader"] = func(params ...string) proxychain.ResponseModification {
|
||||
return tx.SetResponseHeader(params[0], params[1])
|
||||
}
|
||||
rsmModMap["SetResponseHeader"] = func(params ...string) proxychain.ResponseModification {
|
||||
return tx.SetResponseHeader(params[0], params[1])
|
||||
}
|
||||
|
||||
rsmModMap["DeleteResponseHeader"] = func(params ...string) proxychain.ResponseModification {
|
||||
return tx.DeleteResponseHeader(params[0])
|
||||
}
|
||||
rsmModMap["DeleteResponseHeader"] = func(params ...string) proxychain.ResponseModification {
|
||||
return tx.DeleteResponseHeader(params[0])
|
||||
}
|
||||
|
||||
rsmModMap["PatchDynamicResourceURLs"] = func(_ ...string) proxychain.ResponseModification {
|
||||
return tx.PatchDynamicResourceURLs()
|
||||
}
|
||||
rsmModMap["PatchDynamicResourceURLs"] = func(_ ...string) proxychain.ResponseModification {
|
||||
return tx.PatchDynamicResourceURLs()
|
||||
}
|
||||
|
||||
rsmModMap["PatchGoogleAnalytics"] = func(_ ...string) proxychain.ResponseModification {
|
||||
return tx.PatchGoogleAnalytics()
|
||||
}
|
||||
rsmModMap["PatchGoogleAnalytics"] = func(_ ...string) proxychain.ResponseModification {
|
||||
return tx.PatchGoogleAnalytics()
|
||||
}
|
||||
|
||||
rsmModMap["PatchTrackerScripts"] = func(_ ...string) proxychain.ResponseModification {
|
||||
return tx.PatchTrackerScripts()
|
||||
}
|
||||
rsmModMap["PatchTrackerScripts"] = func(_ ...string) proxychain.ResponseModification {
|
||||
return tx.PatchTrackerScripts()
|
||||
}
|
||||
|
||||
rsmModMap["RewriteHTMLResourceURLs"] = func(_ ...string) proxychain.ResponseModification {
|
||||
return tx.RewriteHTMLResourceURLs()
|
||||
}
|
||||
|
||||
}
|
||||
rsmModMap["RewriteHTMLResourceURLs"] = func(_ ...string) proxychain.ResponseModification {
|
||||
return tx.RewriteHTMLResourceURLs()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,8 +3,9 @@ package ruleset_v2
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"gopkg.in/yaml.v3"
|
||||
"testing"
|
||||
|
||||
"gopkg.in/yaml.v3"
|
||||
)
|
||||
|
||||
// unmarshalRule is a helper function to unmarshal a Rule from a JSON string.
|
||||
|
||||
Reference in New Issue
Block a user