#65 use full URL in package line
This commit is contained in:
@@ -7,8 +7,9 @@ import (
|
||||
|
||||
"github.com/markusmobius/go-trafilatura"
|
||||
|
||||
"ladder/proxychain"
|
||||
"ladder/proxychain/responsemodifiers/api"
|
||||
"github.com/everywall/ladder/proxychain/responsemodifiers/api"
|
||||
|
||||
"github.com/everywall/ladder/proxychain"
|
||||
)
|
||||
|
||||
// APIContent creates an JSON representation of the article and returns it as an API response.
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"net/url"
|
||||
"testing"
|
||||
|
||||
"ladder/proxychain/responsemodifiers/api"
|
||||
"github.com/everywall/ladder/proxychain/responsemodifiers/api"
|
||||
)
|
||||
|
||||
func TestCreateAPIErrReader(t *testing.T) {
|
||||
|
||||
@@ -4,8 +4,9 @@ import (
|
||||
_ "embed"
|
||||
"strings"
|
||||
|
||||
"ladder/proxychain"
|
||||
"ladder/proxychain/responsemodifiers/rewriters"
|
||||
"github.com/everywall/ladder/proxychain/responsemodifiers/rewriters"
|
||||
|
||||
"github.com/everywall/ladder/proxychain"
|
||||
)
|
||||
|
||||
//go:embed vendor/block_element_removal.js
|
||||
|
||||
@@ -5,8 +5,9 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"ladder/proxychain"
|
||||
"ladder/proxychain/responsemodifiers/rewriters"
|
||||
"github.com/everywall/ladder/proxychain/responsemodifiers/rewriters"
|
||||
|
||||
"github.com/everywall/ladder/proxychain"
|
||||
)
|
||||
|
||||
// BlockThirdPartyScripts rewrites HTML and injects JS to block all third party JS from loading.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package responsemodifiers
|
||||
|
||||
import (
|
||||
"ladder/proxychain"
|
||||
"github.com/everywall/ladder/proxychain"
|
||||
)
|
||||
|
||||
// BypassCORS modifies response headers to prevent the browser
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package responsemodifiers
|
||||
|
||||
import (
|
||||
"ladder/proxychain"
|
||||
"github.com/everywall/ladder/proxychain"
|
||||
)
|
||||
|
||||
// TODO: handle edge case where CSP is specified in meta tag:
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
_ "embed"
|
||||
"strings"
|
||||
|
||||
"ladder/proxychain"
|
||||
"github.com/everywall/ladder/proxychain"
|
||||
)
|
||||
|
||||
// DeleteLocalStorageData deletes localstorage cookies.
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
_ "embed"
|
||||
"strings"
|
||||
|
||||
"ladder/proxychain"
|
||||
"github.com/everywall/ladder/proxychain"
|
||||
)
|
||||
|
||||
// DeleteSessionStorageData deletes localstorage cookies.
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"net/url"
|
||||
"strings"
|
||||
|
||||
"ladder/proxychain"
|
||||
"github.com/everywall/ladder/proxychain"
|
||||
)
|
||||
|
||||
var forwardBlacklist map[string]bool
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"net/url"
|
||||
"strings"
|
||||
|
||||
"ladder/proxychain"
|
||||
"github.com/everywall/ladder/proxychain"
|
||||
|
||||
"golang.org/x/net/html"
|
||||
"golang.org/x/net/html/atom"
|
||||
|
||||
@@ -4,8 +4,9 @@ import (
|
||||
_ "embed"
|
||||
"strings"
|
||||
|
||||
"ladder/proxychain"
|
||||
"ladder/proxychain/responsemodifiers/rewriters"
|
||||
"github.com/everywall/ladder/proxychain/responsemodifiers/rewriters"
|
||||
|
||||
"github.com/everywall/ladder/proxychain"
|
||||
)
|
||||
|
||||
// injectScript modifies HTTP responses
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
//"net/http"
|
||||
//http "github.com/Danny-Dasilva/fhttp"
|
||||
|
||||
"ladder/proxychain"
|
||||
"github.com/everywall/ladder/proxychain"
|
||||
)
|
||||
|
||||
// DeleteIncomingCookies prevents ALL cookies from being sent from the proxy server
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package responsemodifiers
|
||||
|
||||
import (
|
||||
"ladder/proxychain"
|
||||
"github.com/everywall/ladder/proxychain"
|
||||
)
|
||||
|
||||
// SetResponseHeader modifies response headers from the upstream server
|
||||
|
||||
@@ -5,8 +5,9 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"ladder/proxychain"
|
||||
"ladder/proxychain/responsemodifiers/rewriters"
|
||||
"github.com/everywall/ladder/proxychain/responsemodifiers/rewriters"
|
||||
|
||||
"github.com/everywall/ladder/proxychain"
|
||||
)
|
||||
|
||||
//go:embed vendor/patch_dynamic_resource_urls.js
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"log"
|
||||
"regexp"
|
||||
|
||||
"ladder/proxychain"
|
||||
"github.com/everywall/ladder/proxychain"
|
||||
)
|
||||
|
||||
//go:embed vendor/ddg-tracker-surrogates/mapping.json
|
||||
|
||||
@@ -5,8 +5,9 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"ladder/proxychain"
|
||||
"ladder/proxychain/responsemodifiers/rewriters"
|
||||
"github.com/everywall/ladder/proxychain/responsemodifiers/rewriters"
|
||||
|
||||
"github.com/everywall/ladder/proxychain"
|
||||
)
|
||||
|
||||
// RewriteHTMLResourceURLs modifies HTTP responses
|
||||
|
||||
Reference in New Issue
Block a user