Updated Plugins (markdown)
parent
64bf2a71f2
commit
f2a984b150
1 changed files with 15 additions and 1 deletions
16
Plugins.md
16
Plugins.md
|
@ -1,4 +1,8 @@
|
||||||
This are example plugins to get you started. Save the code in a file `~/Library/Application Support/Bungloo/Plugin.js`. You have to create this directory yourself.
|
This are example plugins to get you started.
|
||||||
|
|
||||||
|
## OS X
|
||||||
|
|
||||||
|
Save the code in a file `~/Library/Application Support/Bungloo/Plugin.js`. You have to create this directory yourself.
|
||||||
|
|
||||||
You can add CSS too, create the file `~/Library/Application Support/Bungloo/Plugin.css` where you can put your personal CSS.
|
You can add CSS too, create the file `~/Library/Application Support/Bungloo/Plugin.css` where you can put your personal CSS.
|
||||||
|
|
||||||
|
@ -9,7 +13,17 @@ An alternative is to make the `~/Library` folder visible. To do this, open the T
|
||||||
To ease plugins development you can enable WebKit inspector for Tent windows using executing this command in a Terminal window: `defaults write nu.jabs.apps.bungloo WebKitDeveloperExtras -bool YES`.
|
To ease plugins development you can enable WebKit inspector for Tent windows using executing this command in a Terminal window: `defaults write nu.jabs.apps.bungloo WebKitDeveloperExtras -bool YES`.
|
||||||
To open the inspector, right click on the view and choose `Inspect Element` from the contextual menu.
|
To open the inspector, right click on the view and choose `Inspect Element` from the contextual menu.
|
||||||
|
|
||||||
|
## Linux
|
||||||
|
|
||||||
|
The paths for the plugins on Linux are more confortable:
|
||||||
|
|
||||||
|
`~/.tentia/Plugin.js`
|
||||||
|
`~/.tentia/Plugin.css`
|
||||||
|
|
||||||
|
## More
|
||||||
|
|
||||||
You can use the embedded jQuery too.
|
You can use the embedded jQuery too.
|
||||||
|
|
||||||
Plugins can get the JSON representation of a post through the `status` property of its `li` tag.
|
Plugins can get the JSON representation of a post through the `status` property of its `li` tag.
|
||||||
``` js
|
``` js
|
||||||
document.getElementById('post-'+post_id).status;
|
document.getElementById('post-'+post_id).status;
|
||||||
|
|
Reference in a new issue