BOB lite on other browsers? (Discontinued)

Archival storage to keep things organized and uncluttered. Can't find what you need? Search for old topics here.

Moderators: Global Moderators, Tech Team

Forum rules
Please read the Community Guidelines before posting.

BOB lite on other browsers? (Discontinued)

Postby sherkaner on Thu Oct 01, 2009 6:10 am

One of the annoying things about getting BOB to work in other browsers is that you don't have all greasemonkey-functionality (greasemetal for chrome has its flaws, as does greasemonkey for IE and greasekit for safari. Opera has some own mechanism)

One solution is to create a BOB lite, which basically is a javascript-file without references to greasemonkey-functions that has to be loaded once you are on a game page.

Well, if you know what you're doing, this script has the basic things of BOB included: http://userscripts.org/scripts/source/58895.user.js
(Basic things: Map inspect, extended statistics, dropdown coloring. Snapshots are simply impossible, storing options will be quite hard).

For testing purposes, it's possible to manually load it from a bookmark (also known as scriptlet). I used this to test it in Chrome, firefox and IE 8 (IE looks are different, but it's probably not possible to do it any other way). The usual way: create a new bookmark, give it a name and for location/URL, use the following javascript:
javascript:(function(){BOBjs=document.createElement('SCRIPT');BOBjs.type='text/javascript';BOBjs.src='http://userscripts.org/scripts/source/58895.user.js';document.getElementsByTagName('head')[0].appendChild(BOBjs);})();

If you are at a game page and want to see the stats/map inspect, press the bookmark. BOB will try to load.
(This should actually work for the iPhone btw, but I haven't tested that myself).
Colonel sherkaner
 
Posts: 1606
Joined: Thu May 03, 2007 3:21 am
Location: Zwolle
Medals: 42
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Freestyle Achievement (2) Nuclear Spoils Achievement (1) Fog of War Achievement (2) Speed Achievement (1) Teammate Achievement (2)
Random Map Achievement (1) Cross-Map Achievement (3) Ratings Achievement (2) Tournament Achievement (3) Clan Achievement (3)
General Contribution (11)

Re: BOB lite on other browsers?

Postby Dako on Thu Oct 01, 2009 4:00 pm

That is actually great.

But how about storing snapshots in cookies? Since it is dangerous to write into files (and not all browsers will allow it) but cookies can be extended to store snapshot data, I guess.

Have you tried that?
Image
User avatar
Colonel Dako
 
Posts: 3948
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia
Medals: 117
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (1) Manual Troops Achievement (2) Freestyle Achievement (2) Polymorphic Achievement (1) Nuclear Spoils Achievement (2)
Fog of War Achievement (3) Trench Warfare Achievement (1) Speed Achievement (1) Teammate Achievement (2) Random Map Achievement (2)
Cross-Map Achievement (3) Battle Royale Achievement (1) Ratings Achievement (3) Tournament Achievement (14) General Achievement (24)
Clan Achievement (21) General Contribution (20)

Re: BOB lite on other browsers?

Postby sherkaner on Thu Oct 01, 2009 4:36 pm

Ah, thanks for the feedback.
Cookies might work, though they have a max size (2k if I remember correctly). I'd have to check whether some maps (Conquer Man for example) would use more space per snapshot, and deleting cookies (adware removers?) would remove the snapshots.
Just storing the settings in a single cookie will be hard enough to implement/explain I guess.
Colonel sherkaner
 
Posts: 1606
Joined: Thu May 03, 2007 3:21 am
Location: Zwolle
Medals: 42
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Freestyle Achievement (2) Nuclear Spoils Achievement (1) Fog of War Achievement (2) Speed Achievement (1) Teammate Achievement (2)
Random Map Achievement (1) Cross-Map Achievement (3) Ratings Achievement (2) Tournament Achievement (3) Clan Achievement (3)
General Contribution (11)

Re: BOB lite on other browsers?

Postby Dako on Thu Oct 01, 2009 4:43 pm

4K for each cookie.

Also, if you remove your cookie with some addon - well, it's your problems, add CC to exceptions and move on.
Image
User avatar
Colonel Dako
 
Posts: 3948
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia
Medals: 117
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (1) Manual Troops Achievement (2) Freestyle Achievement (2) Polymorphic Achievement (1) Nuclear Spoils Achievement (2)
Fog of War Achievement (3) Trench Warfare Achievement (1) Speed Achievement (1) Teammate Achievement (2) Random Map Achievement (2)
Cross-Map Achievement (3) Battle Royale Achievement (1) Ratings Achievement (3) Tournament Achievement (14) General Achievement (24)
Clan Achievement (21) General Contribution (20)

Re: BOB lite on other browsers?

Postby neanderpaul14 on Thu Oct 01, 2009 6:29 pm

Would BOB lite have fewer calories or less alcohol then normal BOB? :P :P :P
Image

High score: 2724/#163 on scoreboard/COLONEL
Private 1st Class neanderpaul14
 
Posts: 1125
Joined: Wed Aug 06, 2008 3:52 pm
Location: "Always mystify, mislead and surprise the enemy if possible." - Thomas J. Jackson
Medals: 65
Standard Achievement (4) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (4) Terminator Achievement (3)
Assassin Achievement (2) Manual Troops Achievement (3) Freestyle Achievement (2) Nuclear Spoils Achievement (1) Fog of War Achievement (4)
Trench Warfare Achievement (1) Speed Achievement (2) Teammate Achievement (2) Random Map Achievement (2) Cross-Map Achievement (3)
Beta Map Achievement (1) Ratings Achievement (4) Tournament Achievement (7) General Achievement (1) Clan Achievement (13)

Re: BOB lite on other browsers?

Postby Dai_atan on Sun May 16, 2010 4:48 am

did what you said, added it made a bookmark, clicked it in a game and now it is stuck on the loading screen... "Initializing BOB"
:( Help?
Image
Dai_Atan
Proud Retired MoC
and now Active (like yeast in warm water!) Member of The Legion
User avatar
Captain Dai_atan
 
Posts: 290
Joined: Fri Sep 21, 2007 11:59 pm
Medals: 22
Standard Achievement (3) Doubles Achievement (1) Triples Achievement (1) Quadruples Achievement (2) Terminator Achievement (1)
Manual Troops Achievement (1) Fog of War Achievement (2) Speed Achievement (1) Teammate Achievement (1) Cross-Map Achievement (2)
Ratings Achievement (1) Tournament Achievement (1) Clan Achievement (4) General Contribution (1)

Re: BOB lite on other browsers?

Postby sherkaner on Sun May 16, 2010 5:21 am

Which browser was that? This was just a test, keeping 2 seperate scripts upgraded was just too much work (especially since hardly anyone tried this).

So I'm not supporting IE in any way, for chrome the beta kinda works: http://userscripts.org/scripts/show/52700 (snapshots and actually refreshing the content (stats) doesn't work yet, but if you reload you have the right stats, map inspect etc.).
Colonel sherkaner
 
Posts: 1606
Joined: Thu May 03, 2007 3:21 am
Location: Zwolle
Medals: 42
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Freestyle Achievement (2) Nuclear Spoils Achievement (1) Fog of War Achievement (2) Speed Achievement (1) Teammate Achievement (2)
Random Map Achievement (1) Cross-Map Achievement (3) Ratings Achievement (2) Tournament Achievement (3) Clan Achievement (3)
General Contribution (11)


Return to Tool Archives

Who is online

Users browsing this forum: No registered users

Login