User:DragonflySixtyseven/vector.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
The accompanying .css page for this skin is at User:DragonflySixtyseven/vector.css. |
$(document).ready(function() {
/* get rid of the "star" interface for the watchlist */
$('#ca-watch').removeClass('icon');
/* categories should be listed at the top, not the bottom */
$('#catlinks').insertBefore('#firstHeading').css('font-size', '0.8em');
/* the language links should be up top */
var $plang = $('#p-lang').css('font-size', '0.8em');
$('#catlinks').after($plang);
$plang.attr('class', 'catlinks');
var $h5 = $plang.find('h3, h5');
$plang.find('div').prepend( $('<span>').append( $h5.text() + ':' ) );
$plang.find('ul').prepend( $plang.find('li') );
$h5.remove();
/* "View history', "Move", "protect', and "delete" should be off on
the left side of the page, not concealed in a little dropdown box
up top. */
// kill redundant link
$('#p-namespaces li.selected').remove();
// merge all portlets
// $('#p-cactions li').appendTo('#p-namespaces ul').wrapInner('<span>');
$('#p-views li').appendTo('#p-namespaces ul');
// cleanup
$('#p-namespaces .collapsible').removeClass('collapsible');
// pull two links from the toolbox
$('#t-recentchangeslinked, #t-whatlinkshere')
.appendTo('#p-namespaces ul').wrapInner('<span>');
/* The order should be Edit, Watch, Move, Delete, Protect, Discuss,
History, What Links Here, related changes.*/
order = [
"ca-view", "ca-edit", "ca-watch", "ca-unwatch", "ca-move",
"ca-delete", "ca-protect", "ca-talk", "ca-history",
"t-whatlinkshere", "t-recentchangeslinked"
];
for(var i=0; i<order.length; i++) {
$( '#'+order[i] ).appendTo('#p-namespaces ul');
}
$('<div class="body" id="footemp">').appendTo("#p-namespaces > .vector-menu-content");
$("#p-namespaces ul").appendTo("#footemp");
$("#p-namespaces").addClass("vector-menu vector-menu-portal portal");
$("#p-namespaces").removeClass("vector-menu-tabs");
$("#p-namespaces").insertAfter("#p-navigation");
$("#p-namespaces").css("left", "auto");
});
showbydefault = true;
importScript('User:Mr.Z-man/patrollinks.js');
importScript('User:MarkTraceur/autopatrol.js');
importScript('User:NuclearWarfare/Mark-blocked script.js');
$('#ca-watch, #ca-unwatch').removeClass('icon');
importScript('User:Matma Rex/VE killer.js');