Sharing
slicer allows you to temporarily adjust certain aspects of its behavior using URL parameters, such as automatically loading a file or importing a script on startup. This is useful for embedding slicer into outside web applications and allowing users to automatically source arbitrary files.
You can:
- automatically load a file using the
urlparameter, e.g.https://slicer.run?url=https://example.com/my.jar. - automatically open a file from your loaded ZIP/JAR file using the
fileparameter, e.g.https://slicer.run?url=https://example.com/my.jar&file=my.jar/path/inside/jar/MyClass.class.- You can also create the shareable URL directly in slicer by right-clicking the tab of an open file and selecting
Copy shareable link!
- You can also create the shareable URL directly in slicer by right-clicking the tab of an open file and selecting
- automatically load a mapping file using the
mappingparameter, e.g.https://slicer.run?url=https://example.com/my.jar&mapping=https://example.com/my.tiny. - automatically import a script using the
scriptparameter, e.g.https://slicer.run?script=https://example.com/my-slicer-script/index.js.
Sharing a file
Section titled “Sharing a file”source URL: https://raw.githubusercontent.com/GenericException/SkidSuite/refs/heads/master/obf/obf-sample-test.jar
slicer URL: https://slicer.run?url=https://raw.githubusercontent.com/GenericException/SkidSuite/refs/heads/master/obf/obf-sample-test.jar
If you need a space for uploading files to share, pastes.dev and curl is a safe choice:
echo "https://api.pastes.dev/$(curl --progress-bar --data-binary @./path/to/file.jar -XPOST https://api.pastes.dev/post | jq -r '.key')"Buttons
Section titled “Buttons”A set of stylized buttons is provided for linking to slicer, akin to GitHub repository badges or the Vercel deploy button.
| Button | URL | Markdown |
|---|---|---|
https://slicer.run/button-disassemble-small.svg | [](https://slicer.run?url=...) | |
https://slicer.run/button-disassemble-large.svg | [](https://slicer.run?url=...) | |
https://slicer.run/button-decompile-small.svg | [](https://slicer.run?url=...) | |
https://slicer.run/button-decompile-large.svg | [](https://slicer.run?url=...) |