3. Enter a name of the Service to display in the tab.
4. Enter a URL for the service. Be sure the URL, when you aren't logged, shows a login form or if you are logged, shows the app.
5. Enter a URL for the Logo of the service to display it in the tab.
6. In Advanced option, there is an _Unread Code_ field. This field you will use it if the service you are adding is not notifying an activity (new messages, new emails, etc) throw the title of the page (Ex. "(2) Facebook Messenger"). The number 2 means there are 2 messages unread. This code will be injected to the service page to run it (must return an Integer) and it will be embeded into this code:
6. In Advanced option, there is an _Unread Code_ field. This field you will use it if the service you are adding is not notifying an activity (new messages, new emails, etc) throw the title of the page (Ex. "(2) Facebook Messenger"). The number 2 means there are 2 messages unread.
Here is an example code that you can start with:
```javascript
function checkUnread() {
updateBadge(_YOUR_CODE_WILL_BE_PLACED_HERE_);
var e = document.getElementsByClassName("unread_countValue");
var t = 0;
for( i = 0; i <e.length;i++)t+=parseInt(e[i].innerHTML.trim());
updateBadge(t);
}
function updateBadge(e) {
@ -19,10 +24,6 @@ var originalTitle = document.title;
Also, you can add another code to do whatever you want. See [here](https://github.com/saenzramiro/rambox/wiki/Inject-JavaScript-Code).
Once you finish writing and testing your code, it will be a great practice to minify it before pasting it into the Dialog Box into Rambox. To minify it, you can use [JSCompress](http://jscompress.com/).