Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .claude/autodev-state/demo-fidelity-seen
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5f9d9317b0b15af57f7919c732b8bdc7ca20e7839a7670237800844ca90a487c
14 changes: 7 additions & 7 deletions browser.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ import (
"sync"
"time"

"github.com/go-rod/rod/lib/cdp"
"github.com/go-rod/rod/lib/defaults"
"github.com/go-rod/rod/lib/devices"
"github.com/go-rod/rod/lib/launcher"
"github.com/go-rod/rod/lib/proto"
"github.com/go-rod/rod/lib/utils"
"github.com/GoCodeAlone/rod/lib/cdp"
"github.com/GoCodeAlone/rod/lib/defaults"
"github.com/GoCodeAlone/rod/lib/devices"
"github.com/GoCodeAlone/rod/lib/launcher"
"github.com/GoCodeAlone/rod/lib/proto"
"github.com/GoCodeAlone/rod/lib/utils"
"github.com/ysmood/goob"
)

Expand All @@ -32,7 +32,7 @@ var (
// Browser represents the browser.
// It doesn't depends on file system, it should work with remote browser seamlessly.
// To check the env var you can use to quickly enable options from CLI, check here:
// https://pkg.go.dev/github.com/go-rod/rod/lib/defaults
// https://pkg.go.dev/github.com/GoCodeAlone/rod/lib/defaults
type Browser struct {
// BrowserContextID is the id for incognito window
BrowserContextID proto.BrowserBrowserContextID
Expand Down
12 changes: 6 additions & 6 deletions browser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import (
"testing"
"time"

"github.com/go-rod/rod"
"github.com/go-rod/rod/lib/cdp"
"github.com/go-rod/rod/lib/devices"
"github.com/go-rod/rod/lib/launcher"
"github.com/go-rod/rod/lib/proto"
"github.com/go-rod/rod/lib/utils"
"github.com/GoCodeAlone/rod"
"github.com/GoCodeAlone/rod/lib/cdp"
"github.com/GoCodeAlone/rod/lib/devices"
"github.com/GoCodeAlone/rod/lib/launcher"
"github.com/GoCodeAlone/rod/lib/proto"
"github.com/GoCodeAlone/rod/lib/utils"
"github.com/ysmood/got"
"github.com/ysmood/gson"
)
Expand Down
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"time"

"github.com/go-rod/rod/lib/utils"
"github.com/GoCodeAlone/rod/lib/utils"
)

type (
Expand Down
8 changes: 4 additions & 4 deletions dev_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import (
"strings"
"time"

"github.com/go-rod/rod/lib/assets"
"github.com/go-rod/rod/lib/js"
"github.com/go-rod/rod/lib/proto"
"github.com/go-rod/rod/lib/utils"
"github.com/GoCodeAlone/rod/lib/assets"
"github.com/GoCodeAlone/rod/lib/js"
"github.com/GoCodeAlone/rod/lib/proto"
"github.com/GoCodeAlone/rod/lib/utils"
)

// TraceType for logger.
Expand Down
12 changes: 6 additions & 6 deletions dev_helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import (
"testing"
"time"

"github.com/go-rod/rod"
"github.com/go-rod/rod/lib/defaults"
"github.com/go-rod/rod/lib/js"
"github.com/go-rod/rod/lib/launcher"
"github.com/go-rod/rod/lib/proto"
"github.com/go-rod/rod/lib/utils"
"github.com/GoCodeAlone/rod"
"github.com/GoCodeAlone/rod/lib/defaults"
"github.com/GoCodeAlone/rod/lib/js"
"github.com/GoCodeAlone/rod/lib/launcher"
"github.com/GoCodeAlone/rod/lib/proto"
"github.com/GoCodeAlone/rod/lib/utils"
"github.com/ysmood/gson"
)

Expand Down
10 changes: 5 additions & 5 deletions element.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (
"strings"
"time"

"github.com/go-rod/rod/lib/cdp"
"github.com/go-rod/rod/lib/input"
"github.com/go-rod/rod/lib/js"
"github.com/go-rod/rod/lib/proto"
"github.com/go-rod/rod/lib/utils"
"github.com/GoCodeAlone/rod/lib/cdp"
"github.com/GoCodeAlone/rod/lib/input"
"github.com/GoCodeAlone/rod/lib/js"
"github.com/GoCodeAlone/rod/lib/proto"
"github.com/GoCodeAlone/rod/lib/utils"
"github.com/ysmood/gson"
)

Expand Down
14 changes: 7 additions & 7 deletions element_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ import (
"testing"
"time"

"github.com/go-rod/rod"
"github.com/go-rod/rod/lib/cdp"
"github.com/go-rod/rod/lib/devices"
"github.com/go-rod/rod/lib/input"
"github.com/go-rod/rod/lib/launcher"
"github.com/go-rod/rod/lib/proto"
"github.com/go-rod/rod/lib/utils"
"github.com/GoCodeAlone/rod"
"github.com/GoCodeAlone/rod/lib/cdp"
"github.com/GoCodeAlone/rod/lib/devices"
"github.com/GoCodeAlone/rod/lib/input"
"github.com/GoCodeAlone/rod/lib/launcher"
"github.com/GoCodeAlone/rod/lib/proto"
"github.com/GoCodeAlone/rod/lib/utils"
"github.com/ysmood/gson"
)

Expand Down
4 changes: 2 additions & 2 deletions error.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"fmt"

"github.com/go-rod/rod/lib/proto"
"github.com/go-rod/rod/lib/utils"
"github.com/GoCodeAlone/rod/lib/proto"
"github.com/GoCodeAlone/rod/lib/utils"
)

// TryError error.
Expand Down
18 changes: 9 additions & 9 deletions examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import (
"sync"
"time"

"github.com/go-rod/rod"
"github.com/go-rod/rod/lib/cdp"
"github.com/go-rod/rod/lib/input"
"github.com/go-rod/rod/lib/launcher"
"github.com/go-rod/rod/lib/proto"
"github.com/go-rod/rod/lib/utils"
"github.com/GoCodeAlone/rod"
"github.com/GoCodeAlone/rod/lib/cdp"
"github.com/GoCodeAlone/rod/lib/input"
"github.com/GoCodeAlone/rod/lib/launcher"
"github.com/GoCodeAlone/rod/lib/proto"
"github.com/GoCodeAlone/rod/lib/utils"
"github.com/ysmood/gson"
)

Expand Down Expand Up @@ -64,7 +64,7 @@ func Example_basic() {

// Shows how to disable headless mode and debug.
// Rod provides a lot of debug options, you can set them with setter methods or use environment variables.
// Doc for environment variables: https://pkg.go.dev/github.com/go-rod/rod/lib/defaults
// Doc for environment variables: https://pkg.go.dev/github.com/GoCodeAlone/rod/lib/defaults
func Example_disable_headless_to_debug() {
// Headless runs the browser on foreground, you can also use flag "-rod=show"
// Devtools opens the tab in each new tab opened automatically
Expand Down Expand Up @@ -408,7 +408,7 @@ func Example_customize_browser_launch() {
}

// When rod doesn't have a feature that you need. You can easily call the cdp to achieve it.
// List of cdp API: https://github.com/go-rod/rod/tree/main/lib/proto
// List of cdp API: https://github.com/GoCodeAlone/rod/tree/main/lib/proto
func Example_direct_cdp() {
page := rod.New().MustConnect().MustPage()

Expand Down Expand Up @@ -661,7 +661,7 @@ func Example_load_extension() {
Set("load-extension", extPath).
// Headless mode doesn't support extension yet.
// Reason: https://bugs.chromium.org/p/chromium/issues/detail?id=706008#c5
// You can use XVFB to get rid of it: https://github.com/go-rod/rod/blob/main/lib/examples/launch-managed/main.go
// You can use XVFB to get rid of it: https://github.com/GoCodeAlone/rod/blob/main/lib/examples/launch-managed/main.go
Headless(false).
MustLaunch()

Expand Down
6 changes: 3 additions & 3 deletions fixtures/gen-fonts/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"fmt"
"log"

"github.com/go-rod/rod"
"github.com/go-rod/rod/lib/launcher"
"github.com/go-rod/rod/lib/utils"
"github.com/GoCodeAlone/rod"
"github.com/GoCodeAlone/rod/lib/launcher"
"github.com/GoCodeAlone/rod/lib/utils"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/go-rod/rod
module github.com/GoCodeAlone/rod

go 1.21
go 1.26.3

Comment on lines +1 to 4
require (
github.com/ysmood/fetchup v0.2.3
Expand Down
9 changes: 2 additions & 7 deletions go.work
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
go 1.22
go 1.26.3

use (
.
./lib/examples/custom-websocket
./lib/examples/e2e-testing
./lib/utils/check-issue
)
use .
Comment on lines +1 to +3
4 changes: 0 additions & 4 deletions go.work.sum

This file was deleted.

4 changes: 2 additions & 2 deletions hijack.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"regexp"
"strings"

"github.com/go-rod/rod/lib/proto"
"github.com/go-rod/rod/lib/utils"
"github.com/GoCodeAlone/rod/lib/proto"
"github.com/GoCodeAlone/rod/lib/utils"
"github.com/ysmood/gson"
)

Expand Down
6 changes: 3 additions & 3 deletions hijack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"testing"
"time"

"github.com/go-rod/rod"
"github.com/go-rod/rod/lib/proto"
"github.com/go-rod/rod/lib/utils"
"github.com/GoCodeAlone/rod"
"github.com/GoCodeAlone/rod/lib/proto"
"github.com/GoCodeAlone/rod/lib/utils"
"github.com/ysmood/gson"
)

Expand Down
6 changes: 3 additions & 3 deletions input.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"fmt"
"sync"

"github.com/go-rod/rod/lib/input"
"github.com/go-rod/rod/lib/proto"
"github.com/go-rod/rod/lib/utils"
"github.com/GoCodeAlone/rod/lib/input"
"github.com/GoCodeAlone/rod/lib/proto"
"github.com/GoCodeAlone/rod/lib/utils"
"github.com/ysmood/gson"
)

Expand Down
8 changes: 4 additions & 4 deletions input_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package rod_test
import (
"testing"

"github.com/go-rod/rod/lib/devices"
"github.com/go-rod/rod/lib/input"
"github.com/go-rod/rod/lib/proto"
"github.com/go-rod/rod/lib/utils"
"github.com/GoCodeAlone/rod/lib/devices"
"github.com/GoCodeAlone/rod/lib/input"
"github.com/GoCodeAlone/rod/lib/proto"
"github.com/GoCodeAlone/rod/lib/utils"
)

func TestKeyActions(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion lib/assets/generate/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package main
import (
"path/filepath"

"github.com/go-rod/rod/lib/utils"
"github.com/GoCodeAlone/rod/lib/utils"
)

var slash = filepath.FromSlash
Expand Down
6 changes: 3 additions & 3 deletions lib/benchmark/basic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"path/filepath"
"testing"

"github.com/go-rod/rod"
"github.com/go-rod/rod/lib/launcher"
"github.com/go-rod/rod/lib/utils"
"github.com/GoCodeAlone/rod"
"github.com/GoCodeAlone/rod/lib/launcher"
"github.com/GoCodeAlone/rod/lib/utils"
"github.com/ysmood/got"
)

Expand Down
4 changes: 2 additions & 2 deletions lib/cdp/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"sync"
"sync/atomic"

"github.com/go-rod/rod/lib/defaults"
"github.com/go-rod/rod/lib/utils"
"github.com/GoCodeAlone/rod/lib/defaults"
"github.com/GoCodeAlone/rod/lib/utils"
)

// Request to send to browser.
Expand Down
10 changes: 5 additions & 5 deletions lib/cdp/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import (
"testing"
"time"

"github.com/go-rod/rod"
"github.com/go-rod/rod/lib/cdp"
"github.com/go-rod/rod/lib/defaults"
"github.com/go-rod/rod/lib/launcher"
"github.com/go-rod/rod/lib/utils"
"github.com/GoCodeAlone/rod"
"github.com/GoCodeAlone/rod/lib/cdp"
"github.com/GoCodeAlone/rod/lib/defaults"
"github.com/GoCodeAlone/rod/lib/launcher"
"github.com/GoCodeAlone/rod/lib/utils"
"github.com/ysmood/got"
"github.com/ysmood/gotrace"
"github.com/ysmood/gson"
Expand Down
8 changes: 4 additions & 4 deletions lib/cdp/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"context"
"fmt"

"github.com/go-rod/rod/lib/cdp"
"github.com/go-rod/rod/lib/launcher"
"github.com/go-rod/rod/lib/proto"
"github.com/go-rod/rod/lib/utils"
"github.com/GoCodeAlone/rod/lib/cdp"
"github.com/GoCodeAlone/rod/lib/launcher"
"github.com/GoCodeAlone/rod/lib/proto"
"github.com/GoCodeAlone/rod/lib/utils"
"github.com/ysmood/gson"
)

Expand Down
2 changes: 1 addition & 1 deletion lib/cdp/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cdp
import (
"fmt"

"github.com/go-rod/rod/lib/utils"
"github.com/GoCodeAlone/rod/lib/utils"
)

func (req Request) String() string {
Expand Down
2 changes: 1 addition & 1 deletion lib/cdp/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net"
"net/http"

"github.com/go-rod/rod/lib/utils"
"github.com/GoCodeAlone/rod/lib/utils"
)

// Dialer interface for WebSocket connection.
Expand Down
6 changes: 3 additions & 3 deletions lib/cdp/websocket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"sync"
"testing"

"github.com/go-rod/rod/lib/cdp"
"github.com/go-rod/rod/lib/launcher"
"github.com/go-rod/rod/lib/utils"
"github.com/GoCodeAlone/rod/lib/cdp"
"github.com/GoCodeAlone/rod/lib/launcher"
"github.com/GoCodeAlone/rod/lib/utils"
"github.com/ysmood/got"
"github.com/ysmood/gson"
)
Expand Down
2 changes: 1 addition & 1 deletion lib/defaults/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"strings"
"time"

"github.com/go-rod/rod/lib/utils"
"github.com/GoCodeAlone/rod/lib/utils"
)

// Trace is the default of rod.Browser.Trace .
Expand Down
2 changes: 1 addition & 1 deletion lib/devices/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
package devices

import (
"github.com/go-rod/rod/lib/proto"
"github.com/GoCodeAlone/rod/lib/proto"
"github.com/ysmood/gson"
)

Expand Down
2 changes: 1 addition & 1 deletion lib/devices/generate/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"path/filepath"
"strings"

"github.com/go-rod/rod/lib/utils"
"github.com/GoCodeAlone/rod/lib/utils"
"github.com/ysmood/gson"
)

Expand Down
Loading