Location detection fixes + Thumb control updates

* Updated the location function and testing to fix potential problems with page detection.
* Updated "blacklist thumb controls" so it gets along with links in thumbnail articles that aren't the thumbnail links (pool links in the pool gallery).