Skip to content

Load scripts in internal browser windows #134

Discussion options

You must be logged in to vote

If you're talking about tab DevTools, just use // @include about:devtools-toolbox in the script. Example:

// ==UserScript==
// @name            consoledev
// @author          xiaoxiaoflood
// @include         about:devtools-toolbox
// ==/UserScript==

console.log('hi');

Of course, console.log runs in browser context, not in tab context, so you'll only find the log in Browser Console (Ctrl+Shift+J).

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@sdavidg
Comment options

Answer selected by sdavidg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants