Saturday, July 27, 2013

Cilent Controlled Subscriber Content

Site, for this post I shall dub you fun-trails-for-hiking.com. Here is another case where paid subscriber content can be reached with some JavaScript tweaking. These happen often.

Here's the idea - they say you must be a premium subscriber to see a larger area of the map. Instead you change

<div id="trailBox" class="topoSml">

to

<div id="trailBox" class="topoLrg">  or <div id="trailBox" class="topoMed">

When coding on a team, it's really helpful to use descriptive variable names (wasn't it the author of "Clean Code" that said if your variable names work you don't need any comments explaining code?). No where else on the page are the words "topoLrg" or "topoMed", but because the site looks well put together and professional, it's reasonable to infer that the map sizes other than "small" or named similarly.