* Not use "localStorage", it will be flushed from battlelog sometimes. Use "instance.storage" instead.
* Not use "window.focus = " or something like that. It eleminates all prev. attached handlers. Use "$(window).on('focus', function(){});" instead.
* For ajax use "$.getJSON" or "$.ajax" instead of XMLHttpRequest" - Its cross browser safe.
Topicstarter
Blodjer
Thanks for your help.
Its my first try to do something in Javascript. I'll take a look at your hints tomorrow.
ZeRoHuNt3r
How to install ??
Post edited 2 x times, last by
Blodjer
Topicstarter
Blodjer
1. Open the BetterBattlelog Sidebar
2. Click on 'Plugins'
3. Copy and Paste this link (https://docs.google.com/uc?export=download&id=0B92U9QpSX5jKSEVtckhTaDNkT2c) into the textfield
4. Press Enter
5. Reload Battlelog (F5)
When you open now the Sidebar and scrolls down you should the some options for the Ambient Light Plugin.
ORFK
Global Moderator
nice feature :-D thats the future! good work :-)
Post edited 2 x times, last by
Bluscream
Bluscream
Could you upload it directly to a webspace so we can have a auto-updated version without the need of the customplugin space?
For now i uploaded it on my Dropbox to add it just with the URL