browser

package
v0.0.0-...-23de231 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2026 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package browser loads a page the way a first-time visitor's browser does, in a headless Chrome with an empty profile, and reports the cookies the browser holds afterwards: every domain's, as nothing was clicked, so nothing was consented to.

Index

Constants

View Source
const Wait = 5 * time.Second

Wait is how long a page gets after its load event, for tags that fire late (a tag manager's timers).

Variables

This section is empty.

Functions

func Visit

func Visit(ctx context.Context, u string) ([]audit.Cookie, error)

Visit loads u in a new headless Chrome with a throwaway profile and returns every cookie the browser holds Wait after the page loaded. Chrome is found where chromedp looks for it; when there's none, that's the error.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL