code >> ```

noformnocontent 2012-10-28 11:04:58 -07:00
parent 3ba4ae1097
commit 9ccfa97ec1

@ -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.