How to create dynamic bookmark in Firefox?

Solution 1:

Thanks for the opportunity to learn something! Here's what I came up with. Create a bookmark with the following in the Location field.

javascript:function z() { var d = new Date(); ym = d.getFullYear() + '-' + (d.getMonth()+1) + '-'; return 'http://some.site/page?from='+ym+'01&to='+ym+d.getDate(); } window.open(z(),"_blank");

It looks like you wanted from the first of the current month to the current date, correct?