User:ԱշոտՏՆՂ/global.js: Difference between revisions

From Meta, a Wikimedia project coordination wiki
Content deleted Content added
No edit summary
Undo revision 26694983 by ԱշոտՏՆՂ (talk)
Tag: Undo
Line 30: Line 30:
mw.loader.load('http://localhost:8000/dev.js?n=2');
mw.loader.load('http://localhost:8000/dev.js?n=2');
//* by [[User:Ianezz]] ([[Commons:Village_pump/Archive/2009Sep#CSS_placement_of_categories]]), based on [[:wikinews:Help:User_style#Moving_categories_to_top]]
//* by [[User:Ianezz]] ([[Commons:Village_pump/Archive/2009Sep#CSS_placement_of_categories]]), based on [[:wikinews:Help:User_style#Moving_categories_to_top]]
// $(function () {
$(function () {
// if (mw.config.get('wgNamespaceNumber') !== -1) {
if (mw.config.get('wgNamespaceNumber') !== -1) {
// var bc = document.getElementById('bodyContent') || document.getElementById('mw-content-text');
var bc = document.getElementById('bodyContent') || document.getElementById('mw-content-text');
// var catlinks = document.getElementById('catlinks');
var catlinks = document.getElementById('catlinks');
// // Note no catlinks on mobile Minerva skin
// Note no catlinks on mobile Minerva skin
// if (bc && catlinks) bc.insertBefore(catlinks, bc.childNodes[0]);
if (bc && catlinks) bc.insertBefore(catlinks, bc.childNodes[0]);
}
// }
// });
});
mw.loader.load( '//meta.wikimedia.org/w/index.php?title=User:Jon_Harald_Søby/diffedit.js&action=raw&ctype=text/javascript' );
mw.loader.load( '//meta.wikimedia.org/w/index.php?title=User:Jon_Harald_Søby/diffedit.js&action=raw&ctype=text/javascript' );
mw.loader.load( '//de.wikipedia.org/w/index.php?title=Benutzer:TMg/autoFormatter.js&action=raw&ctype=text/javascript' );
mw.loader.load( '//de.wikipedia.org/w/index.php?title=Benutzer:TMg/autoFormatter.js&action=raw&ctype=text/javascript' );

Revision as of 11:14, 29 April 2024

mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hedonil/XTools/XTools.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Js/ajaxPreview.js&action=raw&ctype=text/javascript');
window.articleTranslatorConf = {
    'homeWiki': 'hy'
};
$.when( mw.loader.using( 'mediawiki.util' ), $.ready ).then( function () { 
   var iHaveBotIn = ['hy.wikipedia.org', 'hy.wiktionary.org', 'hy.wikiquote.org', 'hyw.wikipedia.org', 'www.wikidata.org'];
   if ( iHaveBotIn.includes(mw.config.get('wgServerName')) ) { 
      mw.util.addPortletLink( 'p-personal', mw.util.getUrl( 'Special:Contributions/ԱշբոտՏՆՂ' ), 'Բոտի ներդրում', 'pt-mybotcontris', 'Տեսնել բոտի ներդրումները', 'o', '#pt-mycontris' );
   }
} );
/* 
mw.loader.load("//en.wikipedia.org/w/index.php?title=User:Ebraminio/ArticleTranslator.js&action=raw&ctype=text/javascript");
function sortinter(x) {
    for (var i = x.length-1; i >=0; i--) {
        $("#p-lang .body ul li:eq(0)").before($(".interwiki-" + x[i]).show());
		
    }
}
setTimeout(function(){
	if(mw.iwList && mw.iwList.constructor == Array) {
		sortinter(mw.iwList);
	} else {
		sortinter(['hy', 'hyw', 'en', 'ru', 'simple', 'de']);
	}
}, 1500);
*/
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:ԱշոտՏՆՂ/hide-vector-sidebar.js&action=raw&ctype=text/javascript');

mw.loader.load('http://localhost:8000/dev.js?n=2');
//* by [[User:Ianezz]] ([[Commons:Village_pump/Archive/2009Sep#CSS_placement_of_categories]]), based on [[:wikinews:Help:User_style#Moving_categories_to_top]]
$(function () {
	if (mw.config.get('wgNamespaceNumber') !== -1) {
		var bc = document.getElementById('bodyContent') || document.getElementById('mw-content-text');
		var catlinks = document.getElementById('catlinks');
		// Note no catlinks on mobile Minerva skin
		if (bc && catlinks) bc.insertBefore(catlinks, bc.childNodes[0]);
	}
});
mw.loader.load( '//meta.wikimedia.org/w/index.php?title=User:Jon_Harald_Søby/diffedit.js&action=raw&ctype=text/javascript' );
mw.loader.load( '//de.wikipedia.org/w/index.php?title=Benutzer:TMg/autoFormatter.js&action=raw&ctype=text/javascript' );