Участник:Jack who built the house/common.js: различия между версиями
Содержимое удалено Содержимое добавлено
Нет описания правки |
Нет описания правки |
||
Строка 5:
// mw.loader.load('https://ru.wikipedia.org/w/index.php?title=MediaWiki:Gadget-referenceTooltips.css&action=raw&ctype=text/css', 'text/css');
}▼
var cdAllowEditOthersMsgs = true;
var cdAllowEditOthersComments = true;
Строка 30 ⟶ 10 :
importScript('Участник:Jack who built the house/convenientDiscussions.js');
mw.hook('cd.msgsReady').add(function () {
});
importScript('MediaWiki:Gadget-ShowJavascriptErrors.js', 'en');
var hash = navigator.userAgent.indexOf( 'Firefox' ) === -1 ?
location.hash : decodeURIComponent( location.hash );
if ( hash.indexOf( ' ' ) !== -1 ) {
Строка 45 ⟶ 26 :
console.log(typeof history);
if ( typeof history !== 'undefined' ) {
console.log( history.replaceState + '' );
history.replaceState( {}, '', '#' + restoredFragment );
}
Строка 53 ⟶ 34 :
}
}
var atpCodeStyler = true;
Строка 94 ⟶ 73 :
// if ($('#mw-fr-reviewform').length && (!$('#wpaccuracy:checked').length && !($('#mw-fr-submit-accept:disabled').length && $('#mw-fr-submit-unaccept:disabled').length)))
if ($('#mw-fr-reviewform').length && $('#mw-fr-reviewformlegend').text() != 'Перепроверить эту версию') {
▲}
mw.loader.using('mediawiki.util', function() {
Строка 124 ⟶ 104 :
$('.ace_editor').css('font-size', '13px');
$('.ace_editor').css('line-height', '1.2em');
}, 2000);
});
Строка 149 ⟶ 122 :
// Старая панель редактирования
// if ( [ 'edit', 'submit' ].includes( mw.config.get( 'wgAction' ) ) ) {
// }
// mw.hook( 'legacy.toolbar.ready' ).add( function () {
▲ imageFile: "//upload.wikimedia.org/wikipedia/commons/5/5e/Button_non.png",
// tagOpen: "<s>",
▲ speedTip: 'Зачёркнутый текст',
//
▲ sampleText: 'Зачёркнутый текст',
// });
▲ imageId: "mw-editbutton-strike"
// } );▼
▲} );
//importScript('Участник:Serhio Magpie/enhanceWikitextEditor.js');
|