User:קיפודנחש/common.js
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// temp: remove annoying message to look for interwiki at top. once the message goes away, delete.
$('.vector-language-sidebar-alert').closest('.mw-sidebar-action').remove();
importScript('User:קיפודנחש/hideHotcatMarkers.js');
importScript('User:קיפודנחש/watchlistMark.js');
importScript('User:Numbermaniac/goToTop.js');
importScript('User:קיפודנחש/searchPersistence.js');
importScript('User:קיפודנחש/viewstats.js');
if (mw.config.get('wgNamespaceNumber') == 14)
importScript('User:קיפודנחש/cat-a-lot.js');
if ($.inArray(mw.config.get('wgAction'), ['edit', 'submit']) + 1) {
importScript('User:קיפודנחש/TemplateParamWizard.js');
importScript('User:קיפודנחש/personalEdittools.js');
importScript('User:ערן/autocomplete.js');
}
mw.loader.using('mediawiki.util', function() {
$(function() {
mw.util.addPortletLink('p-tb', mw.util.getUrl('Special:PrefixIndex/' + mw.config.get('wgPageName') + '/'), 'Subpages');
if ($('h1#firstHeading:contains(Difference between revisions)').length) {
$('#contentSub').append( [ '{{diff',
mw.config.get( 'wgPageName' ),
mw.util.getParamValue( 'diff' ),
mw.util.getParamValue( 'oldid' ),
'This diff}}' ].join( '|' ) );
}
$('.editsection').each(function() {
var
edit = $(this),
top = edit.clone(),
a = top.find('a');
edit.after(top); a.text('top').attr('href', '#');
});
});
$(function() {
$('#wpTextbox1')
.after($('input.mw-summary'))
.after($('.editButtons').css({margin: '8px 0'}));
} );
});
importScript('User:קיפודנחש/pgnwrapper.js');
window.translatelinks_target = 'he';