jquery + google analytics + greasemonkey

Not a total noob when it comes to JS, but started yesterday with JQuery… :)

I want to make GA show 50 lines at a time by default – using GM + JQuery!
(not in the internal settings).

Plus, i dont want to make any request by myself – GA must do it.
I just want to choose the number “50″ in the Select/ComboBox/DropDown and trigger the default action.
(a POST, if im not mistaken).

what i got so far:

$  (".ACTION-toggleRowShow option[value=50]").attr("selected",true).click();

it works 50%.
all pages start with “50″ selected, but the extra lines are not shown.
maybe its not triggering anything?

with $ ('.ACTION-toggleRowShow').val('50').change();
and $ ('.ACTION-toggleRowShow').val('50').trigger();
and $ ('.ACTION-toggleRowShow').get(0).selectedIndex = 2;

i get the same.

thanks all.

newest questions tagged jquery – Stack Overflow

About Admin