Deposed Gawker Editor in Chief A.J. Daulerio had the last laugh at a party thrown by his ex-boss Nick Denton Thursday night. As Daulerio’s replacement, John Cook, made a speech at the literati-filled bash at Denton’s swanky SoHo loft, spies say, two masked men sneaked in to spray graffiti in the hallway outside Denton’s pad. The words “AJ Daulerio” were scrawled in dripping black spray paint along the pristine white wall. “It was during Cook’s speech while everyone was distracted,” a spy said. “It was pretty inspired.” “Nick Denton’s hallway just got bombed,” a guest tweeted, with a picture of the artsy damage. Sources say the taggers were from notorious graffiti-artist group Peter Pan Posse. Denton apparently took the vandalism in stride — and sources said the stunt was a surprise to Daulerio. “Nick was very cool and didn’t seem pissed,” a spy said. “He was quite amused.” Denton announced Daulerio’s departure in January after a year on the job, calling him “bold, infuriating, unpredictable . . . and often brilliant.”