move all non *.go files to vendor directory
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
|||||||
"ladder/proxychain/responsemodifiers/rewriters"
|
"ladder/proxychain/responsemodifiers/rewriters"
|
||||||
)
|
)
|
||||||
|
|
||||||
//go:embed block_element_removal.js
|
//go:embed vendor/block_element_removal.js
|
||||||
var blockElementRemoval string
|
var blockElementRemoval string
|
||||||
|
|
||||||
// BlockElementRemoval prevents paywall javascript from removing a
|
// BlockElementRemoval prevents paywall javascript from removing a
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ import (
|
|||||||
"github.com/markusmobius/go-trafilatura"
|
"github.com/markusmobius/go-trafilatura"
|
||||||
)
|
)
|
||||||
|
|
||||||
//go:embed generate_readable_outline.html
|
//go:embed vendor/generate_readable_outline.html
|
||||||
var templateFS embed.FS
|
var templateFS embed.FS
|
||||||
|
|
||||||
// GenerateReadableOutline creates an reader-friendly distilled representation of the article.
|
// GenerateReadableOutline creates an reader-friendly distilled representation of the article.
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
"ladder/proxychain/responsemodifiers/rewriters"
|
"ladder/proxychain/responsemodifiers/rewriters"
|
||||||
)
|
)
|
||||||
|
|
||||||
//go:embed patch_dynamic_resource_urls.js
|
//go:embed vendor/patch_dynamic_resource_urls.js
|
||||||
var patchDynamicResourceURLsScript string
|
var patchDynamicResourceURLsScript string
|
||||||
|
|
||||||
// PatchDynamicResourceURLs patches the javascript runtime to rewrite URLs client-side.
|
// PatchDynamicResourceURLs patches the javascript runtime to rewrite URLs client-side.
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"ladder/proxychain"
|
"ladder/proxychain"
|
||||||
)
|
)
|
||||||
|
|
||||||
//go:embed patch_google_analytics.js
|
//go:embed vendor/patch_google_analytics.js
|
||||||
var gaPatch string
|
var gaPatch string
|
||||||
|
|
||||||
// PatchGoogleAnalytics replaces any request to google analytics with a no-op stub function.
|
// PatchGoogleAnalytics replaces any request to google analytics with a no-op stub function.
|
||||||
|
|||||||
Reference in New Issue
Block a user