1 var page = require('webpage').create();
2 page.viewportSize = { width: 320, height: 480 };
3 page.open('http://news.google.com/news/i/section?&topic=t', function (status) {
4 if (status !== 'success') {
5 console.log('Unable to access the network!');
7 page.evaluate(function () {
8 var body = document.body;
9 body.style.backgroundColor = '#fff';
10 body.querySelector('div#title-block').style.display = 'none';
11 body.querySelector('form#edition-picker-form').parentElement.parentElement.style.display = 'none';
13 page.render('technews.png');