What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [update] PlusPrivacy

[update] PlusPrivacy
Author: Message:
Plan-1130
Full Member
***

I keep askin' myself: why?

Posts: 142
73 / Male / –
Joined: Feb 2005
O.P. [update] PlusPrivacy
Hi,

I've made this script because it was requested by a friend of mine:

Setting your status to Appear Offline will make you appear offline to all your contacts, while they can still talk to you.
PlusPrivacy can make you block all your contacts, except for a few you specify.
This way you will only appear online to a few contacts, in case you want to chat with just 1 (or more) contacts, and to nobody else.


For safety:
= Your original list is stored in the registry (user-dependant)
= On startup PlusPrivacy is restored (use /priv off to turn off PlusPrivacy)
= All settings are user-dependant
= When activated, it will be in total control and will block if you unblock, and vice versa, or store the new Exclusion

Bug fixes:
= Turning it off and (un)blocking contacts now fixed

code:
/priv on [contacts]
will turn on PlusPrivacy and, optionally, exclude the contacts (emails, seperated by a comma, no space or whatsoever)

/priv off
will turn PlusPrivacy off and restore to the original state, will also flush all variables.

/priv exclude <contacts>
will exclude the contacts from the blocklist (emails, seperated by a comma, no space or whatsoever)

/priv include <contacts>
will include the contacts in the blocklist (emails, seperated by a comma, no space or whatsoever)

/priv totalcontrol on
will restore all manual blocks and unblocks

/priv totalcontrol off
will saves all manual blocks and unblocks to the Exclusion list


.plsc File Attachment: PlusPrivacy.plsc (4.32 KB)
This file has been downloaded 500 time(s).

This post was edited on 11-08-2006 at 09:03 PM by Plan-1130.
My Scripts: UltimatFlooder, Advanced PSM Chat, PlusPrivacy, PlusRemote

[Image: Plan-1130.png]
11-07-2006 01:00 PM
Profile E-Mail PM Find Quote Report
Plan-1130
Full Member
***

I keep askin' myself: why?

Posts: 142
73 / Male / –
Joined: Feb 2005
O.P. RE: [release] PlusPrivacy
Serious update: see first post...
My Scripts: UltimatFlooder, Advanced PSM Chat, PlusPrivacy, PlusRemote

[Image: Plan-1130.png]
11-08-2006 09:02 PM
Profile E-Mail PM Find Quote Report
elektra
Full Member
***

Avatar
aka quacky

Posts: 210
Reputation: -3
– / Male / –
Joined: Jul 2006
RE: [update] PlusPrivacy
seems like a good script, still testing it :P
[Image: ps3_forum2.jpg][Image: x360_forum2.jpg]
11-08-2006 09:10 PM
Profile E-Mail PM Find Quote Report
prashker
Veteran Member
*****


Posts: 5109
Reputation: 104
– / Male / –
Joined: Mar 2005
Status: Away
RE: [update] PlusPrivacy
Pretty cool....Trying now (y)
11-08-2006 09:10 PM
Profile PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [update] PlusPrivacy
! major security/privacy issue: do not store emails in the registry, use the userID instead... For the user's userID you use Messenger.MyUserId as you know, but to calculate the userID of a random given email address use:
code:
function userID(email) {
    email = email.toLowerCase();
    for(var x=0, i=0; i < email.length; i++) x = (x * 101 + email.charCodeAt(i)) % 4294967296;
    return x;
}


- /priv on command isn't reconized as a command...
- exclussion list (nor current list as-is) is not stored
- the script messed up my contact's block statusses (grrrr)
- /priv on command is faulty (especially first time use)
- /priv totalcontrol on/off seems inlogic (off should be on and vice versa; if totalcontrol is active it should save the current states, when it is turned off it should restore it; unless I misunderstand the purpose of 'totalcontrol' and in that case maybe another (not confussing) name for this should be made)

....

needs still a lot of work



This post was edited on 11-08-2006 at 10:16 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
11-08-2006 09:20 PM
Profile PM Find Quote Report
Plan-1130
Full Member
***

I keep askin' myself: why?

Posts: 142
73 / Male / –
Joined: Feb 2005
O.P. RE: [update] PlusPrivacy
quote:
Originally posted by CookieRevised
! major security/privacy issue: do not store emails in the registry, use the userID instead... For the user's userID you use Messenger.MyUserId as you know, but to calculate the userID of a random given email address use:
code:
    function userID(email) {
        email = email.toLowerCase();
        for(var x=0, i=0; i < email.length; i++) x = (x * 101 + email.charCodeAt( i)) % 4294967296;
        return x;
    }

Thanks, will change that, in other plugins too :)


- /priv on command isn't reconized as a command...
- exclussion list (nor current list as-is) is not stored
- the script messed up my contact's block statusses (grrrr)
- /priv on command is faulty (especially first time use)
Sorry for messing up your list :( These should have been fixed in the new version, if not I'll see what I can do (i used break; in a function, instead of return null;, which messed up :$)
- /priv totalcontrol on/off seems inlogic (off should be on and vice versa; if totalcontrol is active it should save the current states, when it is turned off it should restore it; unless I misunderstand the purpose of 'totalcontrol' and in that case maybe another (not confussing) name for this should be made)
if it is in total control, it should prevent you from blocking and unblocking manually, if turned off it will adapt itself to manual blocks and unblocks. I'm sorry the variable in the code itself uses a variable that suggests the other way round. (If you have a better suggestion for the configuration variable)
....

needs still a lot of work I know, but it was for a friend of mine and he gave me less than a day to complete it, but i did it in 2
code:
function OnEvent_Initialize(MessengerStart)
{
    if (!MessengerStart)
    {
        OnEvent_SigninReady(Messenger.MyEmail);
    }
}

function OnEvent_SigninReady(Email)
{
    for(var e = new Enumerator(Messenger.MyContacts); !e.atEnd(); e.moveNext())
    {
        e.item().blocked = false;
        Debug.Trace(e.item().email + " has been unblocked.");
    }
}

will unblock all the contactwhen the script is started, for those with a messed up contact list (you'll have to manually block your flooding buddies)

And I will try to start using RegExp, I kind of know how to work with the syntax now, but the whole idea is a bit, confusing me...
if i use the split method for a string i can use regular expressions too, but should it be like String.split(/{2}[A-z]/) or something? (expression will match every 2 letters from A to Z and a to z) or do i have to use the RegExp object?
Or am I totally wrong with the split method?
My Scripts: UltimatFlooder, Advanced PSM Chat, PlusPrivacy, PlusRemote

[Image: Plan-1130.png]
11-09-2006 06:38 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On