Home › News › The Web
Four lines of code to hop over The New York Times paywall
Eurica wrote a bookmarklet that you can put on your bookmarks toolbar to get around the block. Anytime nytimes.com blocks you on a page, all you have to do is click it to show the usual content (it does nothing on any other website). The solution was written in just four lines of code, one of which is a comment:
//Prototype is already installed on NYTimes pages, so I'll use that:
$('overlay').hide();
$('gatewayCreative').hide();
$(document.body).setStyle( { overflow:'scroll' } );
The New York Times subscription plan was officially announced last week. Readers who view more than 20 articles will have to pay $15 a month to access NYTimes.com and the paper's mobile app, $20 for the site and its iPad app, or $35 for all three platforms. Subscribers to the physical paper will receive unlimited access across all digital platforms except e-readers.
The block hasn't yet started for everyone: that's going to happen on March 28, 2011. The 20-article cap was first applied to Canada, however, as the site needed time to find unresolved bugs before the feature is slammed by US visitors. Apparently Canadians are just as interested in climbing over virtual walls as their American counterparts are.
Related Stories
User Comments (8)
Post a comment|
posermobile89
on March 22, 2011 4:46 PM |
What a horrible idea to have to pay but to implement it in java script ... -_- Love seeing jquery though |
|
posermobile89
on March 22, 2011 4:47 PM |
Also, I bet they will quickly change this to be server side |
|
prismatics
on March 22, 2011 4:50 PM |
I imagine this could be labeled as one of the "bugs" they were looking for. Looks like they will have to get a little more creative than using Prototype. |
|
Guest
on March 22, 2011 4:59 PM |
Obvious.. i just don't read the NY Times |
|
Emin3nce
on March 22, 2011 5:33 PM |
I read the latest news without paying... and most sites just counter-source anyway. |
|
Guest
on March 22, 2011 10:31 PM |
...Why exactly is the security on the client-side? Clearly some intern thought he was being clever. |
|
Guest
on March 23, 2011 12:46 PM |
Technically that's three lines of code and one line of comments. |
|
olibenu
on March 25, 2011 8:18 AM |
ok, so your connection is used to ship the pages from their server to your browser and then you can not see it? not fair! |
Most Popular
| Trending | Featured |
-
iOS 5.1.1 untethered jailbreak tool released, supports 4S, iPad 3
-
After five days, Facebook ranks as worst IPO flop of the decade
-
Rumor: Windows 8 RC will launch June 1, will ship with Adobe Flash
-
Rumor: AMD "Piledriver" FX CPU production to begin Q3 2012
-
Is Apple's USB wall adapter really worth $29?
Editors' Laptop Picks
Subscribe to TechSpot
Get free exclusive content, learn about new features and tech breaking news.