There are multiple ways to install and run scripts in RunJavaScript. Here are some samples:
- Use in-line editor and edit manually
- Copy/paste
- Use the bookmarklet below to open single file scripts
- Use IOS Files app to copy files from other apps
- Use other apps like Working Copy to edit and store scrips. See this page.
- Use Workflow to open scripts and integrate. See this page
- Use integrated webdav server to mount documents directory on your laptop, use git, node.js etc. to build.
Add this bookmarklet to your bookmarks and run it on sample script page to open the script in RunJavaScript. Source code is here.
javascript:window.location='runjavascript://x-callback-url/run?script=runjs.addScript(atob(%22ZnVuY3Rpb24gbWFpbigpIHsKCmxldCBpbnB1dD1ydW5qcy5nZXRJbnB1dCgpLnRleHQoKTsKbGV0IHVybFByb21pc2UgPSBpbnB1dD9Qcm9taXNlLnJlc29sdmUoaW5wdXQpOkNsaXBib2FyZC5nZXRTdHJpbmcoKTsKCnVybFByb21pc2UudGhlbihjaGVja1VSTCkKLnRoZW4oaGFuZGxlR2l0SHViVVJMKQoudGhlbih1ID0+IGZldGNoKHUpKS50aGVuKHIgPT4gci50ZXh0KCkpCi50aGVuKHMgPT4ge3JldHVybiB7c2NyaXB0OiBzfX0pCi50aGVuKGhhbmRsZUljb25Bbm5vdGF0aW9uKQoudGhlbihoYW5kbGVCYXNlVVJMQW5ub3RhdGlvbikKLnRoZW4oaGFuZGxlRGVmYXVsdElucHV0QW5ub3RhdGlvbikKLnRoZW4oaGFuZGxlRmlsZU5hbWVBbm5vdGF0aW9uKQoudGhlbihwcmVwYXJlVGFyZ2V0VVJMKQoudGhlbih1ID0+IHsKICBydW5qcy5yZWRpcmVjdCh1KTsKIH0pCi5jYXRjaChlID0+IEFsZXJ0LmFsZXJ0KCJFcnJvciIsIGUubWVzc2FnZSkudGhlbigoKSA9PiBydW5qcy5jbG9zZSgpKQopOwp9OwoKY29uc3QgY2hlY2tVUkwgPSB1ID0+IHUuc3RhcnRzV2l0aCgiaHR0cCIpP3U6UHJvbWlzZS5yZWplY3QobmV3IEVycm9yKCJDbGlwYm9hcmQgc2hvdWxkIGluY2x1ZGUgYS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