Oh, you’re the NY Times guy
The dumbest thing I’m famous for
HTTP Request
JavaScript
>20 items?
Pop-over
NYTimes Pay Wall
HTTP Request
JavaScript
>20 items?
Pop-over
Click Me
JavaScript
NYTClean, er NYClean
Bookmarklet:
javascript:(function(){
var s=document.createElement('script');s.setAttribute('src','http://toys.euri.ca/nyt.js');document.getElementsByTagName('head')[0].appendChild(s);
})();
Original Code:
$('overlay').hide();$('gatewayCreative').hide();$(document.body).setStyle( { overflow:'scroll' } );
Second Code:
$('overlay').hide();$('gatewayCreative').hide();$(document.body).setStyle( { overflow:'scroll' } );
//April 28th update:document.getElementsByTagName("html")[0]
.style.overflow='';
2 or 3 visitors a day
2 to 10 000 visitors a day
try {//Get the first graph:var url = window.location.href;new Ajax.Request(url, { method: 'get', onSuccess: function(transport) { var notice = $('notice'); fulltext = transport.responseText;
//And here's my dirty secret, I don't know how to manipulate the DOM with prototype.jsvar pattern=/\/NYT_CORRECTION_TOP>\n <p>\n(.*)<\/p>/gi;text = pattern.exec(fulltext)firstgraph = text[1];
}});
} catch (e) {firstgraph= "[NYTClean note, I'm looking into getting this paragraph back.]";
}
text2 = $('article').getElementsByClassName('articleBody')[0];if(text2.innerHTML.indexOf("20 free articles")>0) {
text2.innerHTML = firstgraph;}
Grumble:
Tools
Awesome• Real time analytics– Clicky or Chartbeat
• .htaccess redirect to static pages
• Disqus comments• The Atlantic• Social media• Google Alerts
Boo• Shared hosting on
GoDaddy• Default Wordpress
settings• Apache KeepAlive• Old media (CNN claims)• Social media
Fun stuff you get to do
• TV and Radio interviews
• Run experiments on visitors– adBlock, statistics, A/B tests
• Make over $5 in advertising revenue!
Always be releasingLesson Learned: