
如果你热衷于寻找各种彩蛋代码,这里或许有一个不错的发现。《华盛顿邮报》记者克里斯托弗·英格拉汉姆(Christopher Ingraham)在 Twitter 上爆料,特朗普和共和党的某些网站中藏有一段讽刺奥巴马沉迷高尔夫球的代码,尽管现在这个“彩蛋”已经不复存在。
The website of Donald Trump, who has spent several days in a row at the golf course, is coded to serve up the following message in the event of an internal server error: https://t.co/zrWpyMXRcz pic.twitter.com/wiQSQNNzw0
— Christopher Ingraham (@_cingraham) December 28, 2017
笔者发文前,该彩蛋还健在
UPDATE: The golf error message has been removed from the Trump and GOP websites. They also fixed the javascript "=" vs "==" problem. Still not clear when these messages would actually display, since the actual 404 (and presumably 500) page displays a different message pic.twitter.com/Z7dmyQ5smy
— Christopher Ingraham (@_cingraham) December 29, 2017
然而发文后不久就被移除了
我们检查了网页源代码后,发现的确有类似的存在。在 action.donaldjtrump.com 网站上会出现“呃,糟了!这里好像出了点问题。与奥巴马不同的是,我们努力解决问题,而不是躲到高尔夫球场…”这样的内容,比如 https://action.donaldjtrump.com/inaugural-year-approval-poll/ 这个号召乡民投票特朗普和奥巴马第一年政绩的页面(他是有多爱奥巴马……),但 donaldjtrump.com 主站上并没有类似的代码。
英格拉汉姆指出,包括 GOP.com 在内的某些共和党官网上也会出现类似的“彩蛋”。在这些网站上,它们变成了文案如下的 404 错误提示所替代。
“希拉里·克林顿和这个链接有什么相同点?她们都… 挂了”
无论是对奥巴马还是克林顿的嘲讽都透露着一股特朗普的痕迹。但不管怎么说,起码我们可以肯定的是,这两者都不会是弗洛伊德的心理测试题。
代码本身还有一个明显的错误,在该用“==”的地方使用了“=”替换,所以这段“奥巴马”代码永远不会被加载出现。它会是一个“耿直”的错误么?或者说,所有的这些只是一种巧合?
It will never actually serve that message, there's an error in the JavaScript…any error will give the 404 message because they used assignment (=) instead of equality (==) pic.twitter.com/un8LJM9Fsu
— Paul Glenn (@pdglenn) December 28, 2017
再一次,向奥巴马致敬。
Trump’s website is coded with a broken server error message that blames Obama
注:本文内容来自互联网,旨在为开发者提供分享、交流的平台。如有涉及文章版权等事宜,请你联系站长进行处理。