DSWP Bar for Firefox

Everything technical and nerdy stuff here plz !

DSWP Bar for Firefox

Postby SvaRoX » 09.21.09

As a wurst addicted I join a lot the server, but I especially watch 2 criteria : people online and map currently played. I have a server browser but it's quite boring to refresh and read a 45 players list... So I've coded a toolbar for firefox to make the things easier : after you log in, the toolbar gets online people, current and nextmap, and displays a popup showing people who join and left. Actually the popup show "friends" : I don't know if you ever noticed that you can make everyone your friend on the forum by clicking on the "add friend" link on user's profile page. By using the B3 account plugin I match online people <-> friend you have on the forum.

Here are some screenshots :
- first step, login
dswpbar_login.gif
(4.74 KiB) Downloaded 95150 times

- bar loaded
dswpbar_loaded.gif

- online players list : friends in bold font, forum name between () if any
dswpbar_playersmenu.gif
(3.01 KiB) Downloaded 95144 times

- popup when friends join or leave the server (like msn or quakelive)
dswpbar_friendspopup.gif
(1.28 KiB) Downloaded 95142 times


There could be many more features :
- connect button
- multi servers support (at least the bomb)
- PM received
- list of online people on mumble
- text field to search for people
- your own stats displayed somewhere
- broadcast messages in the popup from ingame command
- admin-only features...

Now if you want to try it :
/! Warning : it's a pre-alpha version, use it at your own risks !!! It *may* crash your firefox session (didn't happen until now), I would even recommend you to install it on a different profile (firefox -ProfileManager in command-line).
The bar is for Firefox version 3.*
Tested and works fine on :
- Firefox (Iceweasel) 3.0.12 on Linux
- Firefox 3.5.3 on MacOS Leopard

Hint : best use with Samtron's persona, at least when I fix the text color :p (announcements/dswp-persona-for-mozilla-firefox-t708.html).

Download is here : dswp_tools/svarox/dswpbar/dswpbar.xpi

If you dare test the bar, please report ;)
HF
ut4_he_tennis_v0.1
-------------------------
"We are talking about computers here, compared to those I can read women like a book ;P"
Unclefragger
User avatar
SvaRoX
Leader
 
Posts: 1972
Joined: 11.29.08

Re: DSWP Bar for Firefox

Postby Unclefragger » 09.21.09

cool stuff, I'll try it!!!
well actually I already installed it and since it's fucking early there is no one on, so first suggestion: catch if server is empty to display so instead of "undefined".
An other nice feature would be to have it like Players online (amount) <arrow>.

Ofc autorefresh and everything you said in your post :P

3.5.3 on Leopard as well
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
- Martin Golding
User avatar
Unclefragger
Godlike
 
Posts: 2006
Joined: 10.14.08
Location: rooftops
-----tdm:  
nick: [dswp]ucf
skill: 472.479
kills: 532
deaths: 332
ratio: 1.60

Re: DSWP Bar for Firefox

Postby Samtron » 09.21.09

Nice work - of course I already installed it. It works very fine on Firefox 3.5.3 on WinXP. :D :!:
An important feature would be the connect button, and a server switcher for bomb would be nice, too...

Thanks for the advertisement for my Persona :)
And a last question: Which language did you use for developing this toolbar? Is it just XML and JavaScript in a specific structure? (a short answer is enough)

Edit: After a few minutes of usage some more requests:
1. Is it possible, that the links ("Home", "Game Monitor") open in a new Tab? I does not work, when I click on them with my mouse wheel...
2. Ah, I just see, Uncle proposed it already... The up-to-date amount of players on the "Players online" button.
Image
User avatar
Samtron
Godlike
 
Posts: 1296
Joined: 01.08.09
Location: Berlin, Germany
-----tdm:  
nick: Samtron
skill: 584.92
kills: 316
deaths: 269
ratio: 1.17

Re: DSWP Bar for Firefox

Postby knirps » 09.21.09

Great work sva!

Works fine on Ubuntu 9.04 / Firefox: 3.0.14
User avatar
knirps
Godlike
 
Posts: 108
Joined: 09.04.08

Re: DSWP Bar for Firefox

Postby Rylius » 09.21.09

n1!

Same as knirps =)
wursti wrote:Anime? wow thats that movies where 100 dicks come out of a monster?
User avatar
Rylius
posted some :)
 
Posts: 312
Joined: 01.24.09
Location: Germany

Re: DSWP Bar for Firefox

Postby AimMe » 09.21.09

I have it.

And lol! For wonder it works on Ubuntu 9.04 with Firefox 3.0.14! :)

Nice little thing, i'm going to make some friends now.
Image
User avatar
AimMe
Godlike
 
Posts: 2318
Joined: 09.28.08
Location: Solar System

Re: DSWP Bar for Firefox

Postby SvaRoX » 09.21.09

Thanks all for your reports :)

Nice idea for the number of online player. In fact sometimes it's written undefined and no map name are displayed, mostly because of map change, so the next refresh *should* solve that.

@Uncle :
Woke up at 6:35 and online already oO :)
In fact there is an auto refresh, 1 minute period. Data are server-side refreshed every minute too. Further versions will retrieve data from the status.xml file (I hope), so it will be 30 seconds delay IIRC

@Samtron :
It really lacks the connect button, too bad it's a platform-dependent feature... It also requires to set fs_homepath/fs_basepath to run UrT properly.
About mouse3 click I realized it isn't handled by default by firefox, I should add it in the players list too.
I used XUL + JS to code it. If you want to have a look at the code, just unzip the .xpi file and open the files from the chrome/content directory (warning : dirty code inside, since I added features it needs a code "re"factoring ;))
ut4_he_tennis_v0.1
-------------------------
"We are talking about computers here, compared to those I can read women like a book ;P"
Unclefragger
User avatar
SvaRoX
Leader
 
Posts: 1972
Joined: 11.29.08

Re: DSWP Bar for Firefox

Postby dmmh » 09.21.09

eoe, this is really cool man. Respect for your coding skillz!
Gonna be using this for sure
the meaning of the word cunt....loool

Image
User avatar
dmmh
Godlike
 
Posts: 1134
Joined: 01.19.09

Re: DSWP Bar for Firefox

Postby Samtron » 09.21.09

@ Connect Button: I know that there are protocols like skype: to open a skype conversation from a link or steam: to connect to a counterstrike server. But I'm not sure if even these links are platform independent... I'm dreaming of something like urt: -connect dswp.de:22222, but this propably only works on Windows and UrT needs to register that protocol at the operation system...

@ Sources: When I have some time, I will have a look in the .xpi, JavaScript can't be so difficult. Perhaps you can add one or two vertical divider to structure it a bit...

And I like the Stfu-Checkbox, no other application (at least I don't know) has such a nerdy naming :)
Image
User avatar
Samtron
Godlike
 
Posts: 1296
Joined: 01.08.09
Location: Berlin, Germany
-----tdm:  
nick: Samtron
skill: 584.92
kills: 316
deaths: 269
ratio: 1.17

Re: DSWP Bar for Firefox

Postby AimMe » 09.21.09

But stfu doesn't work! I lost my focus 2 times, then i checked stfu, but i lost focus 3rd time :( It is especially problematic because firefox is on other desktop than urban terror and i have problems getting focus back...
Image
User avatar
AimMe
Godlike
 
Posts: 2318
Joined: 09.28.08
Location: Solar System

Next

Who is online

Users browsing this forum: No registered users and 0 guests

Misc

cron