User:Pruneau/monobook.js
Jump to navigation
Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
The accompanying .css page for this skin is at User:Pruneau/monobook.css. |
- Report page listing warnings and errors.
// Add tab to quickly tag for personality rights
importScript( 'User:Pruneau/personality.js' );
mw.loader.load('https://commons.wikimedia.org/w/index.php?title=User:Patstuart/Flickrreview.js'
+ '&action=raw&ctype=text/javascript');
importScript('User:Magnus_Manske/category_intersection.js');
// Add a link to check Sul util
if ( wgNamespaceNumber == 2 || wgNamespaceNumber==3) addOnloadHook ( poty_check ) ;
function poty_check () {
var toolbox = document.getElementById ( "p-tb" ) ;
if ( !toolbox ) return ;
var ul = toolbox.getElementsByTagName ( "UL" ) [0] ;
var li = document.createElement ( "LI" ) ;
var a = document.createElement ( "A" ) ;
a.appendChild ( document.createTextNode ( "SUL util" ) ) ;
a.href = "http://toolserver.org/~vvv/sulutil.php?user=" + wgTitle.split(" ").join(" ");
a.className = "external" ;
li.appendChild ( a ) ;
ul.appendChild ( li ) ;
}
// [[User:Dschwen/coordinates.js]]
importScript( 'User:Pruneau/coordinates.js' );
// Add link to my gallery
$(function(){
mw.util.addPortletLink(
"p-personal", //target tab - personal links
"http://toolserver.org/~daniel/WikiSense/Gallery.php?wikifam=commons.wikimedia.org&img_user_text=Pruneau", //URL
"my gallery", //text
"pt-gallery", //id
"List of your uploads", //hover text
"", //hotkey
document.getElementById("pt-logout")); //add before logout button
})
//Categories at the top
function catsattop() {
var cats = document.getElementById('catlinks');
var bc = document.getElementById('bodyContent');
bc.insertBefore(cats, bc.childNodes[0]);
}
if ( wgNamespaceNumber != -1) hookEvent ('load', catsattop);