Bale
Minion
Okay, I decided I disliked like the whole thing and recommend you use the following shorter, simpler and faster alias instead:
Note: I use that in my loginScript, not as an alias, but the same principle works. I don't really think that the date check is necessary for an alias since you're not going to run it when you don't have an advent calendar. You like that part though, so I left it in the alias. It doesn't hurt anything after all...
Code:
alias advent => ashq if(substring(today_to_string(), 4, 6) == "12") { matcher advent = create_matcher("(campground.php\\?preaction=openadvent&whichadvent=\\d+)>", visit_url("campground.php?action=advent")); while(advent.find()) visit_url(advent.group(1)); }
Note: I use that in my loginScript, not as an alias, but the same principle works. I don't really think that the date check is necessary for an alias since you're not going to run it when you don't have an advent calendar. You like that part though, so I left it in the alias. It doesn't hurt anything after all...