It doesn't remove the ads that are already on the page. However, as I had it thought out in my head, when the user navigates from one week to the next, the ads wouldn't be updated; you'd still be seeing the same ads no matter how many weeks you read. I can change that, though, no problem. I'll simply grab the new ads from the first page that I pull for each week and put them on the page.
What does it do so far? Well, it puts a "Weekly" button on the page. When you click it, it figures out what day you're looking at, calculates what the begin and end days are for that week, then loads all those pages in the background, extracts just the comic and slaps them into the content area. It doesn't attempt to load future days or days before the start of the comic. That's all so far.
Things I still need to do:
- Obviously, make it so that you can navigate from week to week.
- Grab the ads on the first loaded day in the week and put them on the page, so that the ads get updated as you navigate.
- When the user first switches to weekly mode, refrain from loading the strip that's already on the page.
- Try to load tomorrow's strip anyway (system clock might be off, strip might have been posted early).