Well, I was in the mood for some PHP earlier, and was also working on adding Yahoo’s robots-nocontent tags to my pages, so I decided to waste my whole day relearning regexp stuff (my most hated aspect of php because I can never remember the expressions.. btw this regex cheat sheet is useful if you have a bad memory like me) and developing a little tool that helps you see what you’ve blocked out and what you haven’t. For those of you who have already started playing around with this tag, you probably noticed (like me) that it’s a real pain in the ass getting everything blocked out the way you want it, without accidentally screwing up your divs, spans, paragraphs, etc., or even worse, marking valuable content as robots-nocontent.
This little tool will check your pages and highlight the parts you’ve blocked out in yellow so you can get a visual idea of what you’re telling Yahoo is content and what you’re saying isn’t content. You can also click a link at the top of your results page to toggle between a full code view and one that just shows what you haven’t blocked out.
Hopefully you get some use out of it, because I probably shouldn’t have spent my whole day coding it — (Yeah, I’m rusty with PHP, it probably shouldn’t have taken a whole day).
BTW, Some people are bound to notice little mistakes or glitches. If you happen to find something that needs fixin’, please let me know.