google-code-export / minimalist

Automatically exported from code.google.com/p/minimalist
0 stars 0 forks source link

Hide Offline not working #211

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What is the problem? Describe completely:

Minimalist version   - 0.5.20
Relevant core module -
Chrome version       - 18.0.1025.152
Operating System     - Windows 7 Professional
Language             - English
Google Apps user?    - No
Other extensions     - AdBlock Plus

Options > Sidebar > Chat > 'Hide offline'

That option is not working.

Original issue reported on code.google.com by bergo...@gmail.com on 12 Apr 2012 at 12:06

Attachments:

GoogleCodeExporter commented 9 years ago
Works for me

Original comment by dan.bol...@gmail.com on 20 Apr 2012 at 9:39

GoogleCodeExporter commented 9 years ago
I'm having same issue. Offline people still showing up :(

Original comment by Oldschoo...@gmail.com on 17 Jul 2012 at 12:43

GoogleCodeExporter commented 9 years ago
not working for me either. I've tried different chat options (most popular, all 
contacts, etc) and moved the chat from left pane to right pane and back. still 
not working.

Original comment by rebeccal...@gmail.com on 23 Oct 2012 at 7:20

GoogleCodeExporter commented 9 years ago

Original comment by anst...@gmail.com on 23 Jan 2013 at 1:19

GoogleCodeExporter commented 9 years ago
Not working for me as well since several months...

Original comment by pep...@gmail.com on 24 Jan 2013 at 7:08

GoogleCodeExporter commented 9 years ago
I spent a while working on hide offline and hide away yesterday before I pushed 
the update but I couldn't figure it out. Both those features are priorities for 
the next release.

Original comment by anst...@gmail.com on 24 Jan 2013 at 7:18

GoogleCodeExporter commented 9 years ago
Same problem here. I believe it has been an issue for several months (it did 
work at one point for a while). Thanks Angel for an awesome extension.

Original comment by sutclif...@gmail.com on 24 Jan 2013 at 10:54

GoogleCodeExporter commented 9 years ago
Modified the Head JS to the following and it works fine:

_min.offline = {
    chatList: undefined,
    icons: undefined,
    bootstrap: function() {
        _min.offline.icons = document.querySelectorAll('.vt');
        if (_min.offline.icons.length > 0) {
            _min.offline.chatList = _min.offline.icons[0].parentNode.parentNode.parentNode.parentNode;
            _min.offline.chatList.addEventListener('DOMSubtreeModified', _min.offline.update);
            _min.offline.update();
        } else {
            window.setTimeout(_min.offline.bootstrap, 3000);
        }
    },
    update: function() {
        _min.offline.chatList.removeEventListener('DOMSubtreeModified', _min.offline.update);
        _min.offline.icons = document.querySelectorAll('.vt');
        for (var i = 0, l = _min.offline.icons.length; i < l; i++) {
            if (_min.offline.icons[i].getAttribute('class').indexOf('df') > 0 || _min.offline.icons[i].getAttribute('class').indexOf('Bp') > 0) {
                _min.offline.icons[i].parentNode.parentNode.parentNode.setAttribute('offline','true');
            } else {
                _min.offline.icons[i].parentNode.parentNode.parentNode.setAttribute('offline','');
            }
        }
        _min.offline.chatList.addEventListener('DOMSubtreeModified', _min.offline.update);
    }
};
_min.offline.bootstrap();

Original comment by trevorhr...@gmail.com on 21 Feb 2013 at 7:06

GoogleCodeExporter commented 9 years ago
Nice work Trevor! This will be in the next release, and so will your name.

Cheers!

Original comment by anst...@gmail.com on 21 Feb 2013 at 7:16

GoogleCodeExporter commented 9 years ago
Happy to help the cause! :)  Thanks for making such a great extension!

Original comment by trevorhr...@gmail.com on 21 Feb 2013 at 7:18