I want to change the options in a dropdown menu in a website I use, so as to increase the number of rows it displays in a table. Since I use Firefox, my thought was to use GreaseMonkey, but I'm having trouble since most resources on this were written before the backward-compatibility breaking GM 2.0 update, because jQuery is involved, and also because my JS knowledge fits comfortably on the head of a pin.
Here's the full HTML code but the relevant excerpts are below. The dropdown code:
<select onchange="set_pagination(this.value)">
    <option value="10"></option>
    <option value="20"></option>
    <option value="30"></option>
    <option value="40"></option>
    <option value="50" selected="selected"></option>
</select>
And here's the set_pagination function:
function set_pagination(val) {
        jQuery('#my_word_bank_div').fadeTo('fast', 0.5);
        jQuery.post("/learningcenter/account/set_pagination", {number_of_rows_perpage: val}, function(data){
            if(data.error == "") reload_table(1);
            else alert(data.error);
        }, "json");
    }
My naive solution of redefining the function but setting val to a constant (e.g. 200) didn't work, probably due to my misuse of unsafeWindow.  I did find this similar request but I'm not sure it applies anymore.
 
    