fix "modifer" -> "modifier" typo everywhere

This commit is contained in:
Kevin Pham
2023-12-03 17:04:30 -06:00
parent 117ded5653
commit 6c0721dcb8
67 changed files with 73 additions and 77 deletions

View File

@@ -42,9 +42,9 @@ applying request and response modifications along the way.
import (
rx "ladder/pkg/proxychain/requestmodifers"
tx "ladder/pkg/proxychain/responsemodifers"
"ladder/pkg/proxychain/responsemodifers/rewriters"
rx "ladder/pkg/proxychain/requestmodifiers"
tx "ladder/pkg/proxychain/responsemodifiers"
"ladder/pkg/proxychain/responsemodifiers/rewriters"
"ladder/internal/proxychain"
)
@@ -134,14 +134,14 @@ type HTTPClient interface {
Post(url, contentType string, body io.Reader) (resp *http.Response, err error)
}
// SetRequestModifications sets the ProxyChain's request modifers
// SetRequestModifications sets the ProxyChain's request modifiers
// the modifier will not fire until ProxyChain.Execute() is run.
func (chain *ProxyChain) SetRequestModifications(mods ...RequestModification) *ProxyChain {
chain.requestModifications = mods
return chain
}
// AddRequestModifications adds more request modifers to the ProxyChain
// AddRequestModifications adds more request modifiers to the ProxyChain
// the modifier will not fire until ProxyChain.Execute() is run.
func (chain *ProxyChain) AddRequestModifications(mods ...RequestModification) *ProxyChain {
chain.requestModifications = append(chain.requestModifications, mods...)
@@ -162,7 +162,7 @@ func (chain *ProxyChain) AddOnceResponseModifications(mods ...ResponseModificati
return chain
}
// AddResponseModifications sets the ProxyChain's response modifers
// AddResponseModifications sets the ProxyChain's response modifiers
// the modifier will not fire until ProxyChain.Execute() is run.
func (chain *ProxyChain) AddResponseModifications(mods ...ResponseModification) *ProxyChain {
chain.responseModifications = mods

View File

@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers
import (
"strings"

View File

@@ -1,8 +1,8 @@
package requestmodifers
package requestmodifiers
import (
"ladder/proxychain"
"ladder/proxychain/requestmodifers/bot"
"ladder/proxychain/requestmodifiers/bot"
)
// MasqueradeAsGoogleBot modifies user agent and x-forwarded for

View File

@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers
import (
"regexp"

View File

@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers
import (
//"net/http"

View File

@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers
import (
"regexp"

View File

@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers
import (
"net/url"

View File

@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers
import (
"ladder/proxychain"

View File

@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers
import (
"fmt"
@@ -6,7 +6,7 @@ import (
"regexp"
"ladder/proxychain"
tx "ladder/proxychain/responsemodifers"
tx "ladder/proxychain/responsemodifiers"
)
const archivistUrl string = "https://archive.is/latest"

View File

@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers
import (
"net/url"

View File

@@ -1,11 +1,11 @@
package requestmodifers
package requestmodifiers
import (
"net/url"
"regexp"
"ladder/proxychain"
tx "ladder/proxychain/responsemodifers"
tx "ladder/proxychain/responsemodifiers"
)
const waybackUrl string = "https://web.archive.org/web/"

View File

@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers
import (
"context"

View File

@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers
// removed due to using a different TLS spoofing technique

View File

@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers
import (
"ladder/proxychain"

View File

@@ -1,10 +1,10 @@
package requestmodifers
package requestmodifiers
import (
"fmt"
"ladder/proxychain"
tx "ladder/proxychain/responsemodifers"
tx "ladder/proxychain/responsemodifiers"
)
// SpoofReferrer modifies the referrer header.

View File

@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers
import (
"fmt"

View File

@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers
import (
"ladder/proxychain"

View File

@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers
import (
"ladder/proxychain"

View File

@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers
import (
"ladder/proxychain"

View File

@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers
import (
"fmt"

View File

@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers
import (
"ladder/proxychain"

View File

@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers
import (
"ladder/proxychain"

View File

@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers
import (
"ladder/proxychain"

View File

@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers
import (
"ladder/proxychain"

View File

@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers
import (
"ladder/proxychain"

View File

@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers
import (
"ladder/proxychain"

View File

@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers
import (
"fmt"

View File

@@ -1,11 +1,11 @@
package requestmodifers
package requestmodifiers
import (
_ "embed"
"strings"
"ladder/proxychain"
tx "ladder/proxychain/responsemodifers"
tx "ladder/proxychain/responsemodifiers"
)
// https://github.com/faisalman/ua-parser-js/tree/master

View File

@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers
import (
"ladder/proxychain"

View File

@@ -1,4 +1,4 @@
package responsemodifers
package responsemodifiers
import (
"bytes"
@@ -8,7 +8,7 @@ import (
"github.com/markusmobius/go-trafilatura"
"ladder/proxychain"
"ladder/proxychain/responsemodifers/api"
"ladder/proxychain/responsemodifiers/api"
)
// APIContent creates an JSON representation of the article and returns it as an API response.

View File

@@ -1,4 +1,4 @@
package responsemodifers
package responsemodifiers
import (
"encoding/json"
@@ -7,7 +7,7 @@ import (
"net/url"
"testing"
"ladder/proxychain/responsemodifers/api"
"ladder/proxychain/responsemodifiers/api"
)
func TestCreateAPIErrReader(t *testing.T) {

View File

@@ -1,11 +1,11 @@
package responsemodifers
package responsemodifiers
import (
_ "embed"
"strings"
"ladder/proxychain"
"ladder/proxychain/responsemodifers/rewriters"
"ladder/proxychain/responsemodifiers/rewriters"
)
//go:embed block_element_removal.js

View File

@@ -1,4 +1,4 @@
package responsemodifers
package responsemodifiers
import (
"ladder/proxychain"

View File

@@ -1,4 +1,4 @@
package responsemodifers
package responsemodifiers
import (
"ladder/proxychain"

View File

@@ -1,4 +1,4 @@
package responsemodifers
package responsemodifiers
import (
"fmt"

View File

@@ -1,4 +1,4 @@
package responsemodifers
package responsemodifiers
import (
"bytes"

View File

@@ -1,11 +1,11 @@
package responsemodifers
package responsemodifiers
import (
_ "embed"
"strings"
"ladder/proxychain"
"ladder/proxychain/responsemodifers/rewriters"
"ladder/proxychain/responsemodifiers/rewriters"
)
// injectScript modifies HTTP responses

View File

@@ -1,4 +1,4 @@
package responsemodifers
package responsemodifiers
import (
"fmt"

View File

@@ -1,4 +1,4 @@
package responsemodifers
package responsemodifiers
import (
"ladder/proxychain"

View File

@@ -1,4 +1,4 @@
package responsemodifers
package responsemodifiers
import (
_ "embed"
@@ -6,7 +6,7 @@ import (
"strings"
"ladder/proxychain"
"ladder/proxychain/responsemodifers/rewriters"
"ladder/proxychain/responsemodifiers/rewriters"
)
//go:embed patch_dynamic_resource_urls.js

View File

@@ -1,4 +1,4 @@
package responsemodifers
package responsemodifiers
import (
_ "embed"

View File

@@ -1,4 +1,4 @@
package responsemodifers
package responsemodifiers
import (
"embed"
@@ -20,7 +20,7 @@ var rules domainRules
func init() {
err := json.Unmarshal([]byte(mappingJSON), &rules)
if err != nil {
log.Printf("[ERROR]: PatchTrackerScripts: failed to deserialize ladder/proxychain/responsemodifers/vendor/ddg-tracker-surrogates/mapping.json")
log.Printf("[ERROR]: PatchTrackerScripts: failed to deserialize ladder/proxychain/responsemodifiers/vendor/ddg-tracker-surrogates/mapping.json")
}
}

View File

@@ -1,4 +1,4 @@
package responsemodifers
package responsemodifiers
import (
_ "embed"
@@ -6,7 +6,7 @@ import (
"strings"
"ladder/proxychain"
"ladder/proxychain/responsemodifers/rewriters"
"ladder/proxychain/responsemodifiers/rewriters"
)
// RewriteHTMLResourceURLs modifies HTTP responses