Jump to content

User:TestAccountDefaultSettings/common.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by TestAccountDefaultSettings (talk | contribs) at 02:19, 25 May 2014 (testing custom common.js from: User:קיפודנחש). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
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.
importScript('User:קיפודנחש/common.js/personalScript.js');
importScript('User:קיפודנחש/hideHotcatMarkers.js');
importScript('User:קיפודנחש/watchlistMark.js');
importScript('User:Numbermaniac/goToTop.js');
mw.loader.load('//www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-CodeEditor.js&action=raw&ctype=text/javascript&dontcountme=s');
 
if (wgNamespaceNumber == 14)
	importScript('User:קיפודנחש/cat-a-lot.js');
 
if ($.inArray(wgAction, ['edit', 'submit']) + 1) {
	importScript('User:קיפודנחש/TemplateParamWizard.js');
	importScript('User:קיפודנחש/personalEdittools.js');
	importScript('User:ערן/autocomplete.js');
}
 
$(function() {
	mw.util.addPortletLink('p-tb', mw.util.getUrl('Special:PrefixIndex/' + 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', '#');
	});
});
 
 
var pagesToCollect = [
        {page: 'User:קיפודנחש/sandbox', caption: 'Lizzy'}
];
 
// load pageCollector script. commented out - i don't really need it.
// importScript('User:קיפודנחש/pageCollector.js');
 
window.charinsertCustom = { Hiragana: "ぁ あ ぃ い ぅ う ぇ え ぉ お か が き ぎ く ぐ け げ こ ご さ ざ し じ す ず せ ぜ そ ぞ た だ ち ぢ っ つ づ て で と ど な に ぬ ね の は ば ぱ ひ び ぴ ふ ぶ ぷ へ べ ぺ ほ ぼ ぽ ま み む め も ゃ や ゅ ゆ ょ よ ら り る れ ろ ゎ わ ゐ ゑ を ん ゔ ゕ ゖ゙ ゚ ゛ ゜ ゝ ゞ ゟ" };
 
$(function() { 
	$('#wpTextbox1')
	.after($('input.mw-summary'))
	.after($('.editButtons').css({margin: '8px 0'}))
} );
 
importScript('User:קיפודנחש/pgnviewer.js');