Assume, you want to hack (modify few shadow tiddlers in a plugin) and repack it, for example you want to add an attribute to dynamics table in Shiraz.
Modify the plugin
- Open Shiraz plugin from $:/ControlPanel
- Click on the Contents tab on Shiraz plugin tiddler just opened (
$:/plugins/kookma/shiraz
), and then select the shadow tiddlers you want to hack - Edit the shadow tiddlers and save
Repack it
-
Open the Browser Consol from your opened TiddlyWiki window (the browser tab you have your TiddlyWiki opened)
- Most browsers support F12 to open developer window (and the select console tab)
-
Enter the below command into the Consol and run it (by hit ctrl+enter, or click on Run button, or enter depend to your browser)
$tw.utils.repackPlugin("$:/plugins/kookma/shiraz")
More details can be found here: How to create plugins in the browser
Tip: When you modify a shadow tiddler, a copy will be created in your TiddlyWiki. No need to repack the plugin! The repack is useful when you want to reuse the hacked plugin across several others TiddlyWiki.
Important Note:
- Read the plugin License before hacking it.
- Always add a note to repacked plugin, or rename it (when you put it in a public domain)
- Do not redistribute the hacked plugin except you have clearly added a notice to differentiate it from original plugin