code >> ```
parent
3ba4ae1097
commit
9ccfa97ec1
1 changed files with 2 additions and 0 deletions
|
@ -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.
|
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() {
|
bc. $(document).ready(function() {
|
||||||
if(twittia_instance.action == "home_timeline") {
|
if(twittia_instance.action == "home_timeline") {
|
||||||
twittia_instance.body.addEventListener( 'DOMNodeInserted', filter, false );
|
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.
|
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.
|
Reference in a new issue