1 2 3 4
#pagehistory li.before input[name="oldid"], #pagehistory li.after input[name="diff"] { visibility: hidden; }