I'm trying to make a window position profile that applies to all regular Firefox windows, but does not apply to a Browser Toolbox window. They have the same class (MozillaWindowClass). Obviously I could set the Window Text value to
and that would at least guarantee that I don't resize the devtools. But then I won't be able to resize regular Firefox windows whose titles contain that string.
Which is plausible, because any webpage whose title ends in "Developer Tools" (e.g., articles about the devtools) will have that " — " appended by Firefox. For example, Firefox's built-in
page's title is "About Developer Tools" so if it's the active tab, the regular Firefox window's title will be
About Developer Tools — Firefox
. Which will be excluded by the text query above.
In regex we have the operator
which denotes the start of a string. So that would at least narrow it down to only interfering with webpages whose exact title is "Developer Tools" and webpages whose title begins with "Developer Tools — " (since there's no way to distinguish between the hyphen added by Firefox, and hyphens written into the webpage's actual title).
If we had regex, I could make a much narrower rule. For example, a typical browser toolbox title would be
Developer Tools — Active tab's title — Firefox Nightly — chrome://browser/content/browser.xhtml
. So a viable regex could be
/^Developer Tools — .* — Firefox Nightly — [^:]*:[^:]*$/
Are there any tricks to achieving something similar? I read the article on text queries but it doesn't seem to have any anchor tokens at all. If that's the case, then can you implement regex matching for text queries?
Thanks 🙏