User:Stoltzld/common.js

console.log("exvius personal common js enabled"); mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Jackmcbarn/advancedtemplatesandbox.js&action=raw&ctype=text/javascript'); mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Frietjes/findargdups.js&action=raw&ctype=text/javascript'); mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript');

//importArticles({ //	type: 'script', //	articles: [ //		'u:dev:MediaWiki:JWB/load.js', //		] //});

function activateTabberNavigation { tabbers = $(".tabber"); console.log(tabbers); if(tabbers) { maincontent = $(".row"); maincontent.css("left-margin","3ex;"); } }

function testModifyNetBarBox { var netbarboxright = $(".wiki-exvius_gamepedia_en .netbar-box.reverb-bell"); netbarboxright.css("background","orange"); console.log(netbarboxright); }

function testResizeWikiMenu { wikimenu = $(".wiki-exvius_gamepedia_en #header-tools li"); var fontsize = parseInt(wikimenu.css("font-size")); console.log(fontsize); fontsize = fontsize - 2; wikimenu.each(function (jqobj) { jqobj.css("font-size",fontsize); }); console.log(wikimenu); }

function testModifyCSSTarget { var targets = []; targets[0] = $(".wiki-exvius_gamepedia_en #jstarget0"); targets[1] = $(".wiki-exvius_gamepedia_en #jstarget1"); for (var target in targets)	{ targets[target].css("background","gray").css("min-height","2ex"); if(targets[target].height < 1) { targets[target].css("background","#eeeeee").css("min-height","1em"); }		console.log(targets[target].height); } }

jQuery( document ).ready( function ( $ ) {	console.log("exvius ready function tripped");	if(1) { activateTabberNavigation; }	if(1) { testModifyNetBarBox; }	if(1) { testModifyCSSTarget; }	if(0) { testResizeWikiMenu; }	console.log("exvius ready function finished"); });