Link to chrome:// url from a webpage

Nope, there is no way to do it from a webpage. chrome:// is a privileged origin, and any attempt to open it will result in a redirect to about:blank. Chrome does that to reduce the attack surface: even though just opening those URLs should be harmless, it’s better not to allow websites and external programs … Read more

Why will jQuery not load in Facebook?

The Chrome console does not appear to have access to the content script’s execution context. Wrong, it does. You need to look at the correct place: The previous screencast shows that the Console tab of the Chrome developer tools has two dropdown boxes at the bottom, which can be used to change the execution environment … Read more

Find JavaScript function definition in Chrome

Lets say we’re looking for function named foo: (open Chrome dev-tools), Windows: ctrl + shift + F, or macOS: cmd + optn + F. This opens a window for searching across all scripts. check “Regular expression” checkbox, search for foo\s*=\s*function (searches for foo = function with any number of spaces between those three tokens), press … Read more

View list of all JavaScript variables in Google Chrome Console

Is this the kind of output you’re looking for? for(var b in window) { if(window.hasOwnProperty(b)) console.log(b); } This will list everything available on the window object (all the functions and variables, e.g., $ and jQuery on this page, etc.). Though, this is quite a list; not sure how helpful it is… Otherwise just do window … Read more

Multiple URLs copy in Sources/Network tab

make sure Network panel is active switch devtools Dock side in the menu to a detached (floating) window Next time you can press CtrlShiftD to toggle docking. in the now detached devtools press CtrlShifti or ⌘⌥i on MacOS, which will open devtools-on-devtools in a new window Run the following code in this new window: copy(UI.panels.network.networkLogView.dataGrid.rootNode().flatNodes.map(n … Read more