[Tweaks] Twitter2PSM - Printable Version
-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [Tweaks] Twitter2PSM (/showthread.php?tid=89729)
[Tweaks] Twitter2PSM by onesmartguy on 03-18-2009 at 01:52 AM
Finally,
I have been waiting for a good Twitter2PSM! Here is a great one http://www.msgpluslive.net/scripts/view/517-Twitter2PSM/
I just wanted to throw out there a few updates I did and hopefully these will be editable options in mynetx's release.
From line 256 is where i change a few things. I didn't want to show replies i recieved as my status for msn. Also this strips out the (days ago) text as well
BTW great job mynetx!
Follow me! #onesmartguy
code:
lastIndex = strStatus.lastIndexOf("(");
if(lastIndex > 0)
strStatus = trim(strStatus.substring(0, lastIndex));
if(strStatus.length > 128)
strStatus = strStatus.substr(0, 127) + "…";
Debug.Trace("Status updated: " + strStatus + ", " + Messenger.MyPersonalMessage);
if(Messenger.MyPersonalMessage != strStatus) {
Debug.Trace("Status updated: " + strStatus);
if(strStatus.indexOf("@") != 0){
Messenger.MyPersonalMessage = strStatus;
} else {
Debug.Trace("Status did not update since last update was a reply");
}
}
};
objAjax.send(null);
}
// Removes leading whitespaces
function LTrim( value ) {
var re = /\s*((\S+\s*)*)/;
return value.replace(re, "$1");
}
// Removes ending whitespaces
function RTrim( value ) {
var re = /((\s*\S+)*)\s*/;
return value.replace(re, "$1");
}
// Removes leading and ending whitespaces
function trim( value ) {
return LTrim(RTrim(value));
}
RE: [Tweaks] Twitter2PSM by mynetx on 08-04-2009 at 11:18 PM
The current version of Twitter2PSM has options for all of these tweaks.
Download now
|