Skip to content

Commit

Permalink
fix "modifer" -> "modifier" typo everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
deoxykev committed Dec 3, 2023
1 parent 117ded5 commit 6c0721d
Show file tree
Hide file tree
Showing 67 changed files with 73 additions and 77 deletions.
2 changes: 1 addition & 1 deletion .air.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ tmp_dir = "tmp"
poll = false
poll_interval = 0
post_cmd = []
pre_cmd = ["git rev-parse --short HEAD > handlers/VERSION; git rev-parse --short HEAD > cmd/VERSION"]
pre_cmd = ["git submodule update --init --recursive; rev-parse --short HEAD > handlers/VERSION; git rev-parse --short HEAD > cmd/VERSION"]
rerun = false
rerun_delay = 500
send_interrupt = false
Expand Down
10 changes: 5 additions & 5 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[submodule "proxychain/requestmodifers/vendor/ua-parser-js"]
path = proxychain/requestmodifers/vendor/ua-parser-js
url = https://github.com/faisalman/ua-parser-js.git
[submodule "proxychain/responsemodifers/vendor/ddg-tracker-surrogates"]
path = proxychain/responsemodifers/vendor/ddg-tracker-surrogates
[submodule "proxychain/responsemodifiers/vendor/ddg-tracker-surrogates"]
path = proxychain/responsemodifiers/vendor/ddg-tracker-surrogates
url = https://github.com/duckduckgo/tracker-surrogates
[submodule "proxychain/requestmodifiers/vendor/ua-parser-js"]
path = proxychain/requestmodifiers/vendor/ua-parser-js
url = https://github.com/faisalman/ua-parser-js.git
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"ladder/handlers"
"ladder/internal/cli"
"ladder/proxychain/requestmodifers/bot"
"ladder/proxychain/requestmodifiers/bot"

"github.com/akamensky/argparse"
"github.com/gofiber/fiber/v2"
Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module ladder
go 1.21.1

require (
github.com/3th1nk/cidr v0.2.0
github.com/akamensky/argparse v1.4.0
github.com/bogdanfinn/fhttp v0.5.24
github.com/bogdanfinn/tls-client v1.6.1
Expand Down
3 changes: 0 additions & 3 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
github.com/3th1nk/cidr v0.2.0 h1:81jjEknszD8SHPLVTPPk+BZjNVqq1ND2YXLSChl6Lrs=
github.com/3th1nk/cidr v0.2.0/go.mod h1:XsSQnS4rEYyB2veDfnIGgViulFpIITPKtp3f0VxpiLw=
github.com/abadojack/whatlanggo v1.0.1 h1:19N6YogDnf71CTHm3Mp2qhYfkRdyvbgwWdd2EPxJRG4=
github.com/abadojack/whatlanggo v1.0.1/go.mod h1:66WiQbSbJBIlOZMsvbKe5m6pzQovxCH9B/K8tQB2uoc=
github.com/akamensky/argparse v1.4.0 h1:YGzvsTqCvbEZhL8zZu2AiA5nq805NZh75JNj4ajn1xc=
Expand Down Expand Up @@ -84,7 +82,6 @@ github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ
github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals=
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/tam7t/hpkp v0.0.0-20160821193359-2b70b4024ed5 h1:YqAladjX7xpA6BM04leXMWAEjS0mTZ5kUU9KRBriQJc=
Expand Down
4 changes: 2 additions & 2 deletions handlers/api_content.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package handlers

import (
"ladder/proxychain"
rx "ladder/proxychain/requestmodifers"
tx "ladder/proxychain/responsemodifers"
rx "ladder/proxychain/requestmodifiers"
tx "ladder/proxychain/responsemodifiers"

"github.com/gofiber/fiber/v2"
)
Expand Down
4 changes: 2 additions & 2 deletions handlers/outline.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package handlers

import (
"ladder/proxychain"
rx "ladder/proxychain/requestmodifers"
tx "ladder/proxychain/responsemodifers"
rx "ladder/proxychain/requestmodifiers"
tx "ladder/proxychain/responsemodifiers"

"github.com/gofiber/fiber/v2"
)
Expand Down
4 changes: 2 additions & 2 deletions handlers/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package handlers

import (
"ladder/proxychain"
rx "ladder/proxychain/requestmodifers"
tx "ladder/proxychain/responsemodifers"
rx "ladder/proxychain/requestmodifiers"
tx "ladder/proxychain/responsemodifiers"

"github.com/gofiber/fiber/v2"
)
Expand Down
12 changes: 6 additions & 6 deletions proxychain/proxychain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down Expand Up @@ -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...)
Expand All @@ -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
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers

import (
"strings"
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers

import (
"regexp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers

import (
//"net/http"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers

import (
"regexp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers

import (
"net/url"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers

import (
"ladder/proxychain"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package requestmodifers
package requestmodifiers

import (
"fmt"
"net/url"
"regexp"

"ladder/proxychain"
tx "ladder/proxychain/responsemodifers"
tx "ladder/proxychain/responsemodifiers"
)

const archivistUrl string = "https://archive.is/latest"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers

import (
"net/url"
Expand Down
Original file line number Diff line number Diff line change
@@ -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/"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers

// removed due to using a different TLS spoofing technique

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers

import (
"ladder/proxychain"
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers

import (
"fmt"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers

import (
"ladder/proxychain"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers

import (
"ladder/proxychain"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers

import (
"ladder/proxychain"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers

import (
"fmt"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers

import (
"ladder/proxychain"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers

import (
"ladder/proxychain"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers

import (
"ladder/proxychain"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers

import (
"ladder/proxychain"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers

import (
"ladder/proxychain"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers

import (
"ladder/proxychain"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers

import (
"fmt"
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package requestmodifers
package requestmodifiers

import (
"ladder/proxychain"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package responsemodifers
package responsemodifiers

import (
"bytes"
Expand All @@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package responsemodifers
package responsemodifiers

import (
"encoding/json"
Expand All @@ -7,7 +7,7 @@ import (
"net/url"
"testing"

"ladder/proxychain/responsemodifers/api"
"ladder/proxychain/responsemodifiers/api"
)

func TestCreateAPIErrReader(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package responsemodifers
package responsemodifiers

import (
"ladder/proxychain"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package responsemodifers
package responsemodifiers

import (
"ladder/proxychain"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package responsemodifers
package responsemodifiers

import (
"fmt"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package responsemodifers
package responsemodifiers

import (
"bytes"
Expand Down
Loading

0 comments on commit 6c0721d

Please sign in to comment.