Battlelog Mods v2.2 (extension&code) released

This version completely re-works the way updating will work, now all the important parts (the mods themselves) will now automatically come from the server when a new version is released. This should reduce the amount of manual updates (for the extension) to next to nothing.

Also to be noted a new feature was added to auto hide the offline friends list on load, it is a setting under the mod menu.

All future releases will be all about the adding of new features now that the backend is stable (it should be we will see..) so look forward to things like custom filters, auto join for a whole party, auto sort on load. And don’t forget I always take suggestions into consideration!

Code changelog

Featured changes:

Made changes to support the re-worked backend in the extension.

Added ability to auto hide offline friends list when the page loads (setting).

Removed left side notifications when mods are applied (seemed redundant).

Mod menu now displays extension version & code version.

Developer log (newest commit first):

changed version message in mod-menu to (ex) “extension: 2.2 | code: 2.2″
removed left side notifications when autoJoin and autoHooah are applied as they are pointless
added autoHideOfflineFriends mod
modified setting tick boxes to automatically refresh on load instead of having a line for each setting
fixed serialization of css and html files when building code_base
removed old mod files (passwordBypass, showAllGameModeFilters, showGameOnLoad)
added code to display changelog when the server side code loaded was a different version than the last time

Extension changelog

quickfix-2 10/30/2011 9:54pm (EST):

fixed old versions of Firefox and Opera having issues.

quickfix 10/30/2011 1:30pm (EST):

fixed Firefox and Opera having issues.

Featured changes:

Completely re-worked backend the important code is now auto updated from the server, extension updates should be very rare.

Developer log (newest commit first):

creates dev build of chrome extension to be used for client-side development
completely re-worked backend production extensions load code from the server
-to create less update requests and quicker updating of the important bits

Download:

Chrome: http://coderah.com/bf3/battlelog_mods.crx

FireFox/Opera: http://coderah.com/bf3/battlelog_mods.user.js (requires GreaseMonkey orScriptish)

For more info view the Project page: http://www.coderah.com/?page_id=389

Source Code (github): https://github.com/Coderah/Coderah-Battlelog-Mods

Share on TwitterShare on TumblrDigg ThisSubmit to reddit
Google+
  • Oscar Nalum

    Awesome. Looking forward to future releases.

  • Mikael Føyen

    Dude, how can I build it for my self?

    • http://coderah.com/ Coderah

      Currently when you run build.bat (it requires chrome for a few parts) it only builds a dev version of the chrome extension so unless you use chrome there isn’t much of a point unless you want to modify it to use your own server. beyond that all I can say is if the code doesn’t make much sense then you probably shouldn’t be doing anything anyway, I don’t have time to write dev tutorials for it all.

      • ColdIce

        Hello, thanks for answering.
        I’m a developer and using chrome. When I run build.bat what do I have to do next? Upload all the files from build directory to a server and install .crx file from web?

        • http://coderah.com/ Coderah

          Well chrome has a “load unpacked extension” button when you go into developer mode (under tools > extensions) if you navigate to your dev folder and select “build/battlelog_mods_dev” that will install a client side version of the extension that the builder makes. when you want to release you can either build an extension based on the dev one (client side) or make some server side scripts to handle the version control the way I did and modify the update_base code to target your server.

          If you want I can add examples of my server side php scripts that handle versioning to the git.

          • ColdIce

            Nice reply! I’m only modifying the source code for myself. Thanks!

          • http://coderah.com/ Coderah

            No problem! if you come up with anything you think should be implemented let me know :)

  • Michał Gątkowski

    Hey i would like to make a polish translation of this mod, How i can do that??

    • http://coderah.com/ Coderah

      How about this, I will get you a list of the things you need to translate and I will build a polish version for you :)

      • Michał Gątkowski

        Thank you ; )

        • http://coderah.com/ Coderah

          Not a problem, you will have to give me some time though, I need to decide how I am going to implement multiple languages.

          • Michał Gątkowski

            You can make something like this:
            if page= “http://battlelog.battlefield.com/bf3/pl/” (change language to polish)That’s only example ;P

          • http://coderah.com/ Coderah

            Yeah there is a variable S.globalContext.realm.lang which references a S.globalContext.staticContext.languages object so I can base it off of that. but I will need to change the way I am hooking the render functions for it all to work. I will start working on language support when I work on 2.4 or 2.5 (which should be soon so hang in there!)

          • Michał Gątkowski

            Oh, And I Almost Forget, Awesome work dude ^^

  • Haka3l

    Is there a version for IE9 coz Chrome/opera/firefox eats to much ram.

    • http://coderah.com/ Coderah

      I personally have no plans to support IE but you could try the greasemonkey script with trixie (no idea if it works and I’m not going to test it) http://www.bhelpuri.net/Trixie/

    • Triggeh

      Firefox (versions prior to 7.0) use around 15-35% less ram.

  • Arno_Nym

    please delete the part where u mod the news button to devblog, there is no devblog.

    • http://coderah.com/ Coderah

      I am aware of the problem, it is fixed just haven’t released it yet.

      • Arno_Nym

        great, and thanks ALOT for this script, helps alot =)

  • Aasds

    Would you be able to let us filter out locked severs? would be great anyway thanks for the quick updates :D

    • http://coderah.com/ Coderah

      That is actually a planned feature! no problem :)

  • Michał Gątkowski

    Oh and i have small sugestion for u,

    Can u make a refresh button on server page that will refresh only: 
    Players, ping, map…

    • http://coderah.com/ Coderah

      Ohh great idea, I will add that in soon. I’ve been working on the whole multiple languages thing so it should be done soon as well.

  • Michał Gątkowski

    Another suggestion for u about custom server filters.

    You can do something about map rotation, so we can hide or show only these servers that we want ;)

    Sorry for My English, Yes i know it’s super bad ^^

  • Johnson

    Could the “hide offline friends list” be saved if I close my browser?

    • http://coderah.com/ Coderah

      In the new version it will be.