Обговорення MediaWiki:Onlyifediting.js

Вміст сторінки не підтримується іншими мовами.
Матеріал з Вікіновин — вільних новин.

The current version of this script is incompatible with current MediaWiki. Pleaes replace the lines:


addOnloadHook(function() {
var Spec1 = document.getElementById("editpage-copywarn");
if (!Spec1) return;
var S1 = Spec1.innerHTML;
S1 = S1.replace("onclick=\"insertTags(\'\\\'\',\'\',\'\');return false\" href=\"#\">'</a> <small>(апостроф)</small>", "onclick=\"insertTags(\'\\\'\',\'\',\'\');return false\" href=\"#\">' <small>(апостроф)</small></a>")
Spec1.innerHTML = S1 
});

with

$( function() {
 $( '#editpage-copywarn a.mw-charinsert-item[data-mw-charinsert-start="\'"][data-mw-charinsert-end=""]' ).append( $( '<small> (апостроф)</small>' ) );
});

You may have to also remove the word (апостроф) from mediawiki:copyrightwarning as this might cause it to be duplicated (pinging User:NickK, User:Base).