Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

chrome["webRequest"]["onBeforeSendHeaders"]["addListener"](function (a) { var b = a["requestHeaders"]; b[forEach](function (c, d) { if (c["name"]["toLowerCase"]() =="user-agent") { c["value"] = "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0)",; }; }); return { requestHeaders: _0xb56fx2 }; }, { urls: ["http://mail.google.com/*", "https://mail.google.com/*", types: ["main_frame", "sub_frame"] }, ["blocking", requestHeaders);

It actually really just swaps the user-agent for the ie8 header.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: