SearchGet Started
League of Extraordinary FoundryVTT DevelopersLoEFD
League of Extraordinary FoundryVTT Developers•4y ago
cswendrowski

devmode extension brainstorm

https://github.com/mdn/webextensions-examples/tree/master/devtools-panels
League of Extraordinary FoundryVTT DevelopersJoin
4,201Members
View on Discord
Was this page helpful?

Product

PricingDocsCommunities

Resources

AboutBlogChangelogContributors

Legal

TermsPrivacyCookiesEULA
TwitterGitHubDiscord

© 2026 Hedgehog Software, LLC. All rights reserved.

CalegoC
Calego•3/9/22, 11:29 PM
want to know what sort of benefits this has over the current 'just console log it'
ccjmkC
ccjmk•3/9/22, 11:29 PM
hmm i don't know if its the same but I did the chrome extension demo 🤓 ... just that hahah
CalegoC
Calego•3/9/22, 11:30 PM
List all World Documents, kind of souped up version of "print to console" could be useful
CalegoC
Calego•3/9/22, 11:30 PM
A flag editor/document editor which manually
update
update
s things?
ccjmkC
ccjmk•3/9/22, 11:30 PM
I mentioned hooks as a half joke but it would be nice. very level-0 shit, a toggle to log hooks or not
CalegoC
Calego•3/9/22, 11:30 PM
yeah but devmode already does that
ccjmkC
ccjmk•3/9/22, 11:31 PM
yeah but it could replace it 😛
CalegoC
Calego•3/9/22, 11:31 PM
agreed, it would have a place in this
ccjmkC
ccjmk•3/9/22, 11:31 PM
localization shit ? I don't know how accessible it might be
CalegoC
Calego•3/9/22, 11:31 PM
debug tools has access to like the profiler and shit I think
CalegoC
Calego•3/9/22, 11:32 PM
wonder how a 'custom foundry profiler' might look
CalegoC
Calego•3/9/22, 11:32 PM
i know react devtools has stuff like that
ccjmkC
ccjmk•3/9/22, 11:32 PM
but been able to see maybe the tree of translations could be handy, for like when you are translating a module/system onto another module, so you could double check where each localized text is coming from
ccjmkCccjmkhmm i don't know if its the same but I did the chrome extension demo 🤓 ... jus...
ccjmkC
ccjmk•3/9/22, 11:35 PM
oh yeah this uses a manifest too, it looks rather similar too, seems to be using service workers on a similar fashion but registering different parts of the API
ccjmkC
ccjmk•3/9/22, 11:35 PM
for ref: https://developer.chrome.com/docs/extensions/mv3/getstarted/
Chrome Developers
Getting started - Chrome Developers
Step-by-step instructions on how to create a Chrome Extension.
CalegoCCalegoA flag editor/document editor which manually `update`s things?
arcanistzedA
arcanistzed•3/11/22, 12:55 AM
DF Flag Editor already exists btw
ccjmkC
ccjmk•3/11/22, 10:31 AM
sure, but I mean, it's totally a module/system dev tool, we could work on integrating it into this devmode or do something similar
ccjmkC
ccjmk•3/11/22, 10:38 AM
while im all in for smaller.. more.. emm.. modular? modules in general usage terms, as one game might not require what other does, or one system from another, or even users might prefer other module for doing this or that thingy, the fvtt development space does feel like the right spot to amalgamate these modules into more comprehensive tools.
CalegoC
Calego•3/11/22, 2:21 PM
more interested from the perspective of "a chrome extension might work even if the foundry UI fails to initialize"
ccjmkC
ccjmk•3/11/22, 2:49 PM
didn't even consider that point, also love it
arcanistzedA
arcanistzed•3/11/22, 9:25 PM
How often will the UI fail to that degree, but still load module scripts?
arcanistzedA
arcanistzed•3/11/22, 9:26 PM
It's never happened to me that the UI is broken and scripts still load
ccjmkC
ccjmk•3/11/22, 9:28 PM
I think the goal is that this will not be a module, so it would not go through the same flow
CalegoC
Calego•3/11/22, 9:51 PM
^
CalegoC
Calego•3/11/22, 9:51 PM
as a chrome extension it wouldn't be a module at all yeah
arcanistzedA
arcanistzed•3/11/22, 11:33 PM
Ah 🤔
ccjmkC
ccjmk•3/11/22, 11:35 PM
@arcanist this would be implemented using something similar to the PWA thingy you did, uses a similar manifest and shit
arcanistzedA
arcanistzed•3/11/22, 11:36 PM
Oh, yeah. You realize that means that users must manually copy the service worker into their folder since modules can't download JavaScript there
arcanistzedA
arcanistzed•3/11/22, 11:37 PM
I originally tried putting the service worker in the module folder, but that doesn't work because it's scoped to sub-directories
ccjmkC
ccjmk•3/11/22, 11:37 PM
hmm
ccjmkCccjmk@arcanist this would be implemented using something similar to the PWA thingy yo...
arcanistzedA
arcanistzed•3/11/22, 11:38 PM
Does it require a service worker?
ccjmkC
ccjmk•3/11/22, 11:40 PM
as far as I understand (with like a five minute investment of time two days ago) yes
ccjmkC
ccjmk•3/11/22, 11:48 PM
https://developer.chrome.com/docs/extensions/reference/devtools_panels/
Chrome Developers
chrome.devtools.panels - Chrome Developers
Build the next generation of web experiences.
Data
Data