ladybird icon indicating copy to clipboard operation
ladybird copied to clipboard

Inspector: Store as global Variable

Open chaseWillden opened this issue 1 year ago • 3 comments

Adds the ability to right click any DOM node and store it as a global variable for console usage. I personally use this all the time in the other browsers.

Screenshot 2024-09-30 at 9 48 29 PM Screenshot 2024-09-30 at 9 49 34 PM

chaseWillden avatar Oct 01 '24 03:10 chaseWillden

How about defining $0 alias? This automatically points to the selected DOM element in Chrome/Safari console.

warpdesign avatar Oct 01 '24 10:10 warpdesign

How about defining $0 alias? This automatically points to the selected DOM element in Chrome/Safari console.

We actually have that implemented but it's currently broken. It's impossible to add a test for so it kept rotting. 😢

AtkinsSJ avatar Oct 01 '24 10:10 AtkinsSJ

How about defining $0 alias? This automatically points to the selected DOM element in Chrome/Safari console.

We actually have that implemented but it's currently broken. It's impossible to add a test for so it kept rotting. 😢

Just want to understand next steps for PRs like this one. Is it recommended to create a PR and wait till someone merges? Do I need to reach out to the owner of this area? What's the normal process for this type of stuff?

chaseWillden avatar Oct 01 '24 16:10 chaseWillden