I am playing a game called Outwar.com. it requires using multiple 
characters on the same account to accomplish raiding effectively. so 
currently when you switch to a different character it automatically puts 
you on the world page then you have to click the mob to raid. im trying to 
bypass that by automatically staying on the page when switching characters. 
currently i have a version that works but it only works with the character 
scroll bar. i prefer making lists in my bookmark bar to organize them 
however when i do this the script no longer works when switching character 
;( 

if anyone can help me i would reeeeaaaallllyyyy apprecciate it. below is a 
copy of the script im using to get the effect and any help modifying it to 
work with my bookmarks would be very much appreciated.

// ==UserScript==
// @name           Account Switch
// @namespace      Account Switch
// @description    Account Switch for Outwar
// @include        http://*.outwar.com/*
// @include        http://*.outwar.com/
// @include        http://outwar.com/*
// @include        http://outwar.com/
// @require        http://code.jquery.com/jquery-latest.js
// ==/UserScript==

$('#toolbar_uid').attr('onchange', '');
$('#toolbar_uid').change(function() {
    url = window.location.href;
    if ( url )
    {
        uid = $('#toolbar_uid').val();
        url = url.replace(/#$/, '');
        if(url.contains("suid=")){
            url = url.replace(/suid=[0-9]+&?/, "suid="+uid);
        }
        else{
            if(url.contains("?")) url = url+"&";
            else url = url+"?";
            url = url+"suid="+uid;
        }
        url = url.replace(/serverid=[0-6]&?/, '');
        url = url.replace(/room=[0-9]+&?/, '');
        url = url.replace(/lastroom=[0-9]+&?/, '');
        url = url.replace(/h=[0-9]+&?/, '');
        url = url.replace(/\?$/, '');
        window.location = url;
    }

});

-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to