Gebruiker:Jos1950/Aanpassing
- MediaWiki common.css
- Monobook.css
- MediaWiki:Gadget-mijnKladblok
/* increase sidebar width */
- column-content { margin-left: -13em; }
- column-content #content { margin-left: 13em; }
- p-logo a, #p-logo a:hover { width: 13em; }
- p-cactions { left: 12.5em; }
.portlet { width: 12em; } div#column-content { margin-left: -12em; } div#content { margin-left: 12em; }
var customizeToolbar = function() { /* Your code goes here */ if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/7/74/Button_comment.png", "speedTip": "Comment visible only for editors", "tagOpen": "J ", "tagClose": " S", "sampleText": "Nieuw"} }
};
/* Check if view is in edit mode and that the required modules are available. Then, customize the toolbar . . . */ if ( $.inArray( mw.config.get( 'wgAction' ), [ 'edit', 'submit' ] ) !== -1 ) { mw.loader.using( 'user.options', function () { // This can be the string "0" if the user disabled the preference ([ [bugzilla:52542#c3]]) if ( mw.user.options.get( 'usebetatoolbar' ) == 1 && mw.user.options.get( 'showtoolbar' ) == 1 ) { $.when( mw.loader.using( 'ext.wikiEditor.toolbar' ), $.ready ).then( customizeToolbar ); } } ); } // Add the customizations to LiquidThreads' edit toolbar, if available mw.hook( 'ext.lqt.textareaCreated' ).add( customizeToolbar );
/* User links als in monobook */ /* Note to self: geen pop-ups, geen hotkeys */
addOnloadHook(function () {
with (document) { getElementById('pt-mytalk').innerHTML = '<a href="/wiki/User_talk:' + wgUserName + '">overleg</a>'; getElementById('pt-preferences').innerHTML = '<a href="/wiki/Special:Preferences">voorkeuren</a>'; getElementById('pt-watchlist').innerHTML = '<a href="/wiki/Special:Watchlist">volglijst</a>'; getElementById('pt-mycontris').innerHTML = '<a href="/wiki/Special:Contributions/' + wgUserName + '">bijdragen</a>'; getElementById('pt-logout').innerHTML = '<a href="/wiki/Special:UserLogout">afmelden</a>'; }
})
// === Unwatchlink per item op volglijst === // Geeft op de volglijst een link "niet volgen" bij elk artikel
addOnloadHook(function () {
// Alleen voor "Volglijst": if (window.location.href.indexOf("Speciaal:Volglijst") == -1) return; // Niet voor "Volglijst bekijken en bewerken": if (window.location.href.indexOf("Speciaal:Volglijst/edit") > 0) return; // Idem, via link op "Ruwe volglijst bewerken": if (window.location.href.indexOf("Special:Watchlist/raw") > 0) return; var query_prefix = "&action=unwatch"; var count = 0; var links = document.getElementById('content').getElementsByTagName('a'); for (var i = 0; i < links.length; i++) { if (links[i].href.substring(links[i].href.length-15) != '&action=history') continue; var unwatch = document.createElement('a'); count++; if (count>35) { break; } unwatch.href = "/w/index.php?title=" + encodeURIComponent(links[i].title) + query_prefix; unwatch.title = "Verwijder "+links[i].title+" van je volglijst"; unwatch.appendChild(document.createTextNode("unwatch")); links[i].parentNode.insertBefore(unwatch, links[i].nextSibling); // kluge to handle case where "diff" is unlinked: var delim = links[i].previousSibling; delim = (delim.nodeType == 3 ? delim.nodeValue : ""); links[i].parentNode.insertBefore(document.createTextNode(delim.replace(/^.*diff/, "")), unwatch); }
});
Gebruiker:Jos1950/skinname.js
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/7/74/Button_comment.png", "speedTip": "Comment visible only for editors", "tagOpen": "J ", "tagClose": " S", "sampleText": "Nieuw"} }