Methodology to Save Configuration and STLs from websites using the THREE.JS framework for academic and educational purposes.
Please Always think about the developers of such websites and try to support them whenever possible, as without them, there would be no such tools.
This is based on some ideas from TeaWithLucas, with a focus on making UI lighter & code simpler. I modernized the code a bit (class
, let
, const
, arrow-fucntions, etc) and got rid of the inline UI (I like it better as a bookmarklet.)
Learn more about how to use this, here
You can run npm start
to run a local watching dev-server, so you test the code on real site, and reload changes. Use this code to test in developer console:
// code-loader, like in console directions, set this up once
g = u => fetch(u || 'http://localhost:1234/herosaver.js').then(r => r.text()).then(eval)
// get JSON of scene
g().then(() => saveJson())
// get STL
g().then(() => saveStl())
- add greasemonkey support back