Comments (3)
func Example () {
page := browser.Page("")
proto.PageAddScriptToEvaluateOnNewDocument{
Source: `console.log("ok")`
}.Call(page)
page.Navigate("https://github.com")
}
from rod.
@pu369 your code itself is not valid js, you'd better check the error output and fix your syntax first. The code below works fine for me.
page.Eval(`() => Object.defineProperties(navigator, {
webdriver: {
get: () => undefined
}
})`)
from rod.
@ysmood thank you so much.
from rod.
Related Issues (20)
- Ignoring the error "element's pointer-events is none" HOT 2
- 进程启动被杀后 无法退出 导致锁死 HOT 3
- Upload file on Managed Launcher? HOT 2
- Does rod support separate sessions or incognito mode? HOT 2
- if err == nil 后的逻辑不会执行 HOT 1
- Google Login not working when browser is started with Rod HOT 11
- Screenshot in Emulate error HOT 3
- Notice! ! ! Can I modify Lanucher's proxy here again? HOT 3
- Some website load fail without -rod=show HOT 3
- Get all javascript or css resources of the same-origin HOT 3
- page.MustExpose not work in launcher.NewAppMode() HOT 2
- Is it correct for me to call stealth like this? I want the entire browser to pass detection effectively, not a single page. Code: HOT 2
- Resources content is nil HOT 2
- rod resets settings of a chrome profile HOT 2
- Chinese garbled code HOT 2
- 浏览器的角标怎么设置? HOT 2
- 并发page pool, context deadline exceeded,page为什么没有释放? HOT 2
- Add support for Linux Arm? for downloading etc. HOT 4
- Add an initEvents public function with a Browser structure HOT 5
- page.Navigate(url), the page is like blocked HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rod.