Gebruiker:Marek69/vector.js
Opmerking: na het publiceren moet je misschien je browsercache legen om de veranderingen te zien.
- Firefox / Safari: houd Shift ingedrukt terwijl u:je op Vernieuwen klikt of druk op Ctrl-F5 of Ctrl-R (⌘-Shift-R op een Mac)
- Google Chrome: druk op Ctrl-Shift-R (⌘-Shift-R op een Mac)
- Edge: houd Ctrl ingedrukt terwijl u:je op Vernieuwen klikt of druk op Ctrl-F5.
// [[File:Krinkle_RTRC.js]]
mw.loader.load('https://meta.wikimedia.org/w/index.php?title=User:Krinkle/RTRC.js&action=raw&ctype=text/javascript');
importScript('Gebruiker:Silver Spoon/dpzoeker.js')
importScript('User:Topbanana/RLRL_SR_Utility.js' );
// changes the drop-down menu in Vector into tabs from: en:User:Svick/DropDownToTabs.js
function fixTab(item) {
if (item.firstChild.innerHTML.indexOf('<span>') == -1)
item.firstChild.innerHTML = "<span>" + item.firstChild.innerHTML + "</span>";
}
$(function() {
document.getElementById('p-cactions').className = 'vectorTabs';
var elems = document.getElementById('p-cactions').getElementsByTagName('li');
for (var i = 0; i < elems.length; i++)
fixTab(elems[i]);
})
function Test() {
var currentTime = new Date();
var maand = currentTime.getMonth();
var jaar = currentTime.getFullYear();
mw.util.addPortletLink('p-cactions', 'http://stats.grok.se/nl/' + jaar + (maand < 10 ? "0" : "") + maand + "/" + wgPageName, "mnd", "ca-stats", "See article stats");
}
$(Test);
function Test2() {
var currentTime = new Date();
var jaar = currentTime.getFullYear();
mw.util.addPortletLink('p-cactions', 'http://stats.grok.se/nl/' + jaar + "/" + wgPageName, "jr", "ca-stats", "See article stats");
}
$(Test2);
function EditStats() {
if (wgNamespaceNumber >= 0) mw.util.addPortletLink('p-cactions', 'http://toolserver.org/~daniel/WikiSense/Contributors.php?wikilang=nl&wikifam=.wiki.x.io&page=' +wgPageName +'&since=&until=&grouped=on&order=-edit_count&max=100&order=-edit_count&format=html' , "stats", "ca-stats", "Welke gebruikers droegen het meest bij op deze pagina");
}
$(EditStats);
//Knopje met cross-wiki bijdragen
function CrossWikiContr() {
var gebruikersnaam = wgTitle.split("/");
if (wgNamespaceNumber == 2 || wgNamespaceNumber == 3) mw.util.addPortletLink('p-cactions', 'http://toolserver.org/~luxo/contributions/contributions.php?user=' + gebruikersnaam[0] + '&blocks=true&lang=', "cw", "cw-contrib", "Cross-wiki bijdragen van deze gebruiker");
}
$(CrossWikiContr);
//Zet dropdown menu om in tabs (overgenomen van http://en.wiki.x.io/wiki/User:Svick/DropDownToTabs.js)
function fixTab(item) {
if (item.firstChild.innerHTML.indexOf('<span>') == -1)
item.firstChild.innerHTML = "<span>" + item.firstChild.innerHTML + "</span>";
}
$(function() {
document.getElementById('p-cactions').className = 'vectorTabs';
var elems = document.getElementById('p-cactions').getElementsByTagName('li');
for (var i = 0; i < elems.length; i++)
fixTab(elems[i]);
})
//Verander wat tabnamen
$(function(){
jQuery("#ca-history a span").text("Geschiedenis");
jQuery("#ca-addsection a span").text("+");
jQuery("#ca-edit a span").text("Bewerk");
jQuery("#ca-delete a span").text("Verwijder");
jQuery("#ca-move a span").text("Wijzig titel");
jQuery("#ca-protect a span").text("Beveilig");
});
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Krinkle/Scripts/CVNSimpleOverlay_wiki.js&action=raw&ctype=text/javascript'); //Anti-vandalisme overlay
//Op lemma's zoeken naar dp's
importScript('Gebruiker:Silver Spoon/dpzoeker.js');
//----------------------------------------------------------------[[VectorSearchNav]]---------------------
//
// Description: Puts the searchbar in the left column in the Vector-skin.
// Author: [[meta:User:Krinkle]]
// Version: 1.04
// URL: http://meta.wikimedia.org/wiki/User:Krinkle/Scripts/VectorSearchNav
// Stats: [[File:Krinkle_VectorSearchNav.js]]
mw.loader.load('https://meta.wikimedia.org/w/index.php?title=User:Krinkle/Scripts/VectorSearchNav.js&action=raw&ctype=text/javascript');
//Begin query
jQuery(function(){ $j = jQuery;
// Move bar to the left
$("#p-search").prependTo("#mw-panel");
$("#p-search").attr("id", "custom-search");
// Make it look better
$("#custom-search").attr("class", "portal persistent");
$("#p-navigation").removeClass("first");
$("#simpleSearch").attr("class", "body");
$("#searchInput").css("width", "90px");
// Fix up the dropdown menu
$("div.vectorMenu ul").css("right", "0");
$("#right-navigation").css("margin-right", "1em");
$("#custom-search").append('<style type="text/css">#simpleSearch label { left: 0.5em !important; } .suggestions { left: 19px !important; } </style>');
$("body > .suggestions").css("left", "19px !important").css("right", "auto !important");
//Kwikitest
$("div#simpleSearch").css("width", "130px");
$("button#searchButton").css("margin-right", "7px");
});
importScript('Gebruiker:Basvb/nuwegscript.js'); // Laat nuwegs zien