Top Banner
Oh, you’re the NY Times guy The dumbest thing I’m famous for
19

Oh, you’re the NY times guy

May 11, 2015

Download

Business

David Hayes

My
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Oh, you’re the NY times guy

Oh, you’re the NY Times guy

The dumbest thing I’m famous for

Page 2: Oh, you’re the NY times guy
Page 3: Oh, you’re the NY times guy

HTTP Request

JavaScript

>20 items?

Pop-over

NYTimes Pay Wall

Page 4: Oh, you’re the NY times guy

HTTP Request

JavaScript

>20 items?

Pop-over

Click Me

JavaScript

NYTClean, er NYClean

Page 5: Oh, you’re the NY times guy

Bookmarklet:

javascript:(function(){

var s=document.createElement('script');s.setAttribute('src','http://toys.euri.ca/nyt.js');document.getElementsByTagName('head')[0].appendChild(s);

})();

Page 6: Oh, you’re the NY times guy

Original Code:

$('overlay').hide();$('gatewayCreative').hide();$(document.body).setStyle( { overflow:'scroll' } );

Page 7: Oh, you’re the NY times guy
Page 8: Oh, you’re the NY times guy

Second Code:

$('overlay').hide();$('gatewayCreative').hide();$(document.body).setStyle( { overflow:'scroll' } );

//April 28th update:document.getElementsByTagName("html")[0]

.style.overflow='';

Page 9: Oh, you’re the NY times guy

2 or 3 visitors a day

2 to 10 000 visitors a day

Page 10: Oh, you’re the NY times guy
Page 11: Oh, you’re the NY times guy

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:

Page 12: Oh, you’re the NY times guy
Page 13: Oh, you’re the NY times guy
Page 14: Oh, you’re the NY times guy
Page 15: Oh, you’re the NY times guy
Page 16: Oh, you’re the NY times guy

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

Page 17: Oh, you’re the NY times guy
Page 18: Oh, you’re the NY times guy

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!

Page 19: Oh, you’re the NY times guy

Always be releasingLesson Learned: