Hacker News new | ask | show | jobs
by exikyut 1855 days ago
Yay; the /player endpoint can also use XHR. Add the following before the 'return' in the JSON.parse intercept:

  if (typeof data['adPlacements'] !== 'undefined') {   
    data.adPlacements = [];
    data.playerAds = [];
  }