User:Pcj/common.js

$(function { if (mw.config.get("wgAction")=="edit"||mw.config.get("wgAction")=="submit") $("body").dblclick(function  { if(event.target.name=="wpTextbox1") return; $("#wpPreview > input").click; }); });