diff --git a/Plugins.textile b/Plugins.textile index 5cd1851..ed8b4a5 100644 --- a/Plugins.textile +++ b/Plugins.textile @@ -1,5 +1,6 @@ This is a example plugin to get you started. It removes tweets which contain one of the stopwords. Save the code in a file @~/Library/Application Support/Twittia/Plugin.js@. You have to create this directory yourself. +``` js bc. $(document).ready(function() { if(twittia_instance.action == "home_timeline") { twittia_instance.body.addEventListener( 'DOMNodeInserted', filter, false ); @@ -22,5 +23,6 @@ function filter(e) { } } } +``` You can use the embeded jQuery too. Take a look on the TwittiaCore.js in the source code to get more ideas of what you can do. \ No newline at end of file