#65 use full URL in package line

This commit is contained in:
ladddder
2023-12-08 09:26:26 +01:00
parent 8e6a6aae09
commit 7661c66250
58 changed files with 104 additions and 86 deletions

View File

@@ -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.

View File

@@ -7,7 +7,7 @@ import (
"net/url"
"testing"
"ladder/proxychain/responsemodifiers/api"
"github.com/everywall/ladder/proxychain/responsemodifiers/api"
)
func TestCreateAPIErrReader(t *testing.T) {

View File

@@ -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

View File

@@ -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.

View File

@@ -1,7 +1,7 @@
package responsemodifiers
import (
"ladder/proxychain"
"github.com/everywall/ladder/proxychain"
)
// BypassCORS modifies response headers to prevent the browser

View File

@@ -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:

View File

@@ -4,7 +4,7 @@ import (
_ "embed"
"strings"
"ladder/proxychain"
"github.com/everywall/ladder/proxychain"
)
// DeleteLocalStorageData deletes localstorage cookies.

View File

@@ -4,7 +4,7 @@ import (
_ "embed"
"strings"
"ladder/proxychain"
"github.com/everywall/ladder/proxychain"
)
// DeleteSessionStorageData deletes localstorage cookies.

View File

@@ -5,7 +5,7 @@ import (
"net/url"
"strings"
"ladder/proxychain"
"github.com/everywall/ladder/proxychain"
)
var forwardBlacklist map[string]bool

View File

@@ -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"

View File

@@ -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

View File

@@ -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

View File

@@ -1,7 +1,7 @@
package responsemodifiers
import (
"ladder/proxychain"
"github.com/everywall/ladder/proxychain"
)
// SetResponseHeader modifies response headers from the upstream server

View File

@@ -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

View File

@@ -7,7 +7,7 @@ import (
"log"
"regexp"
"ladder/proxychain"
"github.com/everywall/ladder/proxychain"
)
//go:embed vendor/ddg-tracker-surrogates/mapping.json

View File

@@ -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