How do I remove CSS from PhantomJS

page.onResourceRequested = function(requestData, request) {
if ((/http:\/\/.+?\.css/gi).test(requestData['url']) || requestData.headers['Content-Type'] == 'text/css') {
    console.log('The url of the request is matching. Aborting: ' + requestData['url']);
    request.abort();
}
};

see more