The black wires are already connected together. Connect in the red wire to this also, and the switch will be bypassed.
Remember you must put a junction box cover over the hole, you cannot bury it in plaster or otherwise make the cover inaccessible.
Based on nothing but the photo, tie all three wires together with a wire nut. It looks like 34 is the mains LINE looping through, and the red wire is the switched output going somewhere else. Be careful - if this really is mains wiring, a mistake will make something go boom.
From the little schematic on the switch, it seems that you have two inputs per side so the 2 black wires should have the same purpose (from your photo i think one of them is grounded and the other "brings" ground to something else, so maybe you have to short them). Given this you can just short the red wire with the black and the switch will be bypassed. Do this only if you are sure of where are this wires coming from.