MediaWiki:Gadget-editSummary.js: различия между версиями

м CSS>>DHTML. Другой очевидной возможности нет
м --
Строка 4: Строка 4:
  if (!sum || (sum.form.wpSection && sum.form.wpSection.value == 'new')) return;
  if (!sum || (sum.form.wpSection && sum.form.wpSection.value == 'new')) return;
  var sp = document.createElement('span'); sp.id = 'userSummaryButtonsA';
  var sp = document.createElement('span'); sp.id = 'userSummaryButtonsA';
sp.style = "margin-top:-1000px";
  sum.parentNode.insertBefore(sp, sum.nextSibling);
  sum.parentNode.insertBefore(sp, sum.nextSibling);
  sum.parentNode.insertBefore(document.createElement('br'), sum.nextSibling);
  sum.parentNode.insertBefore(document.createElement('br'), sum.nextSibling);